Automated Manifest Update (#2768)
This PR contains newly rendered Kubernetes manifests automatically generated by the CI workflow. Reviewed-on: #2768 Co-authored-by: gitea-bot <gitea-bot@alexlebens.net> Co-committed-by: gitea-bot <gitea-bot@alexlebens.net>
This commit was merged in pull request #2768.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user