Backup for GKE V1 API - Module Google::Cloud::GkeBackup::V1::RestoreConfig::ClusterResourceConflictPolicy (v0.3.0)

Reference documentation and code samples for the Backup for GKE V1 API module Google::Cloud::GkeBackup::V1::RestoreConfig::ClusterResourceConflictPolicy.

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

Constants

CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED

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

USE_EXISTING_VERSION

value: 1
Do not attempt to restore the conflicting resource.

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.