b

    bumpy-summer-9075

    8 months ago
    I deployed a helm chart using pulumi and on every
    up
    , pulumi recreates a secret for a reason that escapes me:
    --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

    8 months ago
    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

    8 months ago
    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/