1
0
Fork 0

k/forgejo: fixup snapshots

This commit is contained in:
Ryan Heywood 2024-01-06 00:13:05 -05:00
parent a80fce357b
commit 81c05ac069
Signed by: ryan
GPG Key ID: 8E401478A3FBEF72
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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: