I’m creating a gke cluster then trying to create a...
# kubernetes
k
I’m creating a gke cluster then trying to create a kube provider from that but all of the examples/docs that I’m finding tell you to use cluster.MasterAuth to get the CA certificate which appears to be deprecated. What is the proper way to auth with the cluster then? This doc even references cluster.MasterAuth: https://www.pulumi.com/registry/packages/kubernetes/how-to-guides/gke/ The error:
cluster.MasterAuth is deprecated: Basic authentication was removed for GKE cluster versions >= 1.19.
My code that triggers the error in IDE and on `pulumi up`: https://github.com/phutchins/dimo-node/blob/main/infrastructure/k8s_provider_gke.go#L69
I’ve moved from the v5 of the go/gcp/compute library to the v7 which seems to have resolved the issue. Odd tho that I can still use the cluster.MasterAuth although it said deprecated in a previous library. Very confusing.