Update CI GKE cluster to v1.21
-// Copyright 2016-2019, Pulumi Corporation.
+// Copyright 2016-2022, Pulumi Corporation.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -26,11 +26,11 @@ export class GkeCluster extends pulumi.ComponentResource {
opts: pulumi.ComponentResourceOptions = {}) {
super("pulumi-kubernetes:ci:GkeCluster", name, {}, opts);
- // Find the latest 1.19.x engine version.
+ // Find the latest 1.21.x engine version.
const engineVersion = gcp.container.getEngineVersions({
location: config.gcpLocation,
project: config.gcpProject,
- }).then(v => v.validMasterVersions.filter(v => v.startsWith("1.19"))[0]);
+ }).then(v => v.validMasterVersions.filter(v => v.startsWith("1.21"))[0]);
// Create the GKE cluster.
const k8sCluster = new gcp.container.Cluster("ephemeral-ci-cluster", {
