cloudfoundry-incubator/eirini

View on GitHub
k8s/stset/lrp_to_statefulset.go

Summary

Maintainability
B
5 hrs
Test Coverage
A
100%

Method LRPToStatefulSet.Convert has 135 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func (c *LRPToStatefulSet) Convert(statefulSetName string, lrp *api.LRP, privateRegistrySecret *corev1.Secret) (*appsv1.StatefulSet, error) {
    envs := shared.MapToEnvVar(lrp.Env)
    fieldEnvs := []corev1.EnvVar{
        {
            Name: eirini.EnvPodName,
Severity: Major
Found in k8s/stset/lrp_to_statefulset.go - About 4 hrs to fix

    Function NewLRPToStatefulSetConverter has 7 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        applicationServiceAccount string,
        registrySecretName string,
        allowAutomountServiceAccountToken bool,
        allowRunImageAsRoot bool,
        latestMigration int,
    Severity: Major
    Found in k8s/stset/lrp_to_statefulset.go - About 50 mins to fix

      There are no issues that match your filters.

      Category
      Status