Struct google_api_proto::google::cloud::gkehub::configmanagement::v1::ConfigSync
source · pub struct ConfigSync {
pub git: Option<GitConfig>,
pub source_format: String,
pub enabled: Option<bool>,
pub prevent_drift: bool,
pub oci: Option<OciConfig>,
pub metrics_gcp_service_account_email: String,
}
Expand description
Configuration for Config Sync
Fields§
§git: Option<GitConfig>
Git repo configuration for the cluster.
source_format: String
Specifies whether the Config Sync Repo is in “hierarchical” or “unstructured” mode.
enabled: Option<bool>
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.
prevent_drift: bool
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.
oci: Option<OciConfig>
OCI repo configuration for the cluster
metrics_gcp_service_account_email: 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.
Implementations§
Trait Implementations§
source§impl Clone for ConfigSync
impl Clone for ConfigSync
source§fn clone(&self) -> ConfigSync
fn clone(&self) -> ConfigSync
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ConfigSync
impl Debug for ConfigSync
source§impl Default for ConfigSync
impl Default for ConfigSync
source§impl Message for ConfigSync
impl Message for ConfigSync
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for ConfigSync
impl PartialEq for ConfigSync
source§fn eq(&self, other: &ConfigSync) -> bool
fn eq(&self, other: &ConfigSync) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ConfigSync
Auto Trait Implementations§
impl Freeze for ConfigSync
impl RefUnwindSafe for ConfigSync
impl Send for ConfigSync
impl Sync for ConfigSync
impl Unpin for ConfigSync
impl UnwindSafe for ConfigSync
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request