You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add custom action type to volume policies (velero-io#9540)
* Add custom action type to volume policies
Signed-off-by: Scott Seago <sseago@redhat.com>
* Update internal/resourcepolicies/resource_policies.go
Co-authored-by: Tiger Kaovilai <passawit.kaovilai@gmail.com>
Signed-off-by: Scott Seago <sseago@redhat.com>
* added "custom" to validation list
Signed-off-by: Scott Seago <sseago@redhat.com>
* responding to review comments
Signed-off-by: Scott Seago <sseago@redhat.com>
---------
Signed-off-by: Scott Seago <sseago@redhat.com>
Co-authored-by: Tiger Kaovilai <passawit.kaovilai@gmail.com>
Signed-off-by: Scott Seago <sseago@redhat.com>
Copy file name to clipboardExpand all lines: internal/resourcepolicies/resource_policies.go
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -42,6 +42,8 @@ const (
42
42
FSBackupVolumeActionType="fs-backup"
43
43
// snapshot action can have 3 different meaning based on velero configuration and backup spec - cloud provider based snapshots, local csi snapshots and datamover snapshots
44
44
SnapshotVolumeActionType="snapshot"
45
+
// custom action is used to identify a volume that will be handled by an external plugin. Velero will not snapshot or use fs-backup if action=="custom"
46
+
CustomVolumeActionType="custom"
45
47
)
46
48
47
49
// Action defined as one action for a specific way of backup
// check if volume policy exists and also check if the object(pv/pvc) fits a volume policy criteria and see if the associated action is custom with the provided param values
0 commit comments