jolly-monitor-15311
07/26/2024, 5:27 PMcluster.provider
instead, so we issued a change to use the new provider for those two resources but it attempting to create the new k8s objects which already exist in the cluster (“x already exists”). I see from the pulumi issues that changing a provider on the fly can have issues, but I don’t understand why even when we delete those resources from the state and then run a refresh, why it can’t identify that they already exist in k8s? Is it expected that k8s.kustomize.Directory
would be able to refresh in that way?jolly-monitor-15311
07/26/2024, 5:28 PMjolly-monitor-15311
07/26/2024, 5:29 PMjolly-monitor-15311
07/26/2024, 5:44 PMhallowed-photographer-31251
07/26/2024, 11:00 PMjolly-monitor-15311
07/29/2024, 12:46 PMjolly-monitor-15311
07/29/2024, 12:47 PMhallowed-photographer-31251
07/31/2024, 8:59 PMthis pulumi program was created iteratively into such a state that it wasn’t able to be deployed and destroyed from scratch, so we’re going back in to ensure it can besorry for the delay but this sounds like a good course of action. fwiw, you can completely disable default providers like so:
pulumi:disable-default-providers:
- kubernetes
this forces you to explicitly pass providers to all resources. personally i try to always use this for larger projects because it avoids surprises like this, and because i prefer to see dependencies injected.jolly-monitor-15311
07/31/2024, 8:59 PM