k/forgejo: fix snapshot deletion
This commit is contained in:
parent
0331504457
commit
83ec5d1faf
|
@ -75,7 +75,7 @@ spec:
|
|||
| while read snapshot_name snapshot_date; do
|
||||
echo "$snapshot_name" "$snapshot_date" "$datestr" | awk '$2 <= $3 { print $1 }'
|
||||
done \
|
||||
| xargs --no-run-if-empty -n 1 echo kubectl -n $(POD_NAMESPACE) delete volumesnapshot "$snapshot_name"
|
||||
| xargs --verbose --no-run-if-empty -n 1 kubectl -n $(POD_NAMESPACE) delete volumesnapshot
|
||||
env:
|
||||
- name: POD_NAMESPACE
|
||||
valueFrom:
|
||||
|
|
Loading…
Reference in New Issue