add status deleting of volumesnapshot
Signed-off-by: zhangmin <arminzhang@yunify.com>
This commit is contained in:
@@ -28,6 +28,7 @@ import (
|
||||
const (
|
||||
statusCreating = "creating"
|
||||
statusReady = "ready"
|
||||
statusDeleting = "deleting"
|
||||
|
||||
volumeSnapshotClassName = "volumeSnapshotClassName"
|
||||
persistentVolumeClaimName = "persistentVolumeClaimName"
|
||||
@@ -96,5 +97,8 @@ func snapshotStatus(item *v1beta1.VolumeSnapshot) string {
|
||||
if item != nil && item.Status != nil && item.Status.ReadyToUse != nil && *item.Status.ReadyToUse {
|
||||
status = statusReady
|
||||
}
|
||||
if item != nil && item.DeletionTimestamp != nil{
|
||||
status = statusDeleting
|
||||
}
|
||||
return status
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user