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
|
| while read snapshot_name snapshot_date; do
|
||||||
echo "$snapshot_name" "$snapshot_date" "$datestr" | awk '$2 <= $3 { print $1 }'
|
echo "$snapshot_name" "$snapshot_date" "$datestr" | awk '$2 <= $3 { print $1 }'
|
||||||
done \
|
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:
|
env:
|
||||||
- name: POD_NAMESPACE
|
- name: POD_NAMESPACE
|
||||||
valueFrom:
|
valueFrom:
|
||||||
|
|
Loading…
Reference in New Issue