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

The version field should be under configmanagement instead of under oci, deprecating the older field #16818

Conversation

modular-magician
Copy link
Collaborator

Fixes #16684

Release Note Template for Downstream PRs (will be copied)

gkehub2: added field `version` under `configmanagement` in `google_gke_hub_feature` resource
gkehub2: deprecated field `configmanagement.config_sync.oci.version` in `google_gke_hub_feature` resource

Derived from GoogleCloudPlatform/magic-modules#9648

…ci, deprecating the older field (hashicorp#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 <87669292+shuyama1@users.noreply.github.com>

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

Co-authored-by: Shuya Ma <87669292+shuyama1@users.noreply.github.com>

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

Co-authored-by: Shuya Ma <87669292+shuyama1@users.noreply.github.com>

* 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 <87669292+shuyama1@users.noreply.github.com>
[upstream:897b7f18d1740bc864111c79fe56bf57c628ecc6]

Signed-off-by: Modular Magician <magic-modules@google.com>
@modular-magician modular-magician merged commit 7552ac2 into hashicorp:main Dec 15, 2023
4 checks passed
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The version field should be under configmanagement for google_gke_hub_feature resource
1 participant