mirror of
https://github.com/openshift/installer.git
synced 2026-02-05 15:47:14 +01:00
Always explicitly set AuthType to none in unconfigured-ignition
The unconfigured-ignition does not contain any auth keys. In the appliance, all of the auth settings are part of the config-image. Whatever settings are applied in the ignition get overwritten before any of the services that use them start. However, for the interactive install we must explicitly set the AuthType to "none" to prevent services looking for keys that are not actually generated.
This commit is contained in:
@@ -161,6 +161,7 @@ func (a *UnconfiguredIgnition) Generate(_ context.Context, dependencies asset.Pa
|
||||
InfraEnvID: infraEnvID,
|
||||
OSImage: osImage,
|
||||
Proxy: infraEnv.Spec.Proxy,
|
||||
AuthType: "none",
|
||||
}
|
||||
|
||||
enabledServices := getDefaultEnabledServices()
|
||||
@@ -202,8 +203,6 @@ func (a *UnconfiguredIgnition) Generate(_ context.Context, dependencies asset.Pa
|
||||
interactiveUIFile := ignition.FileFromString("/etc/assisted/interactive-ui", "root", 0644, "")
|
||||
config.Storage.Files = append(config.Storage.Files, interactiveUIFile)
|
||||
|
||||
// Let's disable the assisted-service authentication.
|
||||
agentTemplateData.AuthType = "none"
|
||||
}
|
||||
|
||||
// Required by assisted-service.
|
||||
|
||||
Reference in New Issue
Block a user