normalization of backups jobs names
All checks were successful
/ continuous-deploy (push) Successful in 18s
All checks were successful
/ continuous-deploy (push) Successful in 18s
This commit is contained in:
@@ -12,11 +12,11 @@ spec:
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: offsite-backup
|
||||
app: backup-borg-offsite
|
||||
spec:
|
||||
restartPolicy: Never
|
||||
initContainers:
|
||||
- name: postgres-export
|
||||
- name: postgres
|
||||
resources:
|
||||
limits:
|
||||
memory: "512Mi"
|
||||
@@ -46,7 +46,7 @@ spec:
|
||||
|
||||
|
||||
containers:
|
||||
- name: borg-client
|
||||
- name: borg-backup
|
||||
image: git.limbosolutions.com/kb/borg-backup:latest
|
||||
imagePullPolicy: Always
|
||||
resources:
|
||||
@@ -11,11 +11,11 @@ spec:
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: pbs-backup
|
||||
app: backup-pbs
|
||||
spec:
|
||||
restartPolicy: Never
|
||||
initContainers:
|
||||
- name: postgres-export
|
||||
- name: postgres
|
||||
image: postgres:latest
|
||||
resources:
|
||||
limits:
|
||||
@@ -49,7 +49,7 @@ spec:
|
||||
readOnly: true
|
||||
|
||||
containers:
|
||||
- name: gitea-pbs-client
|
||||
- name: pbs-client
|
||||
image: git.limbosolutions.com/kb/pbs-client
|
||||
imagePullPolicy: Always
|
||||
resources:
|
||||
@@ -1,8 +1,8 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- cronjobs/borg-offsite-cronjob.yaml
|
||||
- cronjobs/pbs-cronjob.yaml
|
||||
- cronjobs/backup-borg-offsite.yaml
|
||||
- cronjobs/backup-pbs.yaml
|
||||
|
||||
secretGenerator:
|
||||
- name: gitea-backup
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#/bin/bash
|
||||
kubectl kustomize deploy/backups | kubectl apply -f -
|
||||
|
||||
# load environment variables from file
|
||||
|
||||
if [ -f "deploy/app/.env.d/.env" ]; then
|
||||
# Export all variables from the file
|
||||
@@ -10,6 +11,7 @@ if [ -f "deploy/app/.env.d/.env" ]; then
|
||||
fi
|
||||
|
||||
if [ -n "${APP_HELM_VALUE_GITEA_ADMIN_USERNAME:-}" ]; then
|
||||
|
||||
echo "Executing helm deploy."
|
||||
|
||||
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.service.oauth2.JWT_SECRET=${APP_HELM_VALUE_GITEA_CONFIG_SERVICE_OAUTH2_JWT_SECRET} \
|
||||
--namespace=git-limbosolutions-com
|
||||
|
||||
echo "executing deploy of backups jobs."
|
||||
kubectl kustomize deploy/backups | kubectl apply -f -
|
||||
fi
|
||||
Reference in New Issue
Block a user