fixup! feat: opnsense backup

This commit is contained in:
auricom
2025-02-06 21:40:56 +01:00
parent 1e97b99a14
commit 32e9d4b9dd
2 changed files with 9 additions and 3 deletions

View File

@@ -1,7 +1,13 @@
#!/usr/bin/env bash
set -o nounset
# Exit on error, undefined vars, pipe failures, and debug each command
set -o errexit
set -o nounset
set -o pipefail
set -o xtrace
# Cleanup temporary files on script exit
trap 'rm -f "/tmp/${config_filename}"' EXIT
config_filename="$(date "+%Y%m%d-%H%M%S").xml"

View File

@@ -37,13 +37,13 @@ spec:
app:
image:
repository: ghcr.io/auricom/kubectl
tag: 1.32.1@sha256:b01d7c1b5d9e900119a7568fc4d08a3a46afb65d430ed66173cdf101b4f211db
tag: 1.32.1@sha256:33ff33f4d00dc6779198b0da0200caddad8c191c59fe427dcaebe89695298ff0
command:
- /bin/bash
- /app/backup.sh
env:
OPNSENSE_URL: "https://opnsense.${SECRET_INTERNAL_DOMAIN}"
S3_URL: "https://minio.${SECRET_INTERNAL_DOMAIN}"
S3_URL: "https://s3.${SECRET_INTERNAL_DOMAIN}"
envFrom:
- secretRef:
name: homelab-opnsense-backup-secret