Releases: GDC-ConsumerEdge/automated-cluster-provisioner
v1.3.2 - GDCc versioned Group RBAC apply
What's Changed
-
Add missing roles/storage.objectViewer to zone watcher builder role to pull cloud function package from cloud storage bucket by @benfogel in #25
-
Enabling Cluster with Group RBAC by @kevin-liangit in #22
- gdc_version_evaluate
- Sometimes there are version dependant steps that must be followed. Here the function
gdc_version_evaluate, will be used whenever certain steps during cluster creation differ based on GDCc version. If the current_version is equal or greater than the required_version, then return true, otherwise return false:gdc_version_evaluate {current_version} {required_version}
- Sometimes there are version dependant steps that must be followed. Here the function
- By using gdc_version_evaluate for Group RBAC:
- Starting in GDCc v1.10.0, Group RBAC: can only be enabled through gcloud edge-cloud container cluster create
--enable-google-group-authentication. - Otherwise for GDCc versions less than < v1.10.0, Group RBAC should continue using ClientConfig updates as documented in #10.
- Starting in GDCc v1.10.0, Group RBAC: can only be enabled through gcloud edge-cloud container cluster create
- gdc_version_evaluate
-
Fix: fi placement by @kevin-liangit in #27
Upgrade Steps from v1.3.1
- Upgrade the following files:
bootstrap/alerts.tfbootstrap/main.tf.github/workflows/unit_tests.yamlbootstrap/metrics.tfwatchers/integration_tests/test_watcher_timing.pywatchers/src/main.pywatchers/src/requirements.txtwatchers/tests/test_main.pybootstrap/create-cluster.yaml
Full Changelog: v1.3.1...v1.3.2
v1.3.1
Fixes
- fix automated retry (introduced in v1.2.1 #12): Check for CUSTOMER_FACTORY_TURNUP_CHECKS_STARTED for retry behavior by @benfogel in #23. Automated retries have begun stalling with the release of the
CUSTOMER_FACTORY_TURNUP_CHECKS_STARTEDZoneState. This logic restores automated retries behavior.
What's Changed
- Refactor IAM to better associate required roles per SA by @benfogel in #19
- Append environment name onto log based metric names by @benfogel in #18
- Add unittests workflow by @benfogel in #24
Upgrade Steps from v1.3.0
- Upgrade the following files:
bootstrap/alerts.tfbootstrap/main.tfbootstrap/metrics.tfwatchers/integration_tests/test_watcher_timing.pywatchers/src/main.pywatchers/src/requirements.txtwatchers/tests/test_main.py
Full Changelog: v1.3.0...v1.3.1
v1.3.0
What's New
- Added support for the
FACTORY_TURNUP_CHECKS_STARTEDZoneState in #17 - Added an opt-in feature for build messaging and failure messaging in the StateSignal in #17. These messages can better help Google provide support on issues during the provisioning process.
Upgrade Steps from v1.2.1
- Upgrade the following files:
bootstrap/create-cluster.yamlbootstrap/main.tfbootstrap/variables.tf
Fixes
- fix: hw mgmt api endpoint override in #16
- fix: Set MAX_RETRIES in tf for zone-watcher function to align zone-watcher with cloud build trigger in #15
- fix: Align variable naming with tf conventions in #17
Full Changelog: v1.2.1...v1.3.0
v1.2.1
What's New
- The ability to automatically retry failed builds by @benfogel in #12 Docs
- Example validation pipeline for cluster intent by @benfogel in #13 Docs
What's changed
- Added
kubernetesmetadata.googleapis.comas a required service to enable into tf bootstrap: by @kevin-liangit in #8 - Group rbac update using clientconfig by @kevin-liangit in #10
Upgrade Steps from v1.1.0
- Upgrade / Add the following files:
.github/workflows/validate_sot.yaml(New)validation/cluster_intent.py(New)bootstrap/create-cluster.yamlbootstrap/main.tfbootstrap/modify-cluster.yamlbootstrap/variables.tfwatchers/src/build_history.py(New)watchers/src/main.pywatchers/src/maintenance_windows.py(New)watchers/src/requirements.txtwatchers/integration_tests/test_watcher_timing.py(New)watchers/test/test_build_history.py(New)watchers/test/test_maintenance_windows.py(New)
Migration Steps for Group Based RBAC
#10 changed the implementation of configuring group based RBAC. All the features of anthos identity service are not fully supported on GDC connected, so a direct integration is preferred. As part of this, cluster provisioner will now patch the ClientConfig object directly on clusters to enable group based RBAC.
Steps
New clusters will have group based RBAC applied via the cluster provisioner.
In order to standardize how existing clusters are managed, the following steps should be taken:
- Confirm existing cluster that are using Anthos Identity Service for Group RBAC
- For a cluster, delete the member from identity-service
gcloud container fleet identity-service delete {select cluster from list} - Manually update ClientConfig on said cluster. For example:
:/$ FLEET_PROJECT_NUMBER="REPLACE_WITH_FLEET_PROJECT_NUMBER"
:/$ CLUSTER_NAME="REPLACE_WITH_CLUSTER_NAME"
:/$ kubectl patch clientconfig default -n kube-public --type=merge -p '{"spec":{"authentication":[{"google":{"audiences":["//gkehub.googleapis.com/projects/'${FLEET_PROJECT_NUMBER}'/locations/global/memberships/'${CLUSTER_NAME}'"]},"name":"google-authentication-method"}]}}'
clientconfig.authentication.gke.io/default patched
- Repeat steps 1-3 for every cluster using Anthos Identity Service for Group RBAC.
- (Optional, but not required) Once all clusters have been migrated, disable identity-service
Fixes
- Fix misspelled variable name and add maintenance windows by @Ben-Chapman in #11
- fix: Fix logic when using incorrect trigger id by @benfogel in #14
New Contributors
- @Ben-Chapman made their first contribution in #11
Full Changelog: v1.1.0...v1.2.1
v1.1.0
This is the v1.1.0 release of automated cluster provisioner!
What's Changed
Implemented enhancements
- Add alerts and metrics for provisioning operations
- Updated provisioning failure handling to avoid retry loops
- Add store_id and zone name tags on Cloud Build jobs. Easier searching!
- Add support for fleet labels and maintenance exclusion windows
- Support specifying ConfigSync version
- Add flag to create GCS buckets for remote backups
Other
- README updates
- Add 30 minute wait to shutdown VMs to avoid corruption during VM bootstrapping
Full Changelog: v1.0.0...v1.1.0
Initial Release
Add shell_check scripts and update detected warnings Change-Id: I646fcac67511016f98ba4b8aa4d3bf286622dd16