Is there a way to make Pulumi create a resource in...
# general
Is there a way to make Pulumi create a resource initially, but then ignore state differences thereafter? For example, I deploy a Helm Chart into Kubernetes which has some mutating webhooks. If those modify the existing resources, Pulumi tries to update them during the next apply. I’d rather just tell it to ignore those completely, since likely I’ll never need Pulumi to update them…
Thanks. I was looking at that, but it seemed like you had to target specific properties to ignore, so I wasn’t sure how to fit it to this case. Is there a way to use a wildcard or something to “ignore everything”?
For anyone with similar questions, I used the
option to check if
were the ones I was looking for and then returned updated args with
ignoreChanges: ['<prop>']
based on what the output of
pulumi preview
showed as changes (that I wanted to ignore)
I haven’t tried, but I wonder if you can just do something akin to
to blanket ignore all properties for a given resource (for Python at least)