Skip to content

Commit 13e4284

Browse files
committed
fixup! refactor: move bootstrap provider handlers
1 parent 51d793e commit 13e4284

File tree

1 file changed

+4
-4
lines changed
  • pkg/handlers/generic/mutation/kubeadm/controlplanevirtualip

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
"github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/common/pkg/capi/clustertopology/patches"
2222
"github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/common/pkg/capi/clustertopology/patches/selectors"
2323
"github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/common/pkg/capi/clustertopology/variables"
24-
providers2 "github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/pkg/handlers/generic/mutation/kubeadm/controlplanevirtualip/providers"
24+
"github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/pkg/handlers/generic/mutation/kubeadm/controlplanevirtualip/providers"
2525
"github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/pkg/handlers/options"
2626
)
2727

@@ -108,15 +108,15 @@ func (h *ControlPlaneVirtualIP) Mutate(
108108
// as we do not want them to end up in the generated KCP
109109
obj.Spec.Template.Spec.KubeadmConfigSpec.Files = deleteFiles(
110110
obj.Spec.Template.Spec.KubeadmConfigSpec.Files,
111-
providers2.VirtualIPProviderFileNames...,
111+
providers.VirtualIPProviderFileNames...,
112112
)
113113
return nil
114114
}
115115

116-
var virtualIPProvider providers2.Provider
116+
var virtualIPProvider providers.Provider
117117
// only kube-vip is supported, but more providers can be added in the future
118118
if controlPlaneEndpointVar.VirtualIPSpec.Provider == v1alpha1.VirtualIPProviderKubeVIP {
119-
virtualIPProvider = providers2.NewKubeVIPFromKCPTemplateProvider(obj)
119+
virtualIPProvider = providers.NewKubeVIPFromKCPTemplateProvider(obj)
120120
}
121121

122122
files, preKubeadmCommands, postKubeadmCommands, generateErr := virtualIPProvider.GenerateFilesAndCommands(

0 commit comments

Comments
 (0)