public static final class ConfigSync.Builder extends GeneratedMessage.Builder<ConfigSync.Builder> implements ConfigSyncOrBuilderConfiguration for Config Sync
Protobuf type google.cloud.gkehub.configmanagement.v1beta.ConfigSync
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ConfigSync.BuilderImplements
ConfigSyncOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllDeploymentOverrides(Iterable<? extends DeploymentOverride> values)
public ConfigSync.Builder addAllDeploymentOverrides(Iterable<? extends DeploymentOverride> values) 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.
repeated .google.cloud.gkehub.configmanagement.v1beta.DeploymentOverride deployment_overrides = 17 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.gkehub.configmanagement.v1beta.DeploymentOverride> |
| Returns | |
|---|---|
| Type | Description |
ConfigSync.Builder |
|
addDeploymentOverrides(DeploymentOverride value)
public ConfigSync.Builder addDeploymentOverrides(DeploymentOverride value) 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.
repeated .google.cloud.gkehub.configmanagement.v1beta.DeploymentOverride deployment_overrides = 17 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
DeploymentOverride |
| Returns | |
|---|---|
| Type | Description |
ConfigSync.Builder |
|
addDeploymentOverrides(DeploymentOverride.Builder builderForValue)
public ConfigSync.Builder addDeploymentOverrides(DeploymentOverride.Builder builderForValue) 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.
repeated .google.cloud.gkehub.configmanagement.v1beta.DeploymentOverride deployment_overrides = 17 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
DeploymentOverride.Builder |
| Returns | |
|---|---|
| Type | Description |
ConfigSync.Builder |
|
addDeploymentOverrides(int index, DeploymentOverride value)
public ConfigSync.Builder addDeploymentOverrides(int index, DeploymentOverride value) 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.
repeated .google.cloud.gkehub.configmanagement.v1beta.DeploymentOverride deployment_overrides = 17 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
DeploymentOverride |
| Returns | |
|---|---|
| Type | Description |
ConfigSync.Builder |
|
addDeploymentOverrides(int index, DeploymentOverride.Builder builderForValue)
public ConfigSync.Builder addDeploymentOverrides(int index, DeploymentOverride.Builder builderForValue) 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.
repeated .google.cloud.gkehub.configmanagement.v1beta.DeploymentOverride deployment_overrides = 17 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
DeploymentOverride.Builder |
| Returns | |
|---|---|
| Type | Description |
ConfigSync.Builder |
|
addDeploymentOverridesBuilder()
public DeploymentOverride.Builder addDeploymentOverridesBuilder() 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.
repeated .google.cloud.gkehub.configmanagement.v1beta.DeploymentOverride deployment_overrides = 17 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
DeploymentOverride.Builder |
|
addDeploymentOverridesBuilder(int index)
public DeploymentOverride.Builder addDeploymentOverridesBuilder(int index) 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.
repeated .google.cloud.gkehub.configmanagement.v1beta.DeploymentOverride deployment_overrides = 17 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
DeploymentOverride.Builder |
|
build()
public ConfigSync build()| Returns | |
|---|---|
| Type | Description |
ConfigSync |
|
buildPartial()
public ConfigSync buildPartial()| Returns | |
|---|---|
| Type | Description |
ConfigSync |
|
clear()
public ConfigSync.Builder clear()| Returns | |
|---|---|
| Type | Description |
ConfigSync.Builder |
|
clearDeploymentOverrides()
public ConfigSync.Builder clearDeploymentOverrides() 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.
repeated .google.cloud.gkehub.configmanagement.v1beta.DeploymentOverride deployment_overrides = 17 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ConfigSync.Builder |
|
clearEnabled()
public ConfigSync.Builder clearEnabled()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.
optional bool enabled = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ConfigSync.Builder |
This builder for chaining. |
clearGit()
public ConfigSync.Builder clearGit()Optional. Git repo configuration for the cluster.
.google.cloud.gkehub.configmanagement.v1beta.GitConfig git = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ConfigSync.Builder |
|
clearOci()
public ConfigSync.Builder clearOci()Optional. OCI repo configuration for the cluster
.google.cloud.gkehub.configmanagement.v1beta.OciConfig oci = 12 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ConfigSync.Builder |
|
clearPreventDrift()
public ConfigSync.Builder clearPreventDrift()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.
bool prevent_drift = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ConfigSync.Builder |
This builder for chaining. |
clearSourceFormat()
public ConfigSync.Builder clearSourceFormat() 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.
string source_format = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ConfigSync.Builder |
This builder for chaining. |
clearStopSyncing()
public ConfigSync.Builder clearStopSyncing()Optional. Set to true to stop syncing configs for a single cluster. Default to false.
bool stop_syncing = 16 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ConfigSync.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public ConfigSync getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ConfigSync |
|
getDeploymentOverrides(int index)
public DeploymentOverride getDeploymentOverrides(int index) 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.
repeated .google.cloud.gkehub.configmanagement.v1beta.DeploymentOverride deployment_overrides = 17 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
DeploymentOverride |
|
getDeploymentOverridesBuilder(int index)
public DeploymentOverride.Builder getDeploymentOverridesBuilder(int index) 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.
repeated .google.cloud.gkehub.configmanagement.v1beta.DeploymentOverride deployment_overrides = 17 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
DeploymentOverride.Builder |
|
getDeploymentOverridesBuilderList()
public List<DeploymentOverride.Builder> getDeploymentOverridesBuilderList() 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.
repeated .google.cloud.gkehub.configmanagement.v1beta.DeploymentOverride deployment_overrides = 17 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getDeploymentOverridesCount()
public int getDeploymentOverridesCount() 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.
repeated .google.cloud.gkehub.configmanagement.v1beta.DeploymentOverride deployment_overrides = 17 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
|
getDeploymentOverridesList()
public List<DeploymentOverride> getDeploymentOverridesList() 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.
repeated .google.cloud.gkehub.configmanagement.v1beta.DeploymentOverride deployment_overrides = 17 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<DeploymentOverride> |
|
getDeploymentOverridesOrBuilder(int index)
public DeploymentOverrideOrBuilder getDeploymentOverridesOrBuilder(int index) 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.
repeated .google.cloud.gkehub.configmanagement.v1beta.DeploymentOverride deployment_overrides = 17 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
DeploymentOverrideOrBuilder |
|
getDeploymentOverridesOrBuilderList()
public List<? extends DeploymentOverrideOrBuilder> getDeploymentOverridesOrBuilderList() 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.
repeated .google.cloud.gkehub.configmanagement.v1beta.DeploymentOverride deployment_overrides = 17 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.gkehub.configmanagement.v1beta.DeploymentOverrideOrBuilder> |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getEnabled()
public boolean getEnabled()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.
optional bool enabled = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The enabled. |
getGit()
public GitConfig getGit()Optional. Git repo configuration for the cluster.
.google.cloud.gkehub.configmanagement.v1beta.GitConfig git = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
GitConfig |
The git. |
getGitBuilder()
public GitConfig.Builder getGitBuilder()Optional. Git repo configuration for the cluster.
.google.cloud.gkehub.configmanagement.v1beta.GitConfig git = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
GitConfig.Builder |
|
getGitOrBuilder()
public GitConfigOrBuilder getGitOrBuilder()Optional. Git repo configuration for the cluster.
.google.cloud.gkehub.configmanagement.v1beta.GitConfig git = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
GitConfigOrBuilder |
|
getOci()
public OciConfig getOci()Optional. OCI repo configuration for the cluster
.google.cloud.gkehub.configmanagement.v1beta.OciConfig oci = 12 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
OciConfig |
The oci. |
getOciBuilder()
public OciConfig.Builder getOciBuilder()Optional. OCI repo configuration for the cluster
.google.cloud.gkehub.configmanagement.v1beta.OciConfig oci = 12 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
OciConfig.Builder |
|
getOciOrBuilder()
public OciConfigOrBuilder getOciOrBuilder()Optional. OCI repo configuration for the cluster
.google.cloud.gkehub.configmanagement.v1beta.OciConfig oci = 12 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
OciConfigOrBuilder |
|
getPreventDrift()
public boolean getPreventDrift()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.
bool prevent_drift = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The preventDrift. |
getSourceFormat()
public String getSourceFormat() 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.
string source_format = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The sourceFormat. |
getSourceFormatBytes()
public ByteString getSourceFormatBytes() 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.
string source_format = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for sourceFormat. |
getStopSyncing()
public boolean getStopSyncing()Optional. Set to true to stop syncing configs for a single cluster. Default to false.
bool stop_syncing = 16 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The stopSyncing. |
hasEnabled()
public boolean hasEnabled()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.
optional bool enabled = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the enabled field is set. |
hasGit()
public boolean hasGit()Optional. Git repo configuration for the cluster.
.google.cloud.gkehub.configmanagement.v1beta.GitConfig git = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the git field is set. |
hasOci()
public boolean hasOci()Optional. OCI repo configuration for the cluster
.google.cloud.gkehub.configmanagement.v1beta.OciConfig oci = 12 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the oci field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(ConfigSync other)
public ConfigSync.Builder mergeFrom(ConfigSync other)| Parameter | |
|---|---|
| Name | Description |
other |
ConfigSync |
| Returns | |
|---|---|
| Type | Description |
ConfigSync.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ConfigSync.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ConfigSync.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ConfigSync.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ConfigSync.Builder |
|
mergeGit(GitConfig value)
public ConfigSync.Builder mergeGit(GitConfig value)Optional. Git repo configuration for the cluster.
.google.cloud.gkehub.configmanagement.v1beta.GitConfig git = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
GitConfig |
| Returns | |
|---|---|
| Type | Description |
ConfigSync.Builder |
|
mergeOci(OciConfig value)
public ConfigSync.Builder mergeOci(OciConfig value)Optional. OCI repo configuration for the cluster
.google.cloud.gkehub.configmanagement.v1beta.OciConfig oci = 12 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
OciConfig |
| Returns | |
|---|---|
| Type | Description |
ConfigSync.Builder |
|
removeDeploymentOverrides(int index)
public ConfigSync.Builder removeDeploymentOverrides(int index) 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.
repeated .google.cloud.gkehub.configmanagement.v1beta.DeploymentOverride deployment_overrides = 17 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ConfigSync.Builder |
|
setDeploymentOverrides(int index, DeploymentOverride value)
public ConfigSync.Builder setDeploymentOverrides(int index, DeploymentOverride value) 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.
repeated .google.cloud.gkehub.configmanagement.v1beta.DeploymentOverride deployment_overrides = 17 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
DeploymentOverride |
| Returns | |
|---|---|
| Type | Description |
ConfigSync.Builder |
|
setDeploymentOverrides(int index, DeploymentOverride.Builder builderForValue)
public ConfigSync.Builder setDeploymentOverrides(int index, DeploymentOverride.Builder builderForValue) 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.
repeated .google.cloud.gkehub.configmanagement.v1beta.DeploymentOverride deployment_overrides = 17 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
DeploymentOverride.Builder |
| Returns | |
|---|---|
| Type | Description |
ConfigSync.Builder |
|
setEnabled(boolean value)
public ConfigSync.Builder setEnabled(boolean value)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.
optional bool enabled = 10 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe enabled to set. |
| Returns | |
|---|---|
| Type | Description |
ConfigSync.Builder |
This builder for chaining. |
setGit(GitConfig value)
public ConfigSync.Builder setGit(GitConfig value)Optional. Git repo configuration for the cluster.
.google.cloud.gkehub.configmanagement.v1beta.GitConfig git = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
GitConfig |
| Returns | |
|---|---|
| Type | Description |
ConfigSync.Builder |
|
setGit(GitConfig.Builder builderForValue)
public ConfigSync.Builder setGit(GitConfig.Builder builderForValue)Optional. Git repo configuration for the cluster.
.google.cloud.gkehub.configmanagement.v1beta.GitConfig git = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
GitConfig.Builder |
| Returns | |
|---|---|
| Type | Description |
ConfigSync.Builder |
|
setOci(OciConfig value)
public ConfigSync.Builder setOci(OciConfig value)Optional. OCI repo configuration for the cluster
.google.cloud.gkehub.configmanagement.v1beta.OciConfig oci = 12 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
OciConfig |
| Returns | |
|---|---|
| Type | Description |
ConfigSync.Builder |
|
setOci(OciConfig.Builder builderForValue)
public ConfigSync.Builder setOci(OciConfig.Builder builderForValue)Optional. OCI repo configuration for the cluster
.google.cloud.gkehub.configmanagement.v1beta.OciConfig oci = 12 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
OciConfig.Builder |
| Returns | |
|---|---|
| Type | Description |
ConfigSync.Builder |
|
setPreventDrift(boolean value)
public ConfigSync.Builder setPreventDrift(boolean value)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.
bool prevent_drift = 11 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe preventDrift to set. |
| Returns | |
|---|---|
| Type | Description |
ConfigSync.Builder |
This builder for chaining. |
setSourceFormat(String value)
public ConfigSync.Builder setSourceFormat(String value) 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.
string source_format = 8 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe sourceFormat to set. |
| Returns | |
|---|---|
| Type | Description |
ConfigSync.Builder |
This builder for chaining. |
setSourceFormatBytes(ByteString value)
public ConfigSync.Builder setSourceFormatBytes(ByteString value) 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.
string source_format = 8 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for sourceFormat to set. |
| Returns | |
|---|---|
| Type | Description |
ConfigSync.Builder |
This builder for chaining. |
setStopSyncing(boolean value)
public ConfigSync.Builder setStopSyncing(boolean value)Optional. Set to true to stop syncing configs for a single cluster. Default to false.
bool stop_syncing = 16 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe stopSyncing to set. |
| Returns | |
|---|---|
| Type | Description |
ConfigSync.Builder |
This builder for chaining. |