Skip to content

Commit

Permalink
fix(taskfiles): delete volumesnaphots in volsync cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Devin Buhl <[email protected]>
  • Loading branch information
onedr0p committed Mar 9, 2024
1 parent 635182c commit 9112848
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .taskfiles/VolSync/Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,10 @@ tasks:
cmd: |
{{- $items := (split "/" .ITEM) }}
kubectl --context {{.cluster}} delete pvc -n {{ $items._0 }} {{ $items._1 }}
- for: { var: snaps }
cmd: |
{{- $items := (split "/" .ITEM) }}
kubectl --context {{.cluster}} delete volumesnapshot -n {{ $items._0 }} {{ $items._1 }}
env: *env
requires:
vars: ["cluster"]
Expand All @@ -170,6 +174,8 @@ tasks:
sh: kubectl --context {{.cluster}} get pvc --all-namespaces --no-headers | grep "dst-dest" | awk '{print $1 "/" $2}'
cache:
sh: kubectl --context {{.cluster}} get pvc --all-namespaces --no-headers | grep "dst-cache" | awk '{print $1 "/" $2}'
snaps:
sh: kubectl --context {{.cluster}} get volumesnapshot --all-namespaces --no-headers | grep "dst-dest" | awk '{print $1 "/" $2}'

# Suspend the Flux ks and hr
.suspend:
Expand Down

0 comments on commit 9112848

Please sign in to comment.