@@ -23,7 +23,7 @@ import (
23
23
"github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/common/pkg/capi/clustertopology/patches"
24
24
"github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/common/pkg/capi/clustertopology/patches/selectors"
25
25
"github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/common/pkg/capi/clustertopology/variables"
26
- registrymirrorutils "github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/pkg/handlers/generic/lifecycle/registrymirror /utils"
26
+ registryutils "github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/pkg/handlers/generic/lifecycle/registry /utils"
27
27
handlersutils "github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/pkg/handlers/utils"
28
28
)
29
29
@@ -84,10 +84,10 @@ func (h *globalMirrorPatchHandler) Mutate(
84
84
v1alpha1 .ImageRegistriesVariableName ,
85
85
)
86
86
87
- _ , registryMirrorErr := variables .Get [v1alpha1.RegistryMirror ](
87
+ _ , registryMirrorErr := variables .Get [v1alpha1.RegistryAddon ](
88
88
vars ,
89
89
v1alpha1 .ClusterConfigVariableName ,
90
- []string {"addons" , v1alpha1 .RegistryMirrorVariableName }... )
90
+ []string {"addons" , v1alpha1 .RegistryAddonVariableName }... )
91
91
92
92
switch {
93
93
case variables .IsNotFoundError (imageRegistriesErr ) &&
@@ -143,7 +143,7 @@ func (h *globalMirrorPatchHandler) Mutate(
143
143
return err
144
144
}
145
145
146
- registryConfig , err := containerdConfigFromRegistryMirrorAddon (cluster )
146
+ registryConfig , err := containerdConfigFromRegistryAddon (cluster )
147
147
if err != nil {
148
148
return err
149
149
}
@@ -262,8 +262,8 @@ func containerdConfigFromImageRegistry(
262
262
return configWithOptionalCACert , nil
263
263
}
264
264
265
- func containerdConfigFromRegistryMirrorAddon (cluster * clusterv1.Cluster ) (containerdConfig , error ) {
266
- serviceIP , err := registrymirrorutils .ServiceIPForCluster (cluster )
265
+ func containerdConfigFromRegistryAddon (cluster * clusterv1.Cluster ) (containerdConfig , error ) {
266
+ serviceIP , err := registryutils .ServiceIPForCluster (cluster )
267
267
if err != nil {
268
268
return containerdConfig {}, fmt .Errorf ("error getting service IP for the registry mirror addon: %w" , err )
269
269
}
0 commit comments