Skip to content

Commit

Permalink
Add mesh option to the GKE Hub feature membership resource documentat…
Browse files Browse the repository at this point in the history
…ion (#6811) (#13012)

Signed-off-by: Modular Magician <magic-modules@google.com>

Signed-off-by: Modular Magician <magic-modules@google.com>
  • Loading branch information
modular-magician committed Nov 10, 2022
1 parent 6771e71 commit f8ac976
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .changelog/6811.txt
@@ -0,0 +1,3 @@
```release-note:enhancement
gkehub: added `mesh` field and `management` subfield to resource `feature_membership`
```
47 changes: 47 additions & 0 deletions website/docs/r/gke_hub_feature_membership.html.markdown
Expand Up @@ -72,6 +72,44 @@ resource "google_gke_hub_feature" "feature" {
}
```

## Example Usage - Serivce Mesh

```hcl
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" {
membership_id = "my-membership"
endpoint {
gke_cluster {
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" {
location = "global"
feature = google_gke_hub_feature.feature.name
membership = google_gke_hub_membership.membership.membership_id
mesh {
management = "MANAGEMENT_AUTOMATIC"
}
provider = google-beta
}
```

## Argument Reference

The following arguments are supported:
Expand All @@ -81,6 +119,10 @@ The following arguments are supported:
* `configmanagement` -
(Optional)
Config Management-specific spec. Structure is [documented below](#nested_configmanagement).

* `mesh` -
(Optional)
Service mesh specific spec. Structure is [documented below](#nested_mesh).

* `feature` -
(Optional)
Expand Down Expand Up @@ -223,6 +265,11 @@ The following arguments are supported:
(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\"]

<a name="nested_mesh"></a>The `mesh` block supports:

* `management` -
(Optional)
Whether to automatically manage Service Mesh. Can either be `MANAGEMENT_AUTOMATIC` or `MANAGEMENT_MANUAL`.

## Attributes Reference

Expand Down

0 comments on commit f8ac976

Please sign in to comment.