Skip to content

Commit

Permalink
Naming.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit91 committed Aug 22, 2024
1 parent 6bb669f commit deb9437
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/controller/operatingsystemconfig/actuator.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ func (a *actuator) Reconcile(ctx context.Context, log logr.Logger, osc *extensio
networkIsolation = imageProviderConfig.NetworkIsolation
}

extensionFiles := addOsSpecifics(osc, networkIsolation)
extensionFiles := getExtensionFiles(osc, networkIsolation)

osc.Spec.Files = ensureFile(osc.Spec.Files, extensionFiles...)

cloudConfig, command, err := oscommonactuator.CloudConfigFromOperatingSystemConfig(ctx, log, a.client, osc, generator.IgnitionGenerator())
Expand All @@ -105,7 +106,7 @@ func (a *actuator) Restore(ctx context.Context, log logr.Logger, osc *extensions
return a.Reconcile(ctx, log, osc)
}

func addOsSpecifics(osc *extensionsv1alpha1.OperatingSystemConfig, networkIsolation *metalextensionv1alpha1.NetworkIsolation) []extensionsv1alpha1.File {
func getExtensionFiles(osc *extensionsv1alpha1.OperatingSystemConfig, networkIsolation *metalextensionv1alpha1.NetworkIsolation) []extensionsv1alpha1.File {
var extensionFiles []extensionsv1alpha1.File

if len(networkIsolation.RegistryMirrors) > 0 {
Expand Down

0 comments on commit deb9437

Please sign in to comment.