As of GKE 1.19, masterAuth is no longer able to be set
Fixes:
MODIFY
gcp-py-gke/__main__.py
gcp-py-gke/__main__.py
from pulumi import Config, export, get_project, get_stack, Output, ResourceOptions
from pulumi_gcp.config import project, zone
-from pulumi_gcp.container import Cluster, ClusterMasterAuthArgs, ClusterNodeConfigArgs
+from pulumi_gcp.container import Cluster, ClusterNodeConfigArgs
from pulumi_kubernetes import Provider
from pulumi_kubernetes.apps.v1 import Deployment, DeploymentSpecArgs
from pulumi_kubernetes.core.v1 import ContainerArgs, PodSpecArgs, PodTemplateSpecArgs, Service, ServicePortArgs, ServiceSpecArgs
@@ -27,7 +27,6 @@ k8s_cluster = Cluster('gke-cluster',
initial_node_count=NODE_COUNT,
node_version=MASTER_VERSION,
min_master_version=MASTER_VERSION,
- master_auth=ClusterMasterAuthArgs(username=USERNAME, password=PASSWORD),
node_config=ClusterNodeConfigArgs(
machine_type=NODE_MACHINE_TYPE,
oauth_scopes=[

MODIFY
gcp-ts-gke/cluster.ts
gcp-ts-gke/cluster.ts
@@ -14,7 +14,6 @@ export const k8sCluster = new gcp.container.Cluster("gke-cluster", {
removeDefaultNodePool: true,
minMasterVersion: masterVersion,
- masterAuth: { username, password },
});
const nodePool = new gcp.container.NodePool(`primary-node-pool`, {

MODIFY
gcp-ts-k8s-ruby-on-rails-postgresql/infra/cluster.ts
gcp-ts-k8s-ruby-on-rails-postgresql/infra/cluster.ts
@@ -14,7 +14,6 @@ export const cluster = new gcp.container.Cluster("gke-cluster", {
removeDefaultNodePool: true,
minMasterVersion: masterVersion,
- masterAuth: { username: clusterUsername, password: clusterPassword },
});
const nodePool = new gcp.container.NodePool(`primary-node-pool`, {

MODIFY
google-native-ts-k8s-ruby-on-rails-postgresql/infra/cluster.ts
google-native-ts-k8s-ruby-on-rails-postgresql/infra/cluster.ts
@@ -14,7 +14,6 @@ const cluster = new gcloud.container.v1.Cluster("cluster", {
parent: `projects/${project}/locations/${region}`,
initialClusterVersion: "1.18.16-gke.2100",
initialNodeCount: 1,
- masterAuth: { username: clusterUsername, password: clusterPassword },
name: clusterName,
network: `projects/${project}/global/networks/default`,
nodeConfig: {

MODIFY
kubernetes-ts-multicloud/gke.ts
kubernetes-ts-multicloud/gke.ts
@@ -43,7 +43,6 @@ export class GkeCluster extends pulumi.ComponentResource {
removeDefaultNodePool: true,
minMasterVersion: engineVersion,
- masterAuth: {username: "example-user", password: password},
}, {parent: this});
const nodePool = new gcp.container.NodePool(`primary-node-pool`, {

MODIFY
misc/scripts/testinfra/gke.ts
misc/scripts/testinfra/gke.ts
@@ -41,7 +41,6 @@ export class GkeCluster extends pulumi.ComponentResource {
removeDefaultNodePool: true,
minMasterVersion: engineVersion,
- masterAuth: {username: config.masterUsername, password: config.masterPassword},
project: config.gcpProject,
location: config.gcpLocation,
}, {parent: this});

As of GKE 1.19, masterAuth is no longer able to be set (#996)

Fixes: #995