-
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
feat(cluster.tf): add support for setting cgroup mode #2001
Conversation
there is probably some other issue here based on the previous PR but lets check and see. ill fix as needed |
/gcbrun |
2 similar comments
/gcbrun |
/gcbrun |
/gcbrun |
From INT:
Probably need to default to null rather than an empty string. |
@@ -114,5 +114,14 @@ locals { | |||
), | |||
var.node_pools_linux_node_configs_sysctls | |||
) | |||
node_pools_cgroup_mode = merge( | |||
{ all = "" }, |
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.
@apeabody i wonder if this needs to be CGROUP_MODE_UNSPECIFIED
to make it work
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.
Hi @DrFaust92 - I checked the provider code and cgroup_mode
is an (optional) string
, but will not accept ""
. So an option for https://github.com/terraform-google-modules/terraform-google-kubernetes-engine/pull/2001/files#diff-a3a07be3819af6f1a65ed243a613e69b544b7274d248a4b4d7d4d127aec40aeeR1045 would be to check the locals value and if ""
instead pass 'null'.
Thanks! Will take a look
…On Thu, 25 Jul 2024 at 15:34 Andrew Peabody ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In autogen/main/variables_defaults.tf.tmpl
<#2001 (comment)>
:
> @@ -114,5 +114,14 @@ locals {
),
var.node_pools_linux_node_configs_sysctls
)
+ node_pools_cgroup_mode = merge(
+ { all = "" },
Hi @DrFaust92 <https://github.com/DrFaust92> - I checked the provider
code and cgroup_mode is an (optional) string, but will not accept "". So
an option for
https://github.com/terraform-google-modules/terraform-google-kubernetes-engine/pull/2001/files#diff-a3a07be3819af6f1a65ed243a613e69b544b7274d248a4b4d7d4d127aec40aeeR1045
would be to check the locals value and if "" instead pass 'null'.
—
Reply to this email directly, view it on GitHub
<#2001 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIA2W7XSZLBPOOFLVGGZ5ATZOFHLJAVCNFSM6AAAAABLE34PCCVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDEMBQGIZDSNBZGQ>
.
You are receiving this because you were mentioned.Message ID:
<terraform-google-modules/terraform-google-kubernetes-engine/pull/2001/review/2200229494
@github.com>
|
/gcbrun |
/gcbrun |
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.
Thanks for the contribution @DrFaust92!
Confirm cgroup_mode
in TPG v5.25.0
/gcbrun |
/gcbrun |
/gcbrun |
Fix #1838
Supersedes #1891
seeing if i can push it over the finish line