-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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(container_node_pool): support cgroup mode #8997
feat(container_node_pool): support cgroup mode #8997
Conversation
Hello! I am a robot. It looks like you are a: Community Contributor @melinath, a repository maintainer, has been assigned to review your changes. If you have not received review feedback within 2 business days, please leave a comment on this PR asking them to take a look. You can help make sure that review is quick by doing a self-review and by running impacted tests locally. |
91d5913
to
18811c3
Compare
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 3 files changed, 120 insertions(+), 21 deletions(-)) Missing test reportYour PR includes resource fields which are not covered by any test. Resource: resource "google_container_cluster" "primary" {
node_config {
linux_node_config {
cgroup_mode = # value needed
}
}
node_pool {
node_config {
linux_node_config {
cgroup_mode = # value needed
}
}
}
}
|
Tests analyticsTotal tests: Action takenFound 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected testsTestAccContainerNodePool_withCgroupMode |
Rerun these tests in REPLAYING mode to catch issues
|
Reassigning review due to OOO. |
18811c3
to
3e4e0a0
Compare
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 3 files changed, 88 insertions(+), 21 deletions(-)) Missing test reportYour PR includes resource fields which are not covered by any test. Resource: resource "google_container_cluster" "primary" {
node_config {
linux_node_config {
cgroup_mode = # value needed
}
}
node_pool {
node_config {
linux_node_config {
cgroup_mode = # value needed
}
}
}
}
Resource: resource "google_container_node_pool" "primary" {
node_config {
linux_node_config {
cgroup_mode = # value needed
}
}
}
|
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.
Sorry I took so long to get to this review! Has been a busy week.
It looks like when you rebased you accidentally removed your "testAccContainerNodePool_withCgroupMode" case -- only the larger test function that calls that smaller one is in the file right now.
Tests analyticsTotal tests:
|
3e4e0a0
to
280d4af
Compare
No problem! Thanks for making the time.
My bad. Fixed! |
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 3 files changed, 120 insertions(+), 21 deletions(-)) Missing test reportYour PR includes resource fields which are not covered by any test. Resource: resource "google_container_cluster" "primary" {
node_config {
linux_node_config {
cgroup_mode = # value needed
}
}
node_pool {
node_config {
linux_node_config {
cgroup_mode = # value needed
}
}
}
}
|
Tests analyticsTotal tests: Action takenFound 7 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected testsTestAccContainerNodePool_withKubeletConfig|TestAccContainerNodePool_withCgroupMode|TestAccContainerNodePool_withUpgradeSettings|TestAccContainerCluster_withAddons|TestAccDataSourceGoogleServiceAccountIdToken_impersonation|TestAccDataSourceGoogleServiceAccountJwt|TestAccProjectIamPolicy_invalidMembers |
Rerun these tests in REPLAYING mode to catch issues
|
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.
TestAccContainerNodePool_withCgroupMode
is failing with a "Error: Cannot destroy cluster because deletion_protection is set to true. Set it to false to proceed with instance deletion.", and presumably needs to have that configured to be false.
Signed-off-by: Tsubasa Nagasawa <toversus2357@gmail.com>
280d4af
to
1576430
Compare
Thanks for the pointer! I think this change (#9013) is introducing the requirement to explicitly set |
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 3 files changed, 121 insertions(+), 21 deletions(-)) Missing test reportYour PR includes resource fields which are not covered by any test. Resource: resource "google_container_cluster" "primary" {
node_config {
linux_node_config {
cgroup_mode = # value needed
}
}
node_pool {
node_config {
linux_node_config {
cgroup_mode = # value needed
}
}
}
}
|
Tests analyticsTotal tests: Action takenFound 5 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected testsTestAccContainerNodePool_withUpgradeSettings|TestAccContainerNodePool_withCgroupMode|TestAccContainerCluster_withAddons|TestAccContainerNodePool_withKubeletConfig|TestAccDataprocClusterIamPolicy |
Rerun these tests in REPLAYING mode to catch issues
|
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.
LGTM 🙂
Fixes: hashicorp/terraform-provider-google#15656
This PR added support for setting cgroup version to the google_container_node_pool resource. This allows users to switch to use cgroup v2 for their existing node pools. See Linux cgroup mode configuration option and corresponding REST API doc.
Release Note Template for Downstream PRs (will be copied)