Skip to content

Commit

Permalink
The version field should be under configmanagement instead of under o…
Browse files Browse the repository at this point in the history
…ci, deprecating the older field (GoogleCloudPlatform#9648)

* Adding Terraform resources for Tenancy APIs in GKEHub

* Segregating MembershipBinding and MembershipRBACRoleBinding to keep things simpler in the review

* Fixing the docu URIs

* Adding TF support for Tenancy API for Membership Binding

* Adding dependent membership binding to the same commit chain

* Making Scope un-updatable and replacing hard coded project number with the one from test env

* Making Scope RRBAC updatable

* Making Namespace immutable

* Adding update test cases

* Removing all memberships field from Scope since it is no longer supported

* Removing all_memberships field for Scope from all test cases

* Making naming in examples consistent across Tenancy APIs documentation

* Update mmv1/templates/terraform/examples/gkehub_membership_binding_basic.tf.erb

Co-authored-by: Shuya Ma <[email protected]>

* Update mmv1/templates/terraform/examples/gkehub_membership_binding_basic.tf.erb

Co-authored-by: Shuya Ma <[email protected]>

* Update mmv1/templates/terraform/examples/gkehub_membership_rbac_role_binding_basic.tf.erb

Co-authored-by: Shuya Ma <[email protected]>

* Fixing typo in the resource name

* Adding state migrations for Membership

* Updating the feature_membership documentation with the current resource state. Adding membership_location field to the doc

* Fixing the version field to be directly under configmanagement instead of under the oci field

* Adding tests for the field version

* Changing version fields value to test upgradation

* Moving the version to under the parent field configmanagement

* Adding quotes around the fields name

---------

Co-authored-by: Shuya Ma <[email protected]>
  • Loading branch information
2 people authored and balanaguharsha committed May 2, 2024
1 parent 36efa02 commit 75f3248
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mmv1/products/gkehub2/Feature.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,9 @@ properties:
name: configmanagement
description: Config Management spec
properties:
- !ruby/object:Api::Type::String
name: version
description: 'Version of ACM installed'
- !ruby/object:Api::Type::NestedObject
name: configSync
description: 'ConfigSync configuration for the cluster'
Expand Down Expand Up @@ -274,6 +277,7 @@ properties:
- !ruby/object:Api::Type::String
name: version
description: 'Version of ACM installed'
deprecation_message: The `configmanagement.config_sync.oci.version` field is deprecated and will be removed in a future major release. Please use `configmanagement.version` field to specify the version of ACM installed instead.
- !ruby/object:Api::Type::NestedObject
name: policycontroller
description: Policy Controller spec
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,7 @@ resource "google_gke_hub_feature" "feature" {
location = "global"
fleet_default_member_config {
configmanagement {
version = "1.16.0"
config_sync {
source_format = "hierarchy"
git {
Expand All @@ -486,6 +487,7 @@ resource "google_gke_hub_feature" "feature" {
location = "global"
fleet_default_member_config {
configmanagement {
version = "1.16.1"
config_sync {
source_format = "unstructured"
oci {
Expand Down

0 comments on commit 75f3248

Please sign in to comment.