Add zone in GCP.#Config

Signed-off-by: Guillaume de Rouville <guillaume.derouville@gmail.com>
This commit is contained in:
Guillaume de Rouville
2021-09-14 11:38:42 +02:00
parent 8e2dea148b
commit 46362ed247
10 changed files with 53 additions and 36 deletions

View File

@@ -42,8 +42,15 @@ import (
args: ["gcloud", "-q", "config", "set", "project", config.project]
},
op.#Exec & {
args: ["gcloud", "-q", "config", "set", "compute/region", config.region]
if config.region != null {
op.#Exec & {
args: ["gcloud", "-q", "config", "set", "compute/region", config.region]
}
},
if config.zone != null {
op.#Exec & {
args: ["gcloud", "-q", "config", "set", "compute/zone", config.zone]
}
},
]
}