Update GKE version lookup for promise change in 2.0.0.
MODIFY
gcp-ts-gke-hello-world/index.ts
gcp-ts-gke-hello-world/index.ts
@@ -8,7 +8,7 @@ const name = "helloworld";
const config = new pulumi.Config();
export const masterVersion = config.get("masterVersion") ||
- gcp.container.getEngineVersions().latestMasterVersion;
+ gcp.container.getEngineVersions().then(it => it.latestMasterVersion);
// Create a GKE cluster
const cluster = new gcp.container.Cluster(name, {

MODIFY
gcp-ts-gke/config.ts
gcp-ts-gke/config.ts
@@ -23,4 +23,5 @@ export const password = config.get("password") || new random.RandomPassword(
// GKE master version
// Default to the latest available version.
-export const masterVersion = config.get("masterVersion") || gcp.container.getEngineVersions().latestMasterVersion;
+export const masterVersion = config.get("masterVersion") ||
+ gcp.container.getEngineVersions().then(it => it.latestMasterVersion);

Update GKE version lookup for promise change in 2.0.0. (#669)