Compare commits

..
Author SHA1 Message Date
danijel.simeunovic 875a8babaa Delete .gitea/workflows/ai-review.yaml
scan.yaml / test (pull_request) Successful in 5s
2026-10-14 00:51:28 +02:00
danijel.simeunovic 90b8e6f2a4 fix backups
scan.yaml / test (pull_request) Successful in 7s
2026-10-14 00:42:57 +02:00
5 changed files with 30 additions and 8 deletions
+21 -5
View File
@@ -29,7 +29,12 @@ spec:
topologyKey: kubernetes.io/hostname topologyKey: kubernetes.io/hostname
initContainers: initContainers:
- name: gitea-dump - name: gitea-dump
image: gitea/gitea:28.1.0 # MUST match the running server's Gitea version (chart gitea 12.7.0 ->
# appVersion 1.27.0, see infra/base/gitea/gitea.yaml). `gitea dump` reads
# the schema its own binary knows about, so a newer binary dumps tables
# the server has not migrated yet and dies on the first missing one.
# Bump this only together with the chart, never on its own.
image: gitea/gitea:1.27.0
command: command:
- sh - sh
- -c - -c
@@ -49,25 +54,36 @@ spec:
mountPath: /tmp/gitea-dump mountPath: /tmp/gitea-dump
containers: containers:
- name: upload - name: upload
image: minio/mc:latest # Was minio/mc:latest until MinIO made the mc repository private -
# every tag now returns 401 on Docker Hub and quay.io, so the pod
# died in ImagePullBackOff. rclone is a public, pinned equivalent:
# `delete --min-age` replaces `mc rm --older-than`.
image: rclone/rclone:1.75.2
env: env:
- name: HOME - name: HOME
value: /tmp value: /tmp
- name: RCLONE_CONFIG_S3_TYPE
value: s3
- name: RCLONE_CONFIG_S3_PROVIDER
value: Other
command: command:
- sh - sh
- -c - -c
- | - |
mc alias set s3 "${S3_ENDPOINT}" "${AWS_ACCESS_KEY_ID}" "${AWS_SECRET_ACCESS_KEY}" set -e
export RCLONE_CONFIG_S3_ENDPOINT="${S3_ENDPOINT}"
export RCLONE_CONFIG_S3_ACCESS_KEY_ID="${AWS_ACCESS_KEY_ID}"
export RCLONE_CONFIG_S3_SECRET_ACCESS_KEY="${AWS_SECRET_ACCESS_KEY}"
TIMESTAMP=$(date +%Y%m%d-%H%M%S) TIMESTAMP=$(date +%Y%m%d-%H%M%S)
KEY="gitea-dump-${TIMESTAMP}.zip" KEY="gitea-dump-${TIMESTAMP}.zip"
echo "Uploading ${KEY}..." echo "Uploading ${KEY}..."
mc cp /backup/gitea-dump.zip "s3/${S3_BUCKET}/${KEY}" && \ rclone copyto /backup/gitea-dump.zip "s3:${S3_BUCKET}/${KEY}"
echo "Upload complete." echo "Upload complete."
# Prune backups older than 7 days # Prune backups older than 7 days
echo "Pruning backups older than 7 days..." echo "Pruning backups older than 7 days..."
mc rm --older-than 7d --force "s3/${S3_BUCKET}/" 2>&1 || true rclone delete --min-age 7d "s3:${S3_BUCKET}/" || true
echo "Pruning complete." echo "Pruning complete."
envFrom: envFrom:
- secretRef: - secretRef:
+1 -1
View File
@@ -17,7 +17,7 @@ spec:
sources: sources:
- repoURL: https://prometheus-community.github.io/helm-charts - repoURL: https://prometheus-community.github.io/helm-charts
chart: prometheus chart: prometheus
targetRevision: "29.36.1" targetRevision: "29.35.0"
helm: helm:
releaseName: prometheus releaseName: prometheus
valueFiles: valueFiles:
@@ -24,7 +24,7 @@ spec:
sources: sources:
- repoURL: https://traefik.github.io/charts - repoURL: https://traefik.github.io/charts
chart: traefik chart: traefik
targetRevision: "41.7.1" targetRevision: "41.6.1"
helm: helm:
releaseName: traefik releaseName: traefik
valueFiles: valueFiles:
+6
View File
@@ -50,6 +50,12 @@
"matchDepNames": ["/forteapps\\.net/"], "matchDepNames": ["/forteapps\\.net/"],
"enabled": false "enabled": false
}, },
{
"description": "The gitea-dump image is not an independent dependency - it must stay on the exact version the Gitea chart deploys, or `gitea dump` fails against an older schema. Bump it by hand together with infra/base/gitea.",
"matchFileNames": ["cluster-resources/gitea-backup-cronjob.yaml"],
"matchPackageNames": ["gitea/gitea"],
"enabled": false
},
{ {
"description": "Platform chart majors usually carry values-schema or CRD breaks - flag them for a careful read.", "description": "Platform chart majors usually carry values-schema or CRD breaks - flag them for a careful read.",
"matchFileNames": ["infra/**"], "matchFileNames": ["infra/**"],