-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Feature/collapse regional and zonal clusters #223
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/collapse regional and zonal clusters #223
Conversation
@kopachevsky Please resolve merge conflicts. |
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.
Almost there, just 1 small issue.
Collapsed regional and zonal clusters into one cluster with location attribute instead usage of count, zones and regions. Selection of latest nodes and master version same both for regional and zonal/multi-zonal clusters. For Master version in case or regional cluster following code check latest version by location (region), and for zonal, location is var.zone[0]: latest_master_version = data.google_container_engine_versions.master.latest_master_version For Node version in case of regional cluster used latest master version of first of available zones, and in case of zonal cluster - latest master version of var.zones[0] zone location = local.zone_count == 0 ? data.google_compute_zones.available.names[0] : var.zones[0] Fixes #161
@morgante I've tested locally, tests passed except 2 stub_domains_* ones, it's not possible to test them locallly. Please review. |
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, but waiting to merge until I can test state migrations.
Refactor/flatten duplicate resources #161