Skip to content

Commit 9784baa

Browse files
committed
feat: remove controlplanevirtualip v2 handler
1 parent 02fde71 commit 9784baa

File tree

9 files changed

+6
-1156
lines changed

9 files changed

+6
-1156
lines changed

pkg/handlers/nutanix/handlers.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ import (
88
"sigs.k8s.io/controller-runtime/pkg/manager"
99

1010
"github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/common/pkg/capi/clustertopology/handlers"
11+
"github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/pkg/handlers/generic/mutation/controlplanevirtualip"
1112
nutanixclusterconfig "github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/pkg/handlers/nutanix/clusterconfig"
1213
nutanixmutation "github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/pkg/handlers/nutanix/mutation"
1314
nutanixworkerconfig "github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/pkg/handlers/nutanix/workerconfig"
1415
"github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/pkg/handlers/options"
15-
"github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/pkg/handlers/v2/generic/mutation/controlplanevirtualip"
1616
v2nutanixmutation "github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/pkg/handlers/v2/nutanix/mutation"
1717
)
1818

@@ -34,12 +34,12 @@ func (h *Handlers) AllHandlers(mgr manager.Manager) []handlers.Named {
3434
nutanixclusterconfig.NewVariable(),
3535
nutanixworkerconfig.NewVariable(),
3636
nutanixmutation.MetaPatchHandler(mgr),
37-
v2nutanixmutation.MetaPatchHandler(mgr, h.controlPlaneVirtualIPConfig),
37+
v2nutanixmutation.MetaPatchHandler(mgr),
3838
nutanixmutation.MetaWorkerPatchHandler(mgr),
3939
v2nutanixmutation.MetaWorkerPatchHandler(mgr),
4040
}
4141
}
4242

4343
func (h *Handlers) AddFlags(flagSet *pflag.FlagSet) {
44-
h.controlPlaneVirtualIPConfig.AddFlags("nutanix", flagSet)
44+
h.controlPlaneVirtualIPConfig.AddFlags(flagSet)
4545
}

pkg/handlers/v2/generic/mutation/controlplanevirtualip/inject.go

Lines changed: 0 additions & 189 deletions
This file was deleted.

0 commit comments

Comments
 (0)