@@ -274,7 +274,7 @@ func (t *TerraformVariables) Generate(ctx context.Context, parents asset.Parents
274274 for i , m := range workers {
275275 workerConfigs [i ] = m .Spec .Template .Spec .ProviderSpec .Value .Object .(* machinev1beta1.AWSMachineProviderConfig ) //nolint:errcheck // legacy, pre-linter
276276 }
277- osImage := strings .SplitN (string ( * rhcosImage ) , "," , 2 )
277+ osImage := strings .SplitN (rhcosImage . ControlPlane , "," , 2 )
278278 osImageID := osImage [0 ]
279279 osImageRegion := installConfig .Config .AWS .Region
280280 if len (osImage ) == 2 {
@@ -416,7 +416,7 @@ func (t *TerraformVariables) Generate(ctx context.Context, parents asset.Parents
416416 BaseDomainResourceGroupName : installConfig .Config .Azure .BaseDomainResourceGroupName ,
417417 MasterConfigs : masterConfigs ,
418418 WorkerConfigs : workerConfigs ,
419- ImageURL : string ( * rhcosImage ) ,
419+ ImageURL : rhcosImage . ControlPlane ,
420420 ImageRelease : rhcosRelease .GetAzureReleaseVersion (),
421421 PreexistingNetwork : preexistingnetwork ,
422422 Publish : installConfig .Config .Publish ,
@@ -730,7 +730,7 @@ func (t *TerraformVariables) Generate(ctx context.Context, parents asset.Parents
730730 CISInstanceCRN : cisCRN ,
731731 DNSInstanceID : dnsID ,
732732 EndpointsJSONFile : endpointsJSONFile ,
733- ImageURL : string ( * rhcosImage ) ,
733+ ImageURL : rhcosImage . ControlPlane ,
734734 MasterConfigs : masterConfigs ,
735735 MasterDedicatedHosts : masterDedicatedHosts ,
736736 NetworkResourceGroupName : installConfig .Config .Platform .IBMCloud .NetworkResourceGroupName ,
@@ -756,7 +756,7 @@ func (t *TerraformVariables) Generate(ctx context.Context, parents asset.Parents
756756 installConfig ,
757757 mastersAsset ,
758758 workersAsset ,
759- string ( * rhcosImage ) ,
759+ rhcosImage . ControlPlane ,
760760 clusterID ,
761761 bootstrapIgn ,
762762 )
@@ -828,7 +828,7 @@ func (t *TerraformVariables) Generate(ctx context.Context, parents asset.Parents
828828 installConfig .Config .Platform .Ovirt .StorageDomainID ,
829829 installConfig .Config .Platform .Ovirt .NetworkName ,
830830 installConfig .Config .Platform .Ovirt .VNICProfileID ,
831- string ( * rhcosImage ) ,
831+ rhcosImage . ControlPlane ,
832832 clusterID .InfraID ,
833833 masters [0 ].Spec .ProviderSpec .Value .Object .(* ovirtprovider.OvirtMachineProviderSpec ),
834834 installConfig .Config .Platform .Ovirt .AffinityGroups ,
@@ -966,7 +966,7 @@ func (t *TerraformVariables) Generate(ctx context.Context, parents asset.Parents
966966 return err
967967 }
968968
969- osImage := strings .SplitN (string ( * rhcosImage ) , "/" , 2 )
969+ osImage := strings .SplitN (rhcosImage . ControlPlane , "/" , 2 )
970970 data , err = powervstfvars .TFVars (
971971 powervstfvars.TFVarsSources {
972972 MasterConfigs : masterConfigs ,
@@ -1015,7 +1015,7 @@ func (t *TerraformVariables) Generate(ctx context.Context, parents asset.Parents
10151015 controlPlaneConfigs [i ] = c .Spec .ProviderSpec .Value .Object .(* machinev1.NutanixMachineProviderConfig ) //nolint:errcheck // legacy, pre-linter
10161016 }
10171017
1018- imgURI := string ( * rhcosImage )
1018+ imgURI := rhcosImage . ControlPlane
10191019 if installConfig .Config .Nutanix .ClusterOSImage != "" {
10201020 imgURI = installConfig .Config .Nutanix .ClusterOSImage
10211021 }
0 commit comments