Every time I run `pulumi up` it has to update thi...
# general
h
Every time I run
pulumi up
it has to update this resource field type
repoURL: [secret] => output<string>
, but it never takes. Not sure why this is I guess ArgoCD is updating the type after it's written to k8s?
Copy code
Do you want to perform this update? details
  pulumi:pulumi:Stack: (same)
    [urn=urn:pulumi:dev::evilapp::pulumi:pulumi:Stack::evilapp-dev]
    ~ kubernetes:argoproj.io/v1alpha1:Application: (update)
        [id=argocd/strapi]
        [urn=urn:pulumi:dev::evilapp::kubernetes:argoproj.io/v1alpha1:Application::argo-cd-strapi-application]
        [provider=urn:pulumi:dev::evilapp::pulumi:providers:kubernetes::default_4_5_4::78e5cf16-9530-4394-b736-34f6963ef3fb]
      ~ spec: {
          ~ source: {
              ~ repoURL: [secret] => output<string>
            }
        }
Any ideas on how to handle these kinds of fields?
i
are you using the Pulumi Cloud state backend? if so you can login and view the update to see the diff and find out why it changed
if you want to debug this you might also need to use
pulumi.unsecret
to see the plaintext values
h
@icy-controller-6092 I'm not sure why
pulumi
always wants to update
repoURL
from
[secret] => output<string>
. My only guess is that Pulumi creates the custom resource with
repoURL
using the type
output<string>
. Then the operator that manages those custom resources converts the
repoURL
to a
[secret]
type? Which means when Pulumi re-examines the state of that CR the
repoURL
and its found to not be the desired type so it needs its type updating. 🤷‍♂️ 🤷‍♂️ 🤷‍♂️
Using a static string works, it's only when I'm pulling
repoURL
the output of another resource. 🤔
i
You need to unsecret the value so you can see exactly what the difference is that Pulumi has detected
There’s no point trying to debug this if you can’t see the actual plaintext values