File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
pkg/handlers/generic/mutation/mirrors Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -143,11 +143,7 @@ func (h *globalMirrorPatchHandler) Mutate(
143143 return err
144144 }
145145
146- registryConfig , err := containerdConfigFromRegistryMirrorAddon (
147- ctx ,
148- h .client ,
149- cluster ,
150- )
146+ registryConfig , err := containerdConfigFromRegistryMirrorAddon (cluster )
151147 if err != nil {
152148 return err
153149 }
@@ -266,11 +262,7 @@ func containerdConfigFromImageRegistry(
266262 return configWithOptionalCACert , nil
267263}
268264
269- func containerdConfigFromRegistryMirrorAddon (
270- _ context.Context ,
271- _ ctrlclient.Client ,
272- cluster * clusterv1.Cluster ,
273- ) (containerdConfig , error ) {
265+ func containerdConfigFromRegistryMirrorAddon (cluster * clusterv1.Cluster ) (containerdConfig , error ) {
274266 serviceIP , err := registrymirrorutils .ServiceIPForCluster (cluster )
275267 if err != nil {
276268 return containerdConfig {}, fmt .Errorf ("error getting service IP for the registry mirror addon: %w" , err )
You can’t perform that action at this time.
0 commit comments