Thanks @billowy-army-68599 for the reply! I could use a stack reference, but that would require "something" to run first, to create the reference in the first place.
What I'm probably trying to do is not aligned with the "pulumi" approach because you wouldn't know deterministically what stack a resource (in this example, a k8s namespace) was created in.
ancient-megabyte-79588
01/19/2021, 1:08 AM
We do create our core infra (cluster) in one stack and deploy apps into the cluster in other stacks, which all depend on the cluster stack and the kube config created in it.
b
billowy-army-68599
01/19/2021, 1:08 AM
my personal suggestion is to put the NS creation into a third distinct stack and always run that first, but that maybe not what you want
a
ancient-megabyte-79588
01/19/2021, 1:10 AM
I was expecting that I would have to do that. Then we know deterministically where the ns was created. I just was hoping more for an idempotent operation that just makes sure the ns exists, regardless of where it was created.