Skip to content

Commit b569901

Browse files
Merge pull request openshift#8079 from barbacbd/CAPG-Bootstrap-Machine-IP
OCPBUGS-30058: GCP: The CAPG bootstrap machine IP should be set according to the publish strategy
2 parents 7e4d988 + 8ed9aba commit b569901

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/asset/machines/gcp/gcpmachines.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ func GenerateBootstrapMachines(name string, installConfig *installconfig.Install
6464
// Identify this as a bootstrap machine
6565
bootstrapGCPMachine.Labels["install.openshift.io/bootstrap"] = ""
6666

67+
bootstrapMachineIsPublic := installConfig.Config.Publish == types.ExternalPublishingStrategy
68+
bootstrapGCPMachine.Spec.PublicIP = ptr.To(bootstrapMachineIsPublic)
69+
6770
result = append(result, &asset.RuntimeFile{
6871
File: asset.File{Filename: fmt.Sprintf("10_inframachine_%s.yaml", bootstrapGCPMachine.Name)},
6972
Object: bootstrapGCPMachine,

0 commit comments

Comments
 (0)