Skip to content

Commit 979785c

Browse files
committed
CORS-3208: Create the GCP infrastructure controller
** Add the GCP controller to the list of controllers. y
1 parent 225c5f7 commit 979785c

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

pkg/clusterapi/system.go

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,22 @@ func (c *system) Run(ctx context.Context, installConfig *installconfig.InstallCo
172172
),
173173
)
174174
case gcp.Name:
175-
// TODO
175+
controllers = append(controllers,
176+
c.getInfrastructureController(
177+
&GCP,
178+
[]string{
179+
"-v=2",
180+
"--metrics-bind-addr=0",
181+
"--health-addr={{suggestHealthHostPort}}",
182+
"--webhook-port={{.WebhookPort}}",
183+
"--webhook-cert-dir={{.WebhookCertDir}}",
184+
},
185+
map[string]string{
186+
// TODO: Authentication must be handled in a more complex way detailed here: https://issues.redhat.com/browse/CORS-3218
187+
"GOOGLE_APPLICATION_CREDENTIALS": filepath.Join(os.Getenv("HOME"), ".gcp", "osServiceAccount.json"),
188+
},
189+
),
190+
)
176191
case ibmcloud.Name:
177192
// TODO
178193
case nutanix.Name:

0 commit comments

Comments
 (0)