Tidied up redundant code in nimservice_webhook.go and nimcache_webhook.go #2227
Triggered via pull request
September 10, 2025 19:52
Status
Failure
Total duration
1m 54s
Artifacts
–
Annotations
30 errors and 3 warnings
|
Unit test:
internal/webhook/apps/v1alpha1/nimservice_webhook.go#L134
undefined: warningList
|
|
Unit test:
internal/webhook/apps/v1alpha1/nimservice_webhook.go#L131
undefined: warningList
|
|
Unit test:
internal/webhook/apps/v1alpha1/nimservice_webhook.go#L128
multiple-value validateDRAResourceImmutability(oldNIMService, newNIMService, field.NewPath("spec").Child("draResources")) (value of type (admission.Warnings, "k8s.io/apimachinery/pkg/util/validation/field".ErrorList)) in single-value context
|
|
Unit test:
internal/webhook/apps/v1alpha1/nimservice_webhook.go#L127
multiple-value validatePVCImmutability(oldNIMService, newNIMService, field.NewPath("spec").Child("storage").Child("pvc")) (value of type (admission.Warnings, "k8s.io/apimachinery/pkg/util/validation/field".ErrorList)) in single-value context
|
|
Unit test:
internal/webhook/apps/v1alpha1/nimservice_webhook.go#L126
multiple-value validateMultiNodeImmutability(oldNIMService, newNIMService, field.NewPath("spec").Child("multiNode")) (value of type (admission.Warnings, "k8s.io/apimachinery/pkg/util/validation/field".ErrorList)) in single-value context
|
|
Unit test:
internal/webhook/apps/v1alpha1/nimservice_webhook.go#L121
assignment mismatch: 1 variable but validateNIMServiceSpec returns 2 values
|
|
Unit test:
internal/webhook/apps/v1alpha1/nimcache_webhook.go#L109
undefined: warningList
|
|
Unit test:
internal/webhook/apps/v1alpha1/nimcache_webhook.go#L106
undefined: warningList
|
|
Unit test:
internal/webhook/apps/v1alpha1/nimcache_webhook.go#L102
undefined: warningList
|
|
Unit test:
internal/webhook/apps/v1alpha1/nimcache_webhook.go#L98
assignment mismatch: 1 variable but validateNIMCacheSpec returns 2 values
|
|
Build:
internal/webhook/apps/v1alpha1/nimservice_webhook.go#L134
undefined: warningList
|
|
Build:
internal/webhook/apps/v1alpha1/nimservice_webhook.go#L131
undefined: warningList
|
|
Build:
internal/webhook/apps/v1alpha1/nimservice_webhook.go#L128
multiple-value validateDRAResourceImmutability(oldNIMService, newNIMService, field.NewPath("spec").Child("draResources")) (value of type (admission.Warnings, "k8s.io/apimachinery/pkg/util/validation/field".ErrorList)) in single-value context
|
|
Build:
internal/webhook/apps/v1alpha1/nimservice_webhook.go#L127
multiple-value validatePVCImmutability(oldNIMService, newNIMService, field.NewPath("spec").Child("storage").Child("pvc")) (value of type (admission.Warnings, "k8s.io/apimachinery/pkg/util/validation/field".ErrorList)) in single-value context
|
|
Build:
internal/webhook/apps/v1alpha1/nimservice_webhook.go#L126
multiple-value validateMultiNodeImmutability(oldNIMService, newNIMService, field.NewPath("spec").Child("multiNode")) (value of type (admission.Warnings, "k8s.io/apimachinery/pkg/util/validation/field".ErrorList)) in single-value context
|
|
Build:
internal/webhook/apps/v1alpha1/nimservice_webhook.go#L121
assignment mismatch: 1 variable but validateNIMServiceSpec returns 2 values
|
|
Build:
internal/webhook/apps/v1alpha1/nimcache_webhook.go#L109
undefined: warningList
|
|
Build:
internal/webhook/apps/v1alpha1/nimcache_webhook.go#L106
undefined: warningList
|
|
Build:
internal/webhook/apps/v1alpha1/nimcache_webhook.go#L102
undefined: warningList
|
|
Build:
internal/webhook/apps/v1alpha1/nimcache_webhook.go#L98
assignment mismatch: 1 variable but validateNIMCacheSpec returns 2 values
|
|
check:
internal/webhook/apps/v1alpha1/nimservice_webhook.go#L134
undefined: warningList
|
|
check:
internal/webhook/apps/v1alpha1/nimservice_webhook.go#L131
undefined: warningList
|
|
check:
internal/webhook/apps/v1alpha1/nimservice_webhook.go#L128
multiple-value validateDRAResourceImmutability(oldNIMService, newNIMService, field.NewPath("spec").Child("draResources")) (value of type (admission.Warnings, "k8s.io/apimachinery/pkg/util/validation/field".ErrorList)) in single-value context
|
|
check:
internal/webhook/apps/v1alpha1/nimservice_webhook.go#L127
multiple-value validatePVCImmutability(oldNIMService, newNIMService, field.NewPath("spec").Child("storage").Child("pvc")) (value of type (admission.Warnings, "k8s.io/apimachinery/pkg/util/validation/field".ErrorList)) in single-value context
|
|
check:
internal/webhook/apps/v1alpha1/nimservice_webhook.go#L126
multiple-value validateMultiNodeImmutability(oldNIMService, newNIMService, field.NewPath("spec").Child("multiNode")) (value of type (admission.Warnings, "k8s.io/apimachinery/pkg/util/validation/field".ErrorList)) in single-value context
|
|
check:
internal/webhook/apps/v1alpha1/nimservice_webhook.go#L121
assignment mismatch: 1 variable but validateNIMServiceSpec returns 2 values
|
|
check:
internal/webhook/apps/v1alpha1/nimcache_webhook.go#L109
undefined: warningList
|
|
check:
internal/webhook/apps/v1alpha1/nimcache_webhook.go#L106
undefined: warningList
|
|
check:
internal/webhook/apps/v1alpha1/nimcache_webhook.go#L102
undefined: warningList
|
|
check:
internal/webhook/apps/v1alpha1/nimcache_webhook.go#L98
assignment mismatch: 1 variable but validateNIMCacheSpec returns 2 values
|
|
Unit test
Failed to restore: "/usr/bin/tar" failed with error: The process '/usr/bin/tar' failed with exit code 2
|
|
Build
Failed to restore: "/usr/bin/tar" failed with error: The process '/usr/bin/tar' failed with exit code 2
|
|
check
Failed to restore: "/usr/bin/tar" failed with error: The process '/usr/bin/tar' failed with exit code 2
|