witty-grass-23332
02/19/2025, 12:16 PMpulumi preview
being entirely stuck after changing my GKE cluster from having a public IP for it's Kubernetes Control Plane to a private IP. I am using Twingate and can access the GKE cluster with no problems, but Pulumi seems to want to replace the provider
for every Kubernetes resource and it seems to be stuck taking an enormous amount of time doing this. What should I try? Any clues?modern-zebra-45309
02/19/2025, 12:31 PMclusterIdentifier
option was added that prevents this from happening: https://www.pulumi.com/registry/packages/kubernetes/api-docs/provider/#clusteridentifier_go (see https://github.com/pulumi/pulumi-kubernetes/issues/2745 for a description of the problem).witty-grass-23332
02/19/2025, 1:36 PMstate.json
to fix this is extremely unfriendly IMHO and it is far from the first time that I have had to edit the state.json
. Ideally some kind of automatic fixing tools for situations like this would be great. e.g. pulumi adopt clusterIdentifier my-provider-name-urn
which would automatically read your code, find what the new cluster_identifier
value was and then apply that to the state so that you could then immediately run pulumi up
cleanly. Does that make sense? Is this something that you are considering internally? Improving the tooling when handling state issues?modern-zebra-45309
02/19/2025, 1:48 PMclusterIdentifier
option last year, and I agree that DX could be improved further. The original Slack thread is no longer available, so I'll ping @hallowed-photographer-31251 and @damp-airline-38442 who led the discussion and implementation.witty-grass-23332
02/19/2025, 2:18 PM