sparse-intern-71089
02/21/2023, 3:25 PMbillowy-army-68599
dry-keyboard-94795
02/21/2023, 4:24 PMUSE_GKE_GCLOUD_AUTH_PLUGIN: 'false'
(for old auth)
Intereting that install_components
didn't work (this is what we're doing).
Maybe it's the version. The current is v1.1.0
- uses: 'google-github-actions/setup-gcloud@v1.1.0'
name: Setup gcloud SDK
with:
install_components: 'gke-gcloud-auth-plugin'
billowy-army-68599
dry-keyboard-94795
02/21/2023, 4:25 PMdry-keyboard-94795
02/21/2023, 4:27 PMbillowy-army-68599
dry-keyboard-94795
02/21/2023, 4:32 PMbillowy-army-68599
Diagnostics:
kubernetes:core/v1:ConfigMap (log4j):
error: failed to initialize discovery client: The gcp auth plugin has been removed.
Please use the "gke-gcloud-auth-plugin" kubectl/client-go credential plugin instead.
See <https://cloud.google.com/blog/products/containers-kubernetes/kubectl-auth-changes-in-gke> for further details
is being returned by the Kubernetes API when you try use the cluster. Setting env vars isn’t going to work around that.billowy-army-68599
incalculable-potato-82285
02/21/2023, 4:39 PMbillowy-army-68599
incalculable-potato-82285
02/21/2023, 4:56 PMincalculable-potato-82285
02/22/2023, 8:16 AMexport function GetK8sProvider(): k8s.Provider {
const k8sStackName= config.require("k8s-stack");
const k8sStack = new pulumi.StackReference(k8sStackName);
const kubeconfig = k8sStack.getOutput("kubeconfig");
const k8sProvider = new k8s.Provider("provider", {
kubeconfig: kubeconfig,
});
return k8sProvider;
}
incalculable-potato-82285
02/22/2023, 8:17 AMincalculable-potato-82285
02/22/2023, 8:20 AMincalculable-potato-82285
02/22/2023, 4:52 PM