-
Notifications
You must be signed in to change notification settings - Fork 1.2k
feat: add support for hugepages_config #2223
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
base: main
Are you sure you want to change the base?
Conversation
/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!
Can you please add to an example for test coverage, otherwise other than some extra spaces, this LGTM.
NOTE: hugepages_config
added in v6.5.0
@apeabody Tried my best with tests here as well 😊 . LMK if something needs fixing |
/gcbrun |
FYI @DrFaust92 - A few of the pools do use
|
@apeabody should i change the node pools types to support the test case? or how should I approach this? |
The 2-m huge pages should be fine as-is, however for the 1-g perhaps just test a single node pool which has a supported machine type. Maybe change
|
99c20b9
to
51a780f
Compare
apeabody lets try now |
/gcbrun |
)) != 0 ? [1] : [] | ||
|
||
content { | ||
hugepage_size_2m = coalesce(local.node_pools_hugepage_size_2m[each.value["name"]], local.node_pools_hugepage_size_2m["all"], null) |
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.
My confusion, these coalesce()
need a try()
to properly return the default null
:
hugepage_size_2m = coalesce(local.node_pools_hugepage_size_2m[each.value["name"]], local.node_pools_hugepage_size_2m["all"], null) | |
hugepage_size_2m = try(coalesce(local.node_pools_hugepage_size_2m[each.value["name"]], local.node_pools_hugepage_size_2m["all"]), null) |
51a780f
to
c629490
Compare
/gcbrun |
Signed-off-by: drfaust92 <[email protected]>
Signed-off-by: drfaust92 <[email protected]>
Signed-off-by: drfaust92 <[email protected]>
apeabody added try as requested |
@apeabody My customer needs this feature, is it possible to approve the latest? Thanks |
/gcbrun |
INT test results:
Looks like |
Signed-off-by: drfaust92 <[email protected]>
No description provided.