Anybody know if there's a way to ignore changes to...
# general
c
Anybody know if there's a way to ignore changes to a provider? _*creating replacement* [diff: ~provider]_; I tried
ignore_changes=['provider', 'opts', 'opts.provider', 'opts:provider', 'providers']
, on the resource options, but I'm assuming it doesn't work on itself?
s
i wouldn't think it's possible to ignore changes to a resource's provider because the provider determines where the resource itself is created. wanting to ignore it may be a yellow/red flag in your program. imagine if the provider was changed to a different K8s cluster and then ignored by some resources. It would be an absolute nightmare to debug that type of situation!
c
Yeah it's not ideal but people kept just making new providers where they needed them instead of passing them around, so they ended up pointing to the same thing. Aliases and such can fix, but just ignoring provider changes would have been more straight forward in some ways.
1
128 Views