Skip to content

Commit

Permalink
Add supported values of APISERVER, CONTROLLER_MANAGER, and SCHEDULER …
Browse files Browse the repository at this point in the history
…to monitoring_config (#6352) (#12247)

Signed-off-by: Modular Magician <magic-modules@google.com>
  • Loading branch information
modular-magician authored Aug 3, 2022
1 parent a6f5df3 commit 9e499a8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .changelog/6352.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
container: added support for additional values `APISERVER`, `CONTROLLER_MANAGER`, and `SCHEDULER` in `google_container_cluster.monitoring_config`
```
4 changes: 2 additions & 2 deletions google/resource_container_cluster.go
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -648,10 +648,10 @@ func resourceContainerCluster() *schema.Resource {
"enable_components": {
Type: schema.TypeList,
Required: true,
Description: `GKE components exposing metrics. Valid values include SYSTEM_COMPONENTS.`,
Description: `GKE components exposing metrics. Valid values include SYSTEM_COMPONENTS, APISERVER, CONTROLLER_MANAGER, and SCHEDULER.`,
Elem: &schema.Schema{
Type: schema.TypeString,
ValidateFunc: validation.StringInSlice([]string{"SYSTEM_COMPONENTS"}, false),
ValidateFunc: validation.StringInSlice([]string{"SYSTEM_COMPONENTS", "APISERVER", "CONTROLLER_MANAGER", "SCHEDULER"}, false),
},
},
},
Expand Down
2 changes: 1 addition & 1 deletion google/resource_container_cluster_test.go
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -4464,7 +4464,7 @@ resource "google_container_cluster" "primary" {
location = "us-central1-a"
initial_node_count = 1
monitoring_config {
enable_components = [ "SYSTEM_COMPONENTS" ]
enable_components = [ "SYSTEM_COMPONENTS", "APISERVER", "CONTROLLER_MANAGER", "SCHEDULER" ]
}
}
`, name)
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/container_cluster.html.markdown
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ as "Intel Haswell" or "Intel Sandy Bridge".

<a name="nested_monitoring_config"></a>The `monitoring_config` block supports:

* `enable_components` - (Optional) The GKE components exposing metrics. `SYSTEM_COMPONENTS` and in beta provider, both `SYSTEM_COMPONENTS` and `WORKLOADS` are supported. (`WORKLOADS` is deprecated and removed in GKE 1.24.)
* `enable_components` - (Optional) The GKE components exposing metrics. Supported values include: `SYSTEM_COMPONENTS`, `APISERVER`, `CONTROLLER_MANAGER`, and `SCHEDULER`. In beta provider, `WORKLOADS` is supported on top of those 4 values. (`WORKLOADS` is deprecated and removed in GKE 1.24.)

* `managed_prometheus` - (Optional, [Beta](https://terraform.io/docs/providers/google/guides/provider_versions.html)) Configuration for Managed Service for Prometheus. Structure is [documented below](#nested_managed_prometheus).

Expand Down

0 comments on commit 9e499a8

Please sign in to comment.