Skip to content

Commit 6c472e3

Browse files
terlaranoopkverma-google
authored andcommitted
Add support for the metricsGcpServiceAccountEmail field in ConfigManagement Fleet-level default config (GoogleCloudPlatform#12681)
1 parent 22a1ea0 commit 6c472e3

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

mmv1/products/gkehub2/Feature.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,9 @@ properties:
283283
- name: 'preventDrift'
284284
type: Boolean
285285
description: 'Set to true to enable the Config Sync admission webhook to prevent drifts. If set to `false`, disables the Config Sync admission webhook and does not prevent drifts.'
286+
- name: 'metricsGcpServiceAccountEmail'
287+
type: String
288+
description: 'The Email of the Google Cloud Service Account (GSA) used for exporting Config Sync metrics to Cloud Monitoring. The GSA should have the Monitoring Metric Writer(roles/monitoring.metricWriter) IAM role. The Kubernetes ServiceAccount `default` in the namespace `config-management-monitoring` should be bound to the GSA.'
286289
- name: 'git'
287290
type: NestedObject
288291
description: 'Git repo configuration for the cluster'

mmv1/third_party/terraform/services/gkehub2/resource_gke_hub_feature_test.go.tmpl

+1
Original file line numberDiff line numberDiff line change
@@ -579,6 +579,7 @@ resource "google_gke_hub_feature" "feature" {
579579
enabled = true
580580
prevent_drift = true
581581
source_format = "unstructured"
582+
metrics_gcp_service_account_email = "[email protected]"
582583
oci {
583584
sync_repo = "us-central1-docker.pkg.dev/corp-gke-build-artifacts/acm/configs:latest"
584585
policy_dir = "/acm/nonprod-root/"

0 commit comments

Comments
 (0)