Is there a way to use `ignoreChanges` to ignore an...
# kubernetes
l
Is there a way to use
ignoreChanges
to ignore an object in an array if a key in in that object is equal to some value? In this case I'm trying to get Pulumi to ignore changes to a specific environment variable on a pod that's managed by something else, as it causes persistent diffs:
Copy code
spec:
  containers:
    - env:
      - name: PULUMI_MANAGED
         value: foo
      - name: PULUMI_IGNORE_THIS
        value: bar
I think in this case I can be certain of the order of the env vars so I know which one to ignore, but was curious if it would be possible without knowing the order
l
Use a different "thing" to specify things to ignore?
Copy code
spec:
  containers:
    - env:
      - name: PULUMI_MANAGED
         value: foo
      - name: PULUMI_IGNORE_THIS
        value: bar
  thingsToIgnore:
    - key: PULUMI_IGNORE_THIS