Skip to content
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

fix: Node Pool enable_gcfs true:false #1976

Merged
merged 20 commits into from
Sep 11, 2024

Conversation

psiegmannyardi
Copy link
Contributor

Currently enable_gcfs is either set to true or null which can cause node pools that are set to false to be recreated. This will change it to either be true or false

this currently sets enable_gcfs either to true or null which can cause node pools that are set to false to be recreated
@psiegmannyardi psiegmannyardi requested review from ericyz, gtsorbo and a team as code owners June 12, 2024 17:32
Copy link

google-cla bot commented Jun 12, 2024

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@psiegmannyardi psiegmannyardi changed the title Node Pool enable_gcfs true:false fix: Node Pool enable_gcfs true:false Jun 13, 2024
Copy link
Collaborator

@apeabody apeabody left a 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 @psiegmannyardi!

Please see my initial note below on the examples

examples/acm-terraform-blog-part1/terraform/gke.tf Outdated Show resolved Hide resolved
@apeabody
Copy link
Collaborator

/gcbrun

@psiegmannyardi psiegmannyardi requested a review from apeabody July 22, 2024 17:08
@apeabody
Copy link
Collaborator

/gcbrun

@apeabody apeabody self-assigned this Jul 22, 2024
@apeabody
Copy link
Collaborator

/gcbrun

@apeabody
Copy link
Collaborator

/gcbrun

Copy link
Collaborator

@apeabody apeabody left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @psiegmannyardi - From the CI tests:

        	Error:      	Not equal: 
        	            	expected: map[string]interface {}{"diskSizeGb":100, "diskType":"pd-standard", "imageType":"COS_CONTAINERD", "labels":map[string]interface {}{"cluster_name":"CLUSTER_NAME", "node_pool":"default-node-pool"}, "loggingConfig":map[string]interface {}{"variantConfig":map[string]interface {}{"variant":"DEFAULT"}}, "machineType":"e2-medium", "metadata":map[string]interface {}{"cluster_name":"CLUSTER_NAME", "disable-legacy-endpoints":"true", "node_pool":"default-node-pool"}, "oauthScopes":[]interface {}{"https://www.googleapis.com/auth/cloud-platform"}, "serviceAccount":"SERVICE_ACCOUNT", "shieldedInstanceConfig":map[string]interface {}{"enableIntegrityMonitoring":true}, "tags":[]interface {}{"gke-CLUSTER_NAME", "gke-CLUSTER_NAME-default-node-pool"}, "windowsNodeConfig":map[string]interface {}{}, "workloadMetadataConfig":map[string]interface {}{"mode":"GKE_METADATA"}}
        	            	actual  : map[string]interface {}{"diskSizeGb":100, "diskType":"pd-standard", "gcfsConfig":map[string]interface {}{}, "imageType":"COS_CONTAINERD", "labels":map[string]interface {}{"cluster_name":"CLUSTER_NAME", "node_pool":"default-node-pool"}, "loggingConfig":map[string]interface {}{"variantConfig":map[string]interface {}{"variant":"DEFAULT"}}, "machineType":"e2-medium", "metadata":map[string]interface {}{"cluster_name":"CLUSTER_NAME", "disable-legacy-endpoints":"true", "node_pool":"default-node-pool"}, "oauthScopes":[]interface {}{"https://www.googleapis.com/auth/cloud-platform"}, "serviceAccount":"SERVICE_ACCOUNT", "shieldedInstanceConfig":map[string]interface {}{"enableIntegrityMonitoring":true}, "tags":[]interface {}{"gke-CLUSTER_NAME", "gke-CLUSTER_NAME-default-node-pool"}, "windowsNodeConfig":map[string]interface {}{}, "workloadMetadataConfig":map[string]interface {}{"mode":"GKE_METADATA"}}
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -1,4 +1,6 @@
        	            	-(map[string]interface {}) (len=13) {
        	            	+(map[string]interface {}) (len=14) {
        	            	  (string) (len=10) "diskSizeGb": (float64) 100,
        	            	  (string) (len=8) "diskType": (string) (len=11) "pd-standard",
        	            	+ (string) (len=10) "gcfsConfig": (map[string]interface {}) {
        	            	+ },
        	            	  (string) (len=9) "imageType": (string) (len=14) "COS_CONTAINERD",
        	Test:       	TestPrivateZonalWithNetworking

@apeabody
Copy link
Collaborator

@apeabody
Copy link
Collaborator

/gcbrun

@apeabody
Copy link
Collaborator

/gcbrun

@dominykasn
Copy link

hi, any updates on this?

@apeabody
Copy link
Collaborator

apeabody commented Sep 3, 2024

/gcbrun

@dominykasn
Copy link

Seems to be working!

@apeabody
Copy link
Collaborator

apeabody commented Sep 4, 2024

/gcbrun

@apeabody
Copy link
Collaborator

apeabody commented Sep 6, 2024

/gcbrun

@apeabody
Copy link
Collaborator

/gcbrun

Copy link
Collaborator

@apeabody apeabody left a 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 @psiegmannyardi!

@apeabody apeabody merged commit 419078d into terraform-google-modules:master Sep 11, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants