Skip to content

Add support for the metricsGcpServiceAccountEmail field in ConfigManagement Fleet-level default config #12681

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

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions mmv1/products/gkehub2/Feature.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,9 @@ properties:
- name: 'preventDrift'
type: Boolean
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.'
- name: 'metricsGcpServiceAccountEmail'
type: String
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.'
- name: 'git'
type: NestedObject
description: 'Git repo configuration for the cluster'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,7 @@ resource "google_gke_hub_feature" "feature" {
enabled = true
prevent_drift = true
source_format = "unstructured"
metrics_gcp_service_account_email = "[email protected]"
oci {
sync_repo = "us-central1-docker.pkg.dev/corp-gke-build-artifacts/acm/configs:latest"
policy_dir = "/acm/nonprod-root/"
Expand Down
Loading