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

feat!: promote gke_backup_agent_config to ga #1513

Conversation

Tolsee
Copy link
Contributor

@Tolsee Tolsee commented Dec 30, 2022

  • promote gke_backup_agent_config to ga

Fixes: #1450

@Tolsee Tolsee requested review from a team and Jberlinsky as code owners December 30, 2022 08:33
@google-cla
Copy link

google-cla bot commented Dec 30, 2022

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.

@Tolsee
Copy link
Contributor Author

Tolsee commented Dec 30, 2022

@Jberlinsky Can you please help me understand test failure.

@ericyz
Copy link
Collaborator

ericyz commented Jan 3, 2023

Error Trace: /workspace/test/integration/private_zonal_with_networking/golden.go:158
Step #75 - "verify private-zonal-with-networking": /workspace/test/integration/private_zonal_with_networking/private_zonal_with_networking_test.go:63
Step #75 - "verify private-zonal-with-networking": /workspace/test/integration/private_zonal_with_networking/terraform.go:415
Step #75 - "verify private-zonal-with-networking": /workspace/test/integration/private_zonal_with_networking/terraform.go:435
Step #75 - "verify private-zonal-with-networking": /workspace/test/integration/private_zonal_with_networking/stages.go:31
Step #75 - "verify private-zonal-with-networking": /workspace/test/integration/private_zonal_with_networking/terraform.go:435
Step #75 - "verify private-zonal-with-networking": Error: Not equal:
Step #75 - "verify private-zonal-with-networking": expected: "{\n "dnsCacheConfig": {},\n "gcePersistentDiskCsiDriverConfig": {\n "enabled": true\n },\n "gcpFilestoreCsiDriverConfig": {},\n "horizontalPodAutoscaling": {},\n "httpLoadBalancing": {},\n "kubernetesDashboard": {\n "disabled": true\n },\n "networkPolicyConfig": {\n "disabled": true\n }\n }"
Step #75 - "verify private-zonal-with-networking": actual : "{\n "dnsCacheConfig": {},\n "gcePersistentDiskCsiDriverConfig": {\n "enabled": true\n },\n "gcpFilestoreCsiDriverConfig": {},\n "gkeBackupAgentConfig": {},\n "horizontalPodAutoscaling": {},\n "httpLoadBalancing": {},\n "kubernetesDashboard": {\n "disabled": true\n },\n "networkPolicyConfig": {\n "disabled": true\n }\n }"
Step #75 - "verify private-zonal-with-networking":
Step #75 - "verify private-zonal-with-networking": Diff:
Step #75 - "verify private-zonal-with-networking": --- Expected
Step #75 - "verify private-zonal-with-networking": +++ Actual
Step #75 - "verify private-zonal-with-networking": @@ -6,2 +6,3 @@
Step #75 - "verify private-zonal-with-networking": "gcpFilestoreCsiDriverConfig": {},
Step #75 - "verify private-zonal-with-networking": + "gkeBackupAgentConfig": {},
Step #75 - "verify private-zonal-with-networking": "horizontalPodAutoscaling": {},
Step #75 - "verify private-zonal-with-networking": Test: TestPrivateZonalWithNetworking
Step #75 - "verify private-zonal-with-networking": Messages: expected addonsConfig to match fixture {
Step #75 - "verify private-zonal-with-networking": "dnsCacheConfig": {},
Step #75 - "verify private-zonal-with-networking": "gcePersistentDiskCsiDriverConfig": {
Step #75 - "verify private-zonal-with-networking": "enabled": true
Step #75 - "verify private-zonal-with-networking": },
Step #75 - "verify private-zonal-with-networking": "gcpFilestoreCsiDriverConfig": {},
Step #75 - "verify private-zonal-with-networking": "horizontalPodAutoscaling": {},
Step #75 - "verify private-zonal-with-networking": "httpLoadBalancing": {},
Step #75 - "verify private-zonal-with-networking": "kubernetesDashboard": {
Step #75 - "verify private-zonal-with-networking": "disabled": true
Step #75 - "verify private-zonal-with-networking": },
Step #75 - "verify private-zonal-with-networking": "networkPolicyConfig": {
Step #75 - "verify private-zonal-with-networking": "disabled": true
Step #75 - "verify private-zonal-with-networking": }
Step #75 - "verify private-zonal-with-networking": }

@ericyz ericyz self-requested a review January 3, 2023 23:29
@ericyz
Copy link
Collaborator

