You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rancher app resource uses values or values_yaml input as a string, causing configuration drift on structrually and datawise equal input.
in addition, rancher_app_v2 seems to format input internally and use formatted value to compare with user provided value.
Using yalmencode function output
as resource input always causes drift for me.
Initially thought to solve it to try format input as needed using yamldecode but it does not support output customization options and maintainer rather helpfully provided kind request to take issue up in rancher provider tracker.
I can confirm this problem. When yamlencode() is used as values param for rancher_app_v2 resource, it will always show changed when you run terraform plan even if it hasn't been changed. It appears to be caused by the fact that yamlencode() quotes all the keys and list items.
Rancher app resource uses values or values_yaml input as a string, causing configuration drift on structrually and datawise equal input.
in addition, rancher_app_v2 seems to format input internally and use formatted value to compare with user provided value.
Using yalmencode function output
as resource input always causes drift for me.
Initially thought to solve it to try format input as needed using yamldecode but it does not support output customization options and maintainer rather helpfully provided kind request to take issue up in rancher provider tracker.
hashicorp/terraform#23322
Thanks,
Siim
The text was updated successfully, but these errors were encountered: