File tree 1 file changed +2
-10
lines changed
pkg/handlers/generic/mutation/mirrors
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(
143
143
return err
144
144
}
145
145
146
- registryConfig , err := containerdConfigFromRegistryMirrorAddon (
147
- ctx ,
148
- h .client ,
149
- cluster ,
150
- )
146
+ registryConfig , err := containerdConfigFromRegistryMirrorAddon (cluster )
151
147
if err != nil {
152
148
return err
153
149
}
@@ -266,11 +262,7 @@ func containerdConfigFromImageRegistry(
266
262
return configWithOptionalCACert , nil
267
263
}
268
264
269
- func containerdConfigFromRegistryMirrorAddon (
270
- _ context.Context ,
271
- _ ctrlclient.Client ,
272
- cluster * clusterv1.Cluster ,
273
- ) (containerdConfig , error ) {
265
+ func containerdConfigFromRegistryMirrorAddon (cluster * clusterv1.Cluster ) (containerdConfig , error ) {
274
266
serviceIP , err := registrymirrorutils .ServiceIPForCluster (cluster )
275
267
if err != nil {
276
268
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