From 81c05ac0699bc77000931aa71860048669fd6b0b Mon Sep 17 00:00:00 2001 From: "ryan-distrust.co" Date: Sat, 6 Jan 2024 00:13:05 -0500 Subject: [PATCH] k/forgejo: fixup snapshots --- kustomizations/forgejo/snapshots/kustomization.yaml | 2 +- kustomizations/forgejo/snapshots/resources.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kustomizations/forgejo/snapshots/kustomization.yaml b/kustomizations/forgejo/snapshots/kustomization.yaml index c38d1d4..50eb8bf 100644 --- a/kustomizations/forgejo/snapshots/kustomization.yaml +++ b/kustomizations/forgejo/snapshots/kustomization.yaml @@ -9,4 +9,4 @@ configMapGenerator: - forgejo-volume-snapshot-template.yaml images: - name: bitnami/kubectl - newTag: 1.27.1@sha256:5e9d4cf927e21f51f99f9ec64eda94b3a7cebb66d4da9676081817f8f480fd2b + newTag: 1.27.1@sha256:8615576093c5290be5a5dcac3780e9fbf59bafe95a7c3addfff8799d43e0f091 diff --git a/kustomizations/forgejo/snapshots/resources.yaml b/kustomizations/forgejo/snapshots/resources.yaml index 45c78ca..2856eb6 100644 --- a/kustomizations/forgejo/snapshots/resources.yaml +++ b/kustomizations/forgejo/snapshots/resources.yaml @@ -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 -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: - name: POD_NAMESPACE valueFrom: