Hi there,
we are running into issues after rotating the kubeconfig in our pulumi managed kubernetes cluster similiar to https://github.com/pulumi/pulumi-kubernetes/issues/1814
pulumi is trying to delete all ressouces in the cluster due to the changed kubeconfig. The github issue stated to run
$ pulumi up --target urn:pulumi:<kubeconfig-secret> --target urn:pulumi:<http://infra.dev|infra.dev>::infra::pulumi:providers:kubernetes::<my-provider>
. Any idea what "<kubeconfig-secret" should refer to?
I think it would be valuable if you could see if the proposed solution would work for you and share your opinion
m
most-lighter-29914
05/24/2024, 6:35 AM
Thank you @modern-zebra-45309, i will look into this thread
👍 1
m
modern-zebra-45309
05/24/2024, 6:41 AM
Thanks! I also just noticed that you asked about the secret: I think this is an artifact of the way that the person filing the issue set this up. They read the kubeconfig from a Kubernetes secret, so as part of their targeted "up" they replace both the Kubernetes provider and the value read from the secret. If you don't have a secret but are passing the kubeconfig into the provider via the configuration or just as a hardcoded value, you don't have a secret you could update.
m
most-lighter-29914
05/24/2024, 6:48 AM
Ah ok that makes sense! We are not using a secret but the kubeconfig direclty. Thanks for explaning this^
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.