From 9b4e2f13aea45c994ea1dfafc01844494ea6945c Mon Sep 17 00:00:00 2001 From: yaroslavborbat Date: Thu, 12 Dec 2024 20:56:07 +0300 Subject: [PATCH] fix lint Signed-off-by: yaroslavborbat --- .../pkg/controller/moduleconfig/moduleconfig_webhook.go | 1 - .../pkg/controller/moduleconfig/reduce_cidrs_validator.go | 1 - .../pkg/controller/validator/validator.go | 2 -- 3 files changed, 4 deletions(-) diff --git a/images/virtualization-artifact/pkg/controller/moduleconfig/moduleconfig_webhook.go b/images/virtualization-artifact/pkg/controller/moduleconfig/moduleconfig_webhook.go index 7541f3ef8..b40cd2233 100644 --- a/images/virtualization-artifact/pkg/controller/moduleconfig/moduleconfig_webhook.go +++ b/images/virtualization-artifact/pkg/controller/moduleconfig/moduleconfig_webhook.go @@ -24,7 +24,6 @@ import ( "sigs.k8s.io/controller-runtime/pkg/manager" "github.com/deckhouse/deckhouse/pkg/log" - mcapi "github.com/deckhouse/virtualization-controller/pkg/controller/moduleconfig/api" "github.com/deckhouse/virtualization-controller/pkg/controller/validator" ) diff --git a/images/virtualization-artifact/pkg/controller/moduleconfig/reduce_cidrs_validator.go b/images/virtualization-artifact/pkg/controller/moduleconfig/reduce_cidrs_validator.go index 1e9cac5c6..d03c5fcbf 100644 --- a/images/virtualization-artifact/pkg/controller/moduleconfig/reduce_cidrs_validator.go +++ b/images/virtualization-artifact/pkg/controller/moduleconfig/reduce_cidrs_validator.go @@ -26,7 +26,6 @@ func newReduceCIDRsValidator(client client.Client) *reduceCIDRsValidator { } func (v *reduceCIDRsValidator) ValidateUpdate(ctx context.Context, oldMC, newMC *mcapi.ModuleConfig) (admission.Warnings, error) { - oldCIDRs := oldMC.Spec.Settings[virtualMachineCIDRs].([]string) newCIDRs := newMC.Spec.Settings[virtualMachineCIDRs].([]string) diff --git a/images/virtualization-artifact/pkg/controller/validator/validator.go b/images/virtualization-artifact/pkg/controller/validator/validator.go index 4ad86d003..21ddfb8dc 100644 --- a/images/virtualization-artifact/pkg/controller/validator/validator.go +++ b/images/virtualization-artifact/pkg/controller/validator/validator.go @@ -9,7 +9,6 @@ import ( "sigs.k8s.io/controller-runtime/pkg/webhook/admission" "github.com/deckhouse/deckhouse/pkg/log" - "github.com/deckhouse/virtualization-controller/pkg/logger" ) @@ -89,7 +88,6 @@ func (v *Validator[T]) ValidateCreate(ctx context.Context, obj runtime.Object) ( } return warnings, nil - } func (v *Validator[T]) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (w admission.Warnings, err error) {