This message was deleted.
# general
s
This message was deleted.
w
Currently there is not a mechanism to set the default. The closest available option today is to put all resources inside a component (and pass
parent: this
) - though as you rightly note this can be error prone. We definitely want to improve this - I can imagine a couple ways we might be able to do it; - expose the stack object (the implicit parent of unparented resources), and allow changing its default providers - allow overriding the kuberenetes packages default provider directly via
kubernetes.setDefaultProvider
or similar. These would both require being careful about timing, as they modify glove state and subtle changes to module loading order could potentially cause this switch to happen at a different time. I’ll open an issue on this tomorrow when I’m back at my laptop so we can nail down an approach to take for this.
👍 2
c
@white-balloon-205 @big-piano-35669 this is an issue that pretty much everyone writing kube apps runs into sooner or later. I’ve hit it, Joe hit it, Pat hit it — and when you do it’s very confusing. We should think about fixing this next milestone.
s
I've also hit it... it bunged a load of pods onto a production cluster 😮
🤯 1
w
Yep - we definitely want to fix this. Opened https://github.com/pulumi/pulumi/issues/2059 to track.