Google Cloud Gke Backup V1 Client - Class ClusterResourceConflictPolicy (0.2.0)

Reference documentation and code samples for the Google Cloud Gke Backup V1 Client class ClusterResourceConflictPolicy.

Defines the behavior for handling the situation where cluster-scoped resources being restored already exist in the target cluster.

Protobuf type google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy

Methods

name

Parameter
NameDescription
value mixed

value

Parameter
NameDescription
name mixed

Constants

CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED

Value: 0

Unspecified. Only allowed if no cluster-scoped resources will be restored.

Generated from protobuf enum CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED = 0;

USE_EXISTING_VERSION

Value: 1

Do not attempt to restore the conflicting resource.

Generated from protobuf enum USE_EXISTING_VERSION = 1;

USE_BACKUP_VERSION

Value: 2

Delete the existing version before re-creating it from the Backup.

Note that this is a dangerous option which could cause unintentional data loss if used inappropriately - for example, deleting a CRD will cause Kubernetes to delete all CRs of that type.

Generated from protobuf enum USE_BACKUP_VERSION = 2;