Skip to content

Commit

Permalink
replace validatingwebhookconfiguration controller with watch in stora…
Browse files Browse the repository at this point in the history
…gepolicyquota controller
  • Loading branch information
Adnan Baruni committed Nov 6, 2024
1 parent 7941a83 commit ee8d0e0
Show file tree
Hide file tree
Showing 10 changed files with 542 additions and 668 deletions.
6 changes: 0 additions & 6 deletions controllers/infra/controllers.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import (
"github.com/vmware-tanzu/vm-operator/controllers/infra/configmap"
"github.com/vmware-tanzu/vm-operator/controllers/infra/node"
"github.com/vmware-tanzu/vm-operator/controllers/infra/secret"
"github.com/vmware-tanzu/vm-operator/controllers/infra/validatingwebhookconfiguration"
"github.com/vmware-tanzu/vm-operator/controllers/infra/zone"
pkgcfg "github.com/vmware-tanzu/vm-operator/pkg/config"
pkgctx "github.com/vmware-tanzu/vm-operator/pkg/context"
Expand All @@ -32,11 +31,6 @@ func AddToManager(ctx *pkgctx.ControllerManagerContext, mgr manager.Manager) err
if err := secret.AddToManager(ctx, mgr); err != nil {
return fmt.Errorf("failed to initialize infra secret controller: %w", err)
}
if pkgcfg.FromContext(ctx).Features.UnifiedStorageQuota {
if err := validatingwebhookconfiguration.AddToManager(ctx, mgr); err != nil {
return fmt.Errorf("failed to initialize validatingwebhookconfiguration webhook controller: %w", err)
}
}
if pkgcfg.FromContext(ctx).Features.WorkloadDomainIsolation {
if err := zone.AddToManager(ctx, mgr); err != nil {
return fmt.Errorf("failed to initialize infra zone controller: %w", err)
Expand Down

This file was deleted.

This file was deleted.

Loading

0 comments on commit ee8d0e0

Please sign in to comment.