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

Feature - CloudSQL pre-allocation private IP range and GKE Cluster ignore_change lifecycle hook. #1056

Merged
merged 14 commits into from Dec 20, 2022

Conversation

itsavvy-ankur
Copy link
Contributor

This PR add supports for :

  1. CloudSQL - provide an allocated IP range for private access. In some situations organizations have a pre-allocated /24 to be used as the private IP CIDR for CloudSQL instances. The changes in this PR help supply a pre-allocated IP range for the primary and replica instance

  2. GKE-Cluster - The default pool is deleted on initial cluster creation, however the next iteration of plan/ apply using the module looks at changes on boot_disk_kms_key and always attempts to re-create the cluster there by doing a destroy / create of the cluster and nodepool. Addition of the ignore_changes lifecycle hook for the boot_disk_kms_key on the nodepool prevents the cluster re-creation on a subsequent plan / apply.

@google-cla
Copy link

google-cla bot commented Dec 19, 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.

Ankur Saxena added 4 commits December 19, 2022 19:07
Refactor as per suggestions in PR

See merge request nwmworld/nwm-digital/modules/third-party/cloud-foundation-fabric!2
Copy link
Collaborator

@ludoo ludoo left a comment

Choose a reason for hiding this comment

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

This is good to go once the last comment has been addressed, thanks!!!

@ludoo ludoo enabled auto-merge (squash) December 20, 2022 06:51
@ludoo ludoo merged commit b487b2c into GoogleCloudPlatform:master Dec 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants