From ab8ba3a3d5c9a3884d80fd7cd55f2563a190c996 Mon Sep 17 00:00:00 2001 From: Pawan Pinjarkar Date: Thu, 7 Nov 2024 20:32:24 -0500 Subject: [PATCH] Use external.ExternalPlatformNameOci instead agent.ExternalPlatformNameOci --- pkg/asset/agent/manifests/agentclusterinstall.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/asset/agent/manifests/agentclusterinstall.go b/pkg/asset/agent/manifests/agentclusterinstall.go index 860e3b5ebad..17fe6f99860 100644 --- a/pkg/asset/agent/manifests/agentclusterinstall.go +++ b/pkg/asset/agent/manifests/agentclusterinstall.go @@ -28,7 +28,7 @@ import ( "github.com/openshift/installer/pkg/types" "github.com/openshift/installer/pkg/types/baremetal" "github.com/openshift/installer/pkg/types/defaults" - "github.com/openshift/installer/pkg/types/external" + external "github.com/openshift/installer/pkg/types/external" "github.com/openshift/installer/pkg/types/none" "github.com/openshift/installer/pkg/types/vsphere" ) @@ -207,7 +207,7 @@ func (a *AgentClusterInstall) Generate(dependencies asset.Parents) error { PlatformName: installConfig.Config.Platform.External.PlatformName, } } - if installConfig.Config.Platform.Name() == external.Name && installConfig.Config.Platform.External.PlatformName == agent.ExternalPlatformNameOci { + if installConfig.Config.Platform.Name() == external.Name && installConfig.Config.Platform.External.PlatformName == external.ExternalPlatformNameOci { agentClusterInstall.Spec.ExternalPlatformSpec.CloudControllerManager = external.CloudControllerManagerTypeExternal }