Skip to content

Commit b16323c

Browse files
committed
ic: allow multi-arch clusters for GCP when feature gate enabled
1 parent 8b80710 commit b16323c

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

pkg/types/installconfig.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -583,6 +583,8 @@ func MultiArchFeatureGateEnabled(platform string, fgs featuregates.FeatureGate)
583583
switch platform {
584584
case aws.Name:
585585
return fgs.Enabled(features.FeatureGateMultiArchInstallAWS)
586+
case gcp.Name:
587+
return fgs.Enabled(features.FeatureGateMultiArchInstallGCP)
586588
default:
587589
return false
588590
}

pkg/types/validation/installconfig_test.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1423,6 +1423,17 @@ func TestValidateInstallConfig(t *testing.T) {
14231423
return c
14241424
}(),
14251425
},
1426+
{
1427+
name: "gcp cluster is heteregeneous",
1428+
installConfig: func() *types.InstallConfig {
1429+
c := validInstallConfig()
1430+
c.Platform = types.Platform{GCP: validGCPPlatform()}
1431+
c.Compute[0].Architecture = types.ArchitectureARM64
1432+
c.FeatureSet = "CustomNoUpgrade"
1433+
c.FeatureGates = []string{"MultiArchInstallGCP=true"}
1434+
return c
1435+
}(),
1436+
},
14261437
{
14271438
name: "valid cloud credentials mode",
14281439
installConfig: func() *types.InstallConfig {

0 commit comments

Comments
 (0)