https://pulumi.com logo
#kubernetes
Title
# kubernetes
b

bumpy-summer-9075

05/06/2021, 3:20 PM
Is there a way to figure out why pulumi is deleting and replacing some resources instead of updating them? I'm changing the
data
of a configMap and it wants to delete-replace the configMap, and the deployment that refers to it, causing downtime.
Copy code
--kubernetes:core/v1:ConfigMap: (delete-replaced)
    [id=default/project-internal-tools-service-common]
    [urn=urn:pulumi:internal-tools.dev::project-internal-tools::kubernetes:core/v1:ConfigMap::common]
    [provider=urn:pulumi:internal-tools.dev::project-internal-tools::pulumi:providers:kubernetes::eks::...]
+-kubernetes:core/v1:ConfigMap: (replace)
    [id=default/project-internal-tools-service-common]
    [urn=urn:pulumi:internal-tools.dev::project-internal-tools::kubernetes:core/v1:ConfigMap::common]
    [provider=urn:pulumi:internal-tools.dev::project-internal-tools::pulumi:providers:kubernetes::eks::...]
    ~ data: {
        + FOO: "bar"
    }
++kubernetes:core/v1:ConfigMap: (create-replacement)
    [id=default/project-internal-tools-service-common]
    [urn=urn:pulumi:internal-tools.dev::project-internal-tools::kubernetes:core/v1:ConfigMap::common]
    [provider=urn:pulumi:internal-tools.dev::project-internal-tools::pulumi:providers:kubernetes::eks::...]
    ~ data: {
        + FOO: "bar"
    }
(this configMap was not initially created by Pulumi, it was imported)
b

billowy-army-68599

05/06/2021, 3:41 PM
is the data different?
b

bumpy-summer-9075

05/06/2021, 3:41 PM
Yes
b

billowy-army-68599

05/06/2021, 3:42 PM
can you open an issue for this? we should be able to support replacing this in place I believe if it supports a patch mechanism
b

bumpy-summer-9075

05/06/2021, 3:47 PM
8 Views