diff --git a/mmv1/third_party/terraform/website/docs/r/gke_hub_feature_membership.html.markdown b/mmv1/third_party/terraform/website/docs/r/gke_hub_feature_membership.html.markdown index 9d45db679f95..4ae995b89173 100644 --- a/mmv1/third_party/terraform/website/docs/r/gke_hub_feature_membership.html.markdown +++ b/mmv1/third_party/terraform/website/docs/r/gke_hub_feature_membership.html.markdown @@ -15,7 +15,6 @@ resource "google_container_cluster" "cluster" { name = "my-cluster" location = "us-central1-a" initial_node_count = 1 - provider = google-beta } resource "google_gke_hub_membership" "membership" { @@ -25,7 +24,6 @@ resource "google_gke_hub_membership" "membership" { resource_link = "//container.googleapis.com/${google_container_cluster.cluster.id}" } } - provider = google-beta } resource "google_gke_hub_feature" "feature" { @@ -35,7 +33,6 @@ resource "google_gke_hub_feature" "feature" { labels = { foo = "bar" } - provider = google-beta } resource "google_gke_hub_feature_membership" "feature_member" { @@ -50,7 +47,6 @@ resource "google_gke_hub_feature_membership" "feature_member" { } } } - provider = google-beta } ``` ## Example Usage - Config Management with OCI @@ -60,7 +56,6 @@ resource "google_container_cluster" "cluster" { name = "my-cluster" location = "us-central1-a" initial_node_count = 1 - provider = google-beta } resource "google_gke_hub_membership" "membership" { @@ -70,7 +65,6 @@ resource "google_gke_hub_membership" "membership" { resource_link = "//container.googleapis.com/${google_container_cluster.cluster.id}" } } - provider = google-beta } resource "google_gke_hub_feature" "feature" { @@ -80,7 +74,6 @@ resource "google_gke_hub_feature" "feature" { labels = { foo = "bar" } - provider = google-beta } resource "google_gke_hub_feature_membership" "feature_member" { @@ -99,7 +92,6 @@ resource "google_gke_hub_feature_membership" "feature_member" { } } } - provider = google-beta } ``` @@ -112,7 +104,6 @@ resource "google_gke_hub_feature" "feature" { labels = { foo = "bar" } - provider = google-beta } ``` @@ -123,7 +114,6 @@ resource "google_container_cluster" "cluster" { name = "my-cluster" location = "us-central1-a" initial_node_count = 1 - provider = google-beta } resource "google_gke_hub_membership" "membership" { @@ -133,14 +123,11 @@ resource "google_gke_hub_membership" "membership" { resource_link = "//container.googleapis.com/${google_container_cluster.cluster.id}" } } - provider = google-beta } resource "google_gke_hub_feature" "feature" { name = "servicemesh" location = "global" - - provider = google-beta } resource "google_gke_hub_feature_membership" "feature_member" { @@ -150,7 +137,50 @@ resource "google_gke_hub_feature_membership" "feature_member" { mesh { management = "MANAGEMENT_AUTOMATIC" } - provider = google-beta +} +``` + +## Example Usage - Config Management with Regional Membership + +```hcl +resource "google_container_cluster" "cluster" { + name = "my-cluster" + location = "us-central1-a" + initial_node_count = 1 +} + +resource "google_gke_hub_membership" "membership" { + membership_id = "my-membership" + location = "us-central1" + endpoint { + gke_cluster { + resource_link = "//container.googleapis.com/${google_container_cluster.cluster.id}" + } + } +} + +resource "google_gke_hub_feature" "feature" { + name = "configmanagement" + location = "global" + + labels = { + foo = "bar" + } +} + +resource "google_gke_hub_feature_membership" "feature_member" { + location = "global" + feature = google_gke_hub_feature.feature.name + membership = google_gke_hub_membership.membership.membership_id + membership_location = google_gke_hub_membership.membership.location + configmanagement { + version = "1.6.2" + config_sync { + git { + sync_repo = "https://github.com/hashicorp/terraform" + } + } + } } ``` @@ -178,7 +208,11 @@ The following arguments are supported: * `membership` - (Optional) - The name of the membership + The name of the membership + +* `membership_location` - + (Optional) + The location of the membership, for example, "us-central1". Default is "global". * `project` - (Optional) @@ -334,7 +368,7 @@ The following arguments are supported: * `monitoring` - (Optional) - Specifies the backends Policy Controller should export metrics to. For example, to specify metrics should be exported to Cloud Monitoring and Prometheus, specify backends: [\"cloudmonitoring\", \"prometheus\"]. Default: [\"cloudmonitoring\", \"prometheus\"] + Specifies the backends Policy Controller should export metrics to. For example, to specify metrics should be exported to Cloud Monitoring and Prometheus, specify backends: ["cloudmonitoring", "prometheus"]. Default: ["cloudmonitoring", "prometheus"] The `mesh` block supports: