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 (GoogleCloudPlatform#9587)

* 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

---------

Co-authored-by: Shuya Ma <[email protected]>
  • Loading branch information
sahsagar-google and shuyama1 authored Dec 12, 2023
1 parent 6afde3f commit de7d39b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 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 @@ -271,9 +274,6 @@ properties:
- !ruby/object:Api::Type::String
name: syncWaitSecs
description: 'Period in seconds between consecutive syncs. Default: 15'
- !ruby/object:Api::Type::String
name: version
description: 'Version of ACM installed'
- !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 de7d39b

Please sign in to comment.