-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Breaking change" in 15.2.0? #1382
Comments
It looks that this introduced bug as this logic looks without sense as condition is same: Lines 112 to 113 in 84e7308
so in your case probably trying to replace fixed by name_prefix role. Can you paste here changes from |
@daroga0002 , thanks for looking into this.
Here is my output after removing identifiable information and some irrelevant details:
|
To me #1199 put the same logic on both The point here, is we don't test if
It wasn't safe, you were relying on incorrect behavior when the module manage IAM role. To fix this, what I see is one of following :
|
Thanks @daroga0002 and @barryib. I think I unintentionally opened a can of worms... 😃 In my opinion, no change of the tests are necessary, however the behaviour should be better documented. I'm using the module in a wrapper module, which may or may not set |
@endrec Not a big deal. please, see the variable documentation. I think It was mentioned there. But feel free to update to add precision if needed. Thanks for opening this question, we'll see how we can improve our docs. |
So can we close this issue ? |
Yeah, I think we can. :) |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Description
Prior 15.2.0, when
manage_cluster_iam_resources
was enabled,cluster_iam_role_name
was completely ignored.Now, 15.2.0 started to use
cluster_iam_role_name
as a name override in this scenario.Prior 15.2.0, it was safe to pass
null
incluster_iam_role_name
, now that forces a a whole cluster replacement on upgrade, as the change in #1199 looks for an empty string and does not accepts null.Okay, it's not a breaking change as such, but it would worth a mention in the changelog, I believe. :)
Versions
Reproduction
Steps to reproduce the behavior:
terraform plan
and observe that cluster is going to be replaced.Expected behavior
After upgrading the module, the cluster should not be replaced (there are 2 minor changes):
Actual behavior
After the upgrade, the whole cluster is replaced:
The text was updated successfully, but these errors were encountered: