From f3acf85124d9ed964488a244832a0686c4ad8c1a Mon Sep 17 00:00:00 2001 From: gitea-bot Date: Sat, 20 Dec 2025 22:36:40 +0000 Subject: [PATCH] Automated Manifest Update (#2768) This PR contains newly rendered Kubernetes manifests automatically generated by the CI workflow. Reviewed-on: https://gitea.alexlebens.dev/alexlebens/infrastructure/pulls/2768 Co-authored-by: gitea-bot Co-committed-by: gitea-bot --- .../talos/ConfigMap-talos-prune-script.yaml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/clusters/cl01tl/manifests/talos/ConfigMap-talos-prune-script.yaml b/clusters/cl01tl/manifests/talos/ConfigMap-talos-prune-script.yaml index b6d5ed463..5bf7ace92 100644 --- a/clusters/cl01tl/manifests/talos/ConfigMap-talos-prune-script.yaml +++ b/clusters/cl01tl/manifests/talos/ConfigMap-talos-prune-script.yaml @@ -19,14 +19,13 @@ data: echo " "; echo ">> Configured Date Range is $(date -u -d @${DATE_RANGE_SECONDS} +"%j days, %H hours, %M minutes")"; echo ">> Backups prior to '$DATE_RANGE' will be removed"; - echo " "; - echo ">> Backups to be removed:"; - $FILES=$(s3cmd ls --no-check-certificate ${BUCKET}/cl01tl/etcd/ | - awk -v file_match="$FILE_MATCH" '$4 < file_match {print $4}' | - grep . | sort -u); - echo "$FILES" + FILES=$(s3cmd ls --no-check-certificate ${BUCKET}/cl01tl/etcd/ | + awk -v file_match="$FILE_MATCH" '$4 < file_match {print $4}'); if [ -n "${FILES}" ]; then + echo " "; + echo ">> Backups to be removed:"; + echo "$FILES" echo " "; echo ">> Deleting ..."; $FILES | while read file; do @@ -36,6 +35,9 @@ data: echo ">> Detected error, will send message to ntfy"; fi; done; + else + echo " "; + echo ">> No backups to remove"; fi; if [ "$ERROR" = "true" ]; then