ericyz commented Jan 3, 2023

You might want to update the https://github.com/terraform-google-modules/terraform-google-kubernetes-engine/blob/master/test/integration/private_zonal_with_networking/testdata/TestPrivateZonalWithNetworking.json to include the new attribute.

@Tolsee Tolsee force-pushed the feature/promote-gke_backup_agent_config-to-ga branch 2 times, most recently from 0194fca to b12983f Compare January 4, 2023 15:55
@Tolsee
Copy link
Contributor Author

Tolsee commented Jan 4, 2023

@ericyz can you help with test failure once again? Thank you!

@apeabody
Copy link
Collaborator

apeabody commented Jan 4, 2023

@ericyz can you help with test failure once again? Thank you!

Hi @Tolsee - It looks to be an ordering issue in: https://github.com/Tolsee/terraform-google-kubernetes-engine/blob/feature/promote-gke_backup_agent_config-to-ga/test/integration/private_zonal_with_networking/testdata/TestPrivateZonalWithNetworking.json#L8

Looks like you need to move "gkeBackupAgentConfig": {} just below "gcpFilestoreCsiDriverConfig": {},.

Step #78 - "verify private-zonal-with-networking":         	            	Diff:
Step #78 - "verify private-zonal-with-networking":         	            	--- Expected
Step #78 - "verify private-zonal-with-networking":         	            	+++ Actual
Step #78 - "verify private-zonal-with-networking":         	            	@@ -6,2 +6,3 @@
Step #78 - "verify private-zonal-with-networking":         	            	     "gcpFilestoreCsiDriverConfig": {},
Step #78 - "verify private-zonal-with-networking":         	            	+    "gkeBackupAgentConfig": {},
Step #78 - "verify private-zonal-with-networking":         	            	     "horizontalPodAutoscaling": {},
Step #78 - "verify private-zonal-with-networking":         	            	@@ -13,4 +14,3 @@
Step #78 - "verify private-zonal-with-networking":         	            	       "disabled": true
Step #78 - "verify private-zonal-with-networking":         	            	-    },
Step #78 - "verify private-zonal-with-networking":         	            	-    "gkeBackupAgentConfig": {}
Step #78 - "verify private-zonal-with-networking":         	            	+    }

@Tolsee Tolsee force-pushed the feature/promote-gke_backup_agent_config-to-ga branch from 0411716 to b2eb34f Compare January 5, 2023 04:25
@Tolsee
Copy link
Contributor Author

Tolsee commented Jan 5, 2023

@apeabody It still failing 🤦🏼. Also, I am unable to run tests locally, so can you help me once more. Thank you.

@apeabody apeabody changed the title feat: promote gke_backup_agent_config to ga feat!: promote gke_backup_agent_config to ga Jan 5, 2023
Copy link
Collaborator

@ericyz ericyz left a comment

Choose a reason for hiding this comment

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

Please update as Andrew' commented. LGTM for other code

@Tolsee Tolsee force-pushed the feature/promote-gke_backup_agent_config-to-ga branch from b2eb34f to b788a19 Compare January 11, 2023 15:32
@Tolsee Tolsee force-pushed the feature/promote-gke_backup_agent_config-to-ga branch from b788a19 to 055adbf Compare January 11, 2023 16:10
@Tolsee Tolsee requested review from ericyz and apeabody and removed request for ericyz and apeabody January 11, 2023 17:04
@comment-bot-dev
Copy link

@Tolsee
Thanks for the PR! 🚀
✅ Lint checks have passed.

@apeabody apeabody requested a review from ericyz January 13, 2023 16:37
Copy link
Collaborator

@ericyz ericyz left a comment

Choose a reason for hiding this comment

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

LGTM

@bharathkkb bharathkkb merged commit 966135f into terraform-google-modules:master Jan 14, 2023
@Tolsee Tolsee deleted the feature/promote-gke_backup_agent_config-to-ga branch January 15, 2023 11:08
naveen230 pushed a commit to naveen230/terraform-google-kubernetes-engine that referenced this pull request Jan 15, 2023
naveen230 pushed a commit to naveen230/terraform-google-kubernetes-engine that referenced this pull request Jan 15, 2023
CPL-markus pushed a commit to WALTER-GROUP/terraform-google-kubernetes-engine that referenced this pull request Jul 15, 2024
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.

add Backup for GKE option for private-cluster module
5 participants