public sealed class ConfigSync : IMessage<ConfigSync>, IEquatable<ConfigSync>, IDeepCloneable<ConfigSync>, IBufferMessage, IMessage
Reference documentation and code samples for the GKE Hub v1 API class ConfigSync.
Configuration for Config Sync
Implements
IMessageConfigSync, IEquatableConfigSync, IDeepCloneableConfigSync, IBufferMessage, IMessageNamespace
Google.Cloud.GkeHub.V1.ConfigManagementAssembly
Google.Cloud.GkeHub.V1.dll
Constructors
ConfigSync()
public ConfigSync()
ConfigSync(ConfigSync)
public ConfigSync(ConfigSync other)
Parameter | |
---|---|
Name | Description |
other |
ConfigSync |
Properties
Enabled
public bool Enabled { get; set; }
Enables the installation of ConfigSync. If set to true, ConfigSync resources will be created and the other ConfigSync fields will be applied if exist. If set to false, all other ConfigSync fields will be ignored, ConfigSync resources will be deleted. If omitted, ConfigSync resources will be managed depends on the presence of the git or oci field.
Property Value | |
---|---|
Type | Description |
bool |
Git
public GitConfig Git { get; set; }
Git repo configuration for the cluster.
Property Value | |
---|---|
Type | Description |
GitConfig |
HasEnabled
public bool HasEnabled { get; }
Gets whether the "enabled" field is set
Property Value | |
---|---|
Type | Description |
bool |
MetricsGcpServiceAccountEmail
public string MetricsGcpServiceAccountEmail { get; set; }
The Email of the Google Cloud Service Account (GSA) used for exporting
Config Sync metrics to Cloud Monitoring 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.
Property Value | |
---|---|
Type | Description |
string |
Oci
public OciConfig Oci { get; set; }
OCI repo configuration for the cluster
Property Value | |
---|---|
Type | Description |
OciConfig |
PreventDrift
public bool PreventDrift { get; set; }
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.
Property Value | |
---|---|
Type | Description |
bool |
SourceFormat
public string SourceFormat { get; set; }
Specifies whether the Config Sync Repo is in "hierarchical" or "unstructured" mode.
Property Value | |
---|---|
Type | Description |
string |