https://pulumi.com logo
#typescript
Title
# typescript
d

dazzling-sundown-39670

12/02/2020, 2:08 PM
Why does going from
new k8s.core.v1.Namespace(namespaceName)
to
new k8s.core.v1.Namespace(namespaceName, {}, { provider: k8sProvider });
recreate the namespace? Is there some way I can avoid recreating it? I really need to put provider there but I don't want to update every single resource in my cluster
Could I manually update
[provider: urn:pulumi:staging::magento2::pulumi:providers:kubernetes::default_2_3_1::7c753ac7-af4b-46d3-9bc4-74f311ce11ee => urn:pulumi:staging::magento2::pulumi:providers:kubernetes::cluster::f583b9ca-faa5-408c-aee8-428e569624b9]
in the statefile?
I tried changing this manually but I'm getting the following error:
state file contains errors: resource urn:pulumi:staging::magento2::kubernetes:core/v1:Namespace::staging refers to unknown provider urn:pulumi:staging::magento2::pulumi:providers:kubernetes::cluster::f583b9ca-faa5-408c-aee8-428e569624b9
I don't understand why it's unknown, it's found like 40 times in the state file