-
Notifications
You must be signed in to change notification settings - Fork 1.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
Make GKE module cluster_name computed attribute #1189
Make GKE module cluster_name computed attribute #1189
Conversation
Approach looks good, note changes need to be made in |
Thanks for the PR! 🚀 |
ab029fa
to
baa6f7a
Compare
baa6f7a
to
72908b6
Compare
72908b6
to
43b7728
Compare
Hm, looks like even after the changes in this PR, CI fails on the ASM module when using a static cluster name:
|
@Monkeyanator Instead of using |
I thought it already was since the value is |
You're right, it's kind of confusing why this isn't being deferred. What if we try inlining the |
Adding the workaround to the gke module output directly should work. However if we are not depending on nodepools, a zonal cluster can go into an upgrade after |
7e26938
to
ee9fb3c
Compare
3bb49ad
to
987c1b6
Compare
987c1b6
to
d231665
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor comments, LGTM otherwise
214a023
to
0c3d974
Compare
Test failing due to #1197 |
…e-modules#1189) * Make GKE module cluster_name computed attribute * Use cluster ID for name output * Fix splat operator * Use values(...) to fix glob expression * fix README * refactor locals * remove cluster_name local Co-authored-by: Bharath KKB <[email protected]>
Hey all, thanks for the fix and comments. I am pointing to the module's master branch and still see the same issue during the apply. Once it occurs on the apply, the issue is seen on the subsequent plans as well. I am creating the GKE cluster alongside with ASM (per the original issue). Not sure what I am missing.
Here is the reference to the module:
A few points:
Any help is appreciated. Thanks in advance! |
@pramodsetlur Please open a new issue. |
Hmm, as I was writing a new issue, i tried explicitly depending on the gke cluster resource - which seem to have worked.
Thanks for the response. |
Glad to hear it!
Unfortunately no, this is not possible. The mesh API fails if you try to activate an existing feature that is already enabled. |
…e-modules#1189) * Make GKE module cluster_name computed attribute * Use cluster ID for name output * Fix splat operator * Use values(...) to fix glob expression * fix README * refactor locals * remove cluster_name local Co-authored-by: Bharath KKB <[email protected]>
Fixes #1181.
Change to the
simple_zonal_with_asm
module is just to get a passing run in CI with a static cluster name.