Google Cloud Gke Backup V1 Client - Class VolumeDataRestorePolicy (0.3.1)

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

Defines how volume data should be restored.

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

Namespace

Google \ Cloud \ GkeBackup \ V1 \ RestoreConfig

Methods

static::name

Parameter
NameDescription
value mixed

static::value

Parameter
NameDescription
name mixed

Constants

VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED

Value: 0

Unspecified (illegal).

Generated from protobuf enum VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED = 0;

RESTORE_VOLUME_DATA_FROM_BACKUP

Value: 1

For each PVC to be restored, create a new underlying volume and PV from the corresponding VolumeBackup contained within the Backup.

Generated from protobuf enum RESTORE_VOLUME_DATA_FROM_BACKUP = 1;

REUSE_VOLUME_HANDLE_FROM_BACKUP

Value: 2

For each PVC to be restored, attempt to reuse the original PV contained in the Backup (with its original underlying volume). This option is likely only usable when restoring a workload to its original cluster.

Generated from protobuf enum REUSE_VOLUME_HANDLE_FROM_BACKUP = 2;

NO_VOLUME_DATA_RESTORATION

Value: 3

For each PVC to be restored, create PVC without any particular action to restore data. In this case, the normal Kubernetes provisioning logic would kick in, and this would likely result in either dynamically provisioning blank PVs or binding to statically provisioned PVs.

Generated from protobuf enum NO_VOLUME_DATA_RESTORATION = 3;