Class ConfigManagementConfigSync
Configuration for Config Sync
Implements
Inherited Members
Namespace: Google.Apis.GKEHub.v2alpha.Data
Assembly: Google.Apis.GKEHub.v2alpha.dll
Syntax
public class ConfigManagementConfigSync : IDirectResponseSchema
Properties
DeploymentOverrides
Optional. Configuration for deployment overrides. Applies only to Config Sync deployments with containers
that are not a root or namespace reconciler: reconciler-manager, otel-collector,
resource-group-controller-manager, admission-webhook. To override a root or namespace reconciler, use
the rootsync or reposync fields at
https://docs.cloud.google.com/kubernetes-engine/config-sync/docs/reference/rootsync-reposync-fields#override-resources
instead.
Declaration
[JsonProperty("deploymentOverrides")]
public virtual IList<ConfigManagementDeploymentOverride> DeploymentOverrides { get; set; }
Property Value
| Type | Description |
|---|---|
| IList<ConfigManagementDeploymentOverride> |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Enabled
Optional. Enables the installation of Config Sync. If set to true, the Feature will manage Config Sync resources, and apply the other ConfigSync fields if they exist. If set to false, the Feature will ignore all other ConfigSync fields and delete the Config Sync resources. If omitted, ConfigSync is considered enabled if the git or oci field is present.
Declaration
[JsonProperty("enabled")]
public virtual bool? Enabled { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? |
Git
Optional. Git repo configuration for the cluster.
Declaration
[JsonProperty("git")]
public virtual ConfigManagementGitConfig Git { get; set; }
Property Value
| Type | Description |
|---|---|
| ConfigManagementGitConfig |
MetricsGcpServiceAccountEmail
Optional. The Email of the Google Cloud Service Account (GSA) used for exporting Config Sync metrics to
Cloud Monitoring and Cloud Monarch when Workload Identity is enabled. 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. Deprecated: If Workload Identity
Federation for GKE is enabled, Google Cloud Service Account is no longer needed for exporting Config Sync
metrics:
https://cloud.google.com/kubernetes-engine/enterprise/config-sync/docs/how-to/monitor-config-sync-cloud-monitoring#custom-monitoring.
Declaration
[JsonProperty("metricsGcpServiceAccountEmail")]
public virtual string MetricsGcpServiceAccountEmail { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Oci
Optional. OCI repo configuration for the cluster.
Declaration
[JsonProperty("oci")]
public virtual ConfigManagementOciConfig Oci { get; set; }
Property Value
| Type | Description |
|---|---|
| ConfigManagementOciConfig |
PreventDrift
Optional. 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. Defaults to false. See https://docs.cloud.google.com/kubernetes-engine/config-sync/docs/how-to/prevent-config-drift for details.
Declaration
[JsonProperty("preventDrift")]
public virtual bool? PreventDrift { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? |
SourceFormat
Optional. Specifies whether the Config Sync repo is in hierarchical or unstructured mode. Defaults to
hierarchical. See
https://docs.cloud.google.com/kubernetes-engine/config-sync/docs/concepts/configs#organize-configs for an
explanation.
Declaration
[JsonProperty("sourceFormat")]
public virtual string SourceFormat { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
StopSyncing
Optional. Set to true to stop syncing configs for a single cluster. Default to false.
Declaration
[JsonProperty("stopSyncing")]
public virtual bool? StopSyncing { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? |