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

bumpy-summer-9075

01/18/2022, 2:36 PM
I deployed a helm chart using pulumi and on every
up
, pulumi recreates a secret for a reason that escapes me:
Copy code
--kubernetes:core/v1:secret: (delete-replaced)
                [id=sonarqube/sonarqube-postgresql]
                [urn=urn:pulumi:dev::infra-do-cluster::company:kubernetes:Sonarqube$kubernetes:<http://helm.sh/v3:Chart$kubernetes:core/v1:secret::sonarqube/sonarqube-postgresql|helm.sh/v3:Chart$kubernetes:core/v1:secret::sonarqube/sonarqube-postgresql>]
                [provider=urn:pulumi:dev::infra-do-cluster::pulumi:providers:kubernetes::doks::01acb2ec-8062-4904-9f58-b2144e4043f3]
            +-kubernetes:core/v1:secret: (replace)
                [id=sonarqube/sonarqube-postgresql]
                [urn=urn:pulumi:dev::infra-do-cluster::company:kubernetes:Sonarqube$kubernetes:<http://helm.sh/v3:Chart$kubernetes:core/v1:secret::sonarqube/sonarqube-postgresql|helm.sh/v3:Chart$kubernetes:core/v1:secret::sonarqube/sonarqube-postgresql>]
                [provider=urn:pulumi:dev::infra-do-cluster::pulumi:providers:kubernetes::doks::01acb2ec-8062-4904-9f58-b2144e4043f3]
              ~ data: {
                }
            ++kubernetes:core/v1:secret: (create-replacement)
                [id=sonarqube/sonarqube-postgresql]
                [urn=urn:pulumi:dev::infra-do-cluster::company:kubernetes:Sonarqube$kubernetes:<http://helm.sh/v3:Chart$kubernetes:core/v1:secret::sonarqube/sonarqube-postgresql|helm.sh/v3:Chart$kubernetes:core/v1:secret::sonarqube/sonarqube-postgresql>]
                [provider=urn:pulumi:dev::infra-do-cluster::pulumi:providers:kubernetes::doks::01acb2ec-8062-4904-9f58-b2144e4043f3]
              ~ data: {
                }
Anyone know why this occurs? It doesn't break anything but is an annoyance 😕
b

bored-table-20691

01/18/2022, 3:30 PM
There is very likely something in the chart definition itself which has some randomness to it
I'd look at the chart definition to see if there is a way to disable it
b

bland-continent-32037

01/18/2022, 5:58 PM
Something in the chart itself is where I'd look first as well, and if that is the issue, you may be able to apply a transformation: https://www.pulumi.com/registry/packages/kubernetes/api-docs/helm/v3/chart/
6 Views