From 4c655aecfadf31295fd22d0c3c965856202ccc29 Mon Sep 17 00:00:00 2001 From: Pawan Pinjarkar Date: Mon, 26 Jan 2026 19:31:34 -0500 Subject: [PATCH] AGENT-1229: Enable auth for NoRegistryClusterInstall unconfigured ignition --- pkg/asset/agent/image/unconfigured_ignition.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkg/asset/agent/image/unconfigured_ignition.go b/pkg/asset/agent/image/unconfigured_ignition.go index 2e3f8dcb14..f83fb42e5a 100644 --- a/pkg/asset/agent/image/unconfigured_ignition.go +++ b/pkg/asset/agent/image/unconfigured_ignition.go @@ -17,6 +17,7 @@ import ( "github.com/openshift/installer/pkg/asset" "github.com/openshift/installer/pkg/asset/agent/agentconfig" "github.com/openshift/installer/pkg/asset/agent/common" + "github.com/openshift/installer/pkg/asset/agent/gencrypto" "github.com/openshift/installer/pkg/asset/agent/manifests" "github.com/openshift/installer/pkg/asset/agent/workflow" "github.com/openshift/installer/pkg/asset/ignition" @@ -84,6 +85,7 @@ func (a *UnconfiguredIgnition) Dependencies() []asset.Asset { &manifests.ClusterImageSet{}, &manifests.NMStateConfig{}, &common.InfraEnvID{}, + &gencrypto.AuthConfig{}, } } @@ -98,7 +100,8 @@ func (a *UnconfiguredIgnition) Generate(_ context.Context, dependencies asset.Pa pullSecretAsset := &manifests.AgentPullSecret{} nmStateConfigs := &manifests.NMStateConfig{} agentConfig := &agentconfig.AgentConfig{} - dependencies.Get(agentWorkflow, infraEnvAsset, clusterImageSetAsset, pullSecretAsset, nmStateConfigs, infraEnvIDAsset, agentConfig) + authConfig := &gencrypto.AuthConfig{} + dependencies.Get(agentWorkflow, infraEnvAsset, clusterImageSetAsset, pullSecretAsset, nmStateConfigs, infraEnvIDAsset, agentConfig, authConfig) if agentWorkflow.Workflow != workflow.AgentWorkflowTypeInstall { return fmt.Errorf("AgentWorkflowType value not supported: %s", agentWorkflow.Workflow) @@ -160,7 +163,7 @@ func (a *UnconfiguredIgnition) Generate(_ context.Context, dependencies asset.Pa InfraEnvID: infraEnvID, OSImage: osImage, Proxy: infraEnv.Spec.Proxy, - AuthType: "none", + AuthType: authConfig.AuthType, } enabledServices := getDefaultEnabledServices()