glamorous-printer-66548
05/29/2019, 10:33 PM@pulumi/kubernetes: 0.23.1
and seeing some odd behaviour: We instantiate provider instances dynamically via new gcp.Provider({kubeconfig: ..., namespace: 'namespace-A'})
and then use this provider instance in some resources like new k8s.core.v1.ServiceAccount(foo, {metadata: {namespace: 'namespace-B'}}, {provider: k8sProvider})
. I would expect the serviceaccount to be created in namespace-B
in the example above, but it actually gets created in namespace-A
.
I can create a more detailed repro if necessary but wanted to ask first if this intentional or a known issue? @creamy-potato-29402?white-balloon-205
namespace
property on Provider
instances used to be ignored, and was recently changed to actually set a default namespace. That said, I agree it should not override the namespace if provided explicitly on a resource.
Could you open an issue? This sounds like a bug to me.glamorous-printer-66548
05/29/2019, 10:35 PMgorgeous-egg-16927
05/30/2019, 2:13 AMglamorous-printer-66548
05/30/2019, 9:24 AM