Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
Signed-off-by: yaroslavborbat <[email protected]>
  • Loading branch information
yaroslavborbat committed Dec 12, 2024
1 parent f6dcf51 commit 9b4e2f1
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 9b4e2f1

Please sign in to comment.