normalization of backups jobs names
All checks were successful
/ continuous-deploy (push) Successful in 18s

This commit is contained in:
Márcio Fernandes
2026-03-20 09:47:44 +00:00
parent 19fae24209
commit 694756815f
4 changed files with 15 additions and 10 deletions

View File

@@ -12,11 +12,11 @@ spec:
template: template:
metadata: metadata:
labels: labels:
app: offsite-backup app: backup-borg-offsite
spec: spec:
restartPolicy: Never restartPolicy: Never
initContainers: initContainers:
- name: postgres-export - name: postgres
resources: resources:
limits: limits:
memory: "512Mi" memory: "512Mi"
@@ -46,7 +46,7 @@ spec:
containers: containers:
- name: borg-client - name: borg-backup
image: git.limbosolutions.com/kb/borg-backup:latest image: git.limbosolutions.com/kb/borg-backup:latest
imagePullPolicy: Always imagePullPolicy: Always
resources: resources:

View File

@@ -11,11 +11,11 @@ spec:
template: template:
metadata: metadata:
labels: labels:
app: pbs-backup app: backup-pbs
spec: spec:
restartPolicy: Never restartPolicy: Never
initContainers: initContainers:
- name: postgres-export - name: postgres
image: postgres:latest image: postgres:latest
resources: resources:
limits: limits:
@@ -49,7 +49,7 @@ spec:
readOnly: true readOnly: true
containers: containers:
- name: gitea-pbs-client - name: pbs-client
image: git.limbosolutions.com/kb/pbs-client image: git.limbosolutions.com/kb/pbs-client
imagePullPolicy: Always imagePullPolicy: Always
resources: resources:

View File

@@ -1,8 +1,8 @@
apiVersion: kustomize.config.k8s.io/v1beta1 apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization kind: Kustomization
resources: resources:
- cronjobs/borg-offsite-cronjob.yaml - cronjobs/backup-borg-offsite.yaml
- cronjobs/pbs-cronjob.yaml - cronjobs/backup-pbs.yaml
secretGenerator: secretGenerator:
- name: gitea-backup - name: gitea-backup

View File

@@ -1,5 +1,6 @@
#/bin/bash #/bin/bash
kubectl kustomize deploy/backups | kubectl apply -f -
# load environment variables from file
if [ -f "deploy/app/.env.d/.env" ]; then if [ -f "deploy/app/.env.d/.env" ]; then
# Export all variables from the file # Export all variables from the file
@@ -10,7 +11,8 @@ if [ -f "deploy/app/.env.d/.env" ]; then
fi fi
if [ -n "${APP_HELM_VALUE_GITEA_ADMIN_USERNAME:-}" ]; then if [ -n "${APP_HELM_VALUE_GITEA_ADMIN_USERNAME:-}" ]; then
echo "Executing helm deploy."
echo "Executing helm deploy."
helm repo add gitea-charts https://dl.gitea.com/charts/ --force-update helm repo add gitea-charts https://dl.gitea.com/charts/ --force-update
@@ -32,4 +34,7 @@ if [ -n "${APP_HELM_VALUE_GITEA_ADMIN_USERNAME:-}" ]; then
--set gitea.config.security.PASSWORD_HASH_ALGO=${APP_HELM_VALUE_GITEA_CONFIG_SECURITY_PASSWORD_HASH_ALGO} \ --set gitea.config.security.PASSWORD_HASH_ALGO=${APP_HELM_VALUE_GITEA_CONFIG_SECURITY_PASSWORD_HASH_ALGO} \
--set gitea.config.service.oauth2.JWT_SECRET=${APP_HELM_VALUE_GITEA_CONFIG_SERVICE_OAUTH2_JWT_SECRET} \ --set gitea.config.service.oauth2.JWT_SECRET=${APP_HELM_VALUE_GITEA_CONFIG_SERVICE_OAUTH2_JWT_SECRET} \
--namespace=git-limbosolutions-com --namespace=git-limbosolutions-com
echo "executing deploy of backups jobs."
kubectl kustomize deploy/backups | kubectl apply -f -
fi fi