Adding a dependsOn between provider and nodePool
MODIFY
gcp-ts-gke-hello-world/index.ts
gcp-ts-gke-hello-world/index.ts
@@ -83,6 +83,8 @@ users:
// Create a Kubernetes provider instance that uses our cluster from above.
const clusterProvider = new k8s.Provider(name, {
kubeconfig: kubeconfig,
+}, {
+ dependsOn: [nodePool]
});
// Create a Kubernetes Namespace

MODIFY
gcp-ts-gke-serviceaccount/index.ts
gcp-ts-gke-serviceaccount/index.ts
@@ -98,6 +98,8 @@ users:
// Create a Kubernetes provider instance that uses our cluster from above.
const clusterProvider = new k8s.Provider(name, {
kubeconfig: kubeconfig,
+}, {
+ dependsOn: [nodePool]
});
const appLabels = {appClass: "pubsub"};

MODIFY
gcp-ts-gke/cluster.ts
gcp-ts-gke/cluster.ts
@@ -75,4 +75,6 @@ users:
// Export a Kubernetes provider instance that uses our cluster from above.
export const k8sProvider = new k8s.Provider("gkeK8s", {
kubeconfig: k8sConfig,
+}, {
+ dependsOn: [nodePool]
});

MODIFY
gcp-ts-k8s-ruby-on-rails-postgresql/infra/cluster.ts
gcp-ts-k8s-ruby-on-rails-postgresql/infra/cluster.ts
@@ -75,4 +75,6 @@ users:
// Export a Kubernetes provider instance that uses our cluster from above.
export const provider = new k8s.Provider("gke-k8s", {
kubeconfig: config,
+}, {
+ dependsOn: [nodePool]
});

MODIFY
kubernetes-ts-multicloud/gke.ts
kubernetes-ts-multicloud/gke.ts
@@ -103,7 +103,10 @@ users:
});
// Export a Kubernetes provider instance that uses our cluster from above.
- this.provider = new k8s.Provider("gke", {kubeconfig: k8sConfig}, {parent: this});
+ this.provider = new k8s.Provider("gke", {kubeconfig: k8sConfig}, {
+ parent: this,
+ dependsOn: [nodePool]
+ });
}
}

MODIFY
misc/scripts/testinfra/gke.ts
misc/scripts/testinfra/gke.ts
@@ -103,7 +103,8 @@ users:
});
// Export a Kubernetes provider instance that uses our cluster from above.
- this.provider = new k8s.Provider("gke", {kubeconfig: this.kubeconfig}, {parent: this});
+ this.provider = new k8s.Provider("gke", {kubeconfig: this.kubeconfig},
+ {parent: this, dependsOn: [nodePool]});
}
}

Adding a dependsOn between provider and nodePool