Add AnnVolumeSnapshotBeingCreated

This commit is contained in:
xing-yang
2020-02-27 21:02:26 +00:00
parent 6c1c0ea959
commit 313507f866
2 changed files with 87 additions and 1 deletions

View File

@@ -78,6 +78,22 @@ const (
// backing the snapshot content.
AnnVolumeSnapshotBeingDeleted = "snapshot.storage.kubernetes.io/volumesnapshot-being-deleted"
// AnnVolumeSnapshotBeingCreated annotation applies to VolumeSnapshotContents.
// If it is set and value is "yes", it indicates that the csi-snapshotter
// sidecar has sent the create snapshot request to the storage system and
// is waiting for a response of success or failure.
// This annotation will be set to "no" if the driver's CreateSnapshot
// CSI function returns success or failure. If the create snapshot
// request times out, retry will happen and the annotation value will
// stay as "yes".
// This only applies to dynamic provisioning of snapshots because
// the create snapshot CSI method will not be called for pre-provisioned
// snapshots.
AnnVolumeSnapshotBeingCreated = "snapshot.storage.kubernetes.io/volumesnapshot-being-created"
// VolumeSnapshotBeingCreated annotation values can be "yes" or "no"
AnnVolumeSnapshotBeingCreated_Yes = "yes"
AnnVolumeSnapshotBeingCreated_No = "no"
// Annotation for secret name and namespace will be added to the content
// and used at snapshot content deletion time.
AnnDeletionSecretRefName = "snapshot.storage.kubernetes.io/deletion-secret-name"