Skip to content

Commit

Permalink
Update GKE version lookup for promise change in 2.0.0. (pulumi#669)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cameron Stokes committed Apr 28, 2020
1 parent 05ae8e1 commit cd84925
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gcp-ts-gke-hello-world/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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, {
Expand Down
3 changes: 2 additions & 1 deletion gcp-ts-gke/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

0 comments on commit cd84925

Please sign in to comment.