k/forgejo: fixup snapshots
This commit is contained in:
parent
a80fce357b
commit
81c05ac069
|
@ -9,4 +9,4 @@ configMapGenerator:
|
||||||
- forgejo-volume-snapshot-template.yaml
|
- forgejo-volume-snapshot-template.yaml
|
||||||
images:
|
images:
|
||||||
- name: bitnami/kubectl
|
- name: bitnami/kubectl
|
||||||
newTag: 1.27.1@sha256:5e9d4cf927e21f51f99f9ec64eda94b3a7cebb66d4da9676081817f8f480fd2b
|
newTag: 1.27.1@sha256:8615576093c5290be5a5dcac3780e9fbf59bafe95a7c3addfff8799d43e0f091
|
||||||
|
|
|
@ -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 -n 1 kubectl -n $(POD_NAMESPACE) delete volumesnapshot "$snapshot_name"
|
| xargs --no-run-if-empty -n 1 echo kubectl -n $(POD_NAMESPACE) delete volumesnapshot "$snapshot_name"
|
||||||
env:
|
env:
|
||||||
- name: POD_NAMESPACE
|
- name: POD_NAMESPACE
|
||||||
valueFrom:
|
valueFrom:
|
||||||
|
|
Loading…
Reference in New Issue