GKE Hub V1 API - Class Google::Cloud::GkeHub::ConfigManagement::V1::ConfigSync (v0.10.0)

Reference documentation and code samples for the GKE Hub V1 API class Google::Cloud::GkeHub::ConfigManagement::V1::ConfigSync.

Configuration for Config Sync

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#enabled

def enabled() -> ::Boolean
Returns
  • (::Boolean) — 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.

#enabled=

def enabled=(value) -> ::Boolean
Parameter
  • value (::Boolean) — 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.
Returns
  • (::Boolean) — 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.

#git

def git() -> ::Google::Cloud::GkeHub::ConfigManagement::V1::GitConfig
Returns

#git=

def git=(value) -> ::Google::Cloud::GkeHub::ConfigManagement::V1::GitConfig
Parameter
Returns

#metrics_gcp_service_account_email

def metrics_gcp_service_account_email() -> ::String
Returns
  • (::String) — 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.

#metrics_gcp_service_account_email=

def metrics_gcp_service_account_email=(value) -> ::String
Parameter
  • value (::String) — 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.
Returns
  • (::String) — 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.

#oci

def oci() -> ::Google::Cloud::GkeHub::ConfigManagement::V1::OciConfig
Returns

#oci=

def oci=(value) -> ::Google::Cloud::GkeHub::ConfigManagement::V1::OciConfig
Parameter
Returns

#prevent_drift

def prevent_drift() -> ::Boolean
Returns
  • (::Boolean) — 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.

#prevent_drift=

def prevent_drift=(value) -> ::Boolean
Parameter
  • value (::Boolean) — 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.
Returns
  • (::Boolean) — 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.

#source_format

def source_format() -> ::String
Returns
  • (::String) — Specifies whether the Config Sync Repo is in "hierarchical" or "unstructured" mode.

#source_format=

def source_format=(value) -> ::String
Parameter
  • value (::String) — Specifies whether the Config Sync Repo is in "hierarchical" or "unstructured" mode.
Returns
  • (::String) — Specifies whether the Config Sync Repo is in "hierarchical" or "unstructured" mode.