kubernetes: normalization secrets names

This commit is contained in:
2025-11-25 04:22:40 +00:00
parent aa3f8f824b
commit 2177535881
4 changed files with 15 additions and 15 deletions

View File

@@ -53,20 +53,20 @@ spec:
- name: BORG_REPO - name: BORG_REPO
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
name: gitea-backup-secret name: gitea-backup
key: BORG_REPO key: BORG_REPO
- name: BORG_PASSPHRASE - name: BORG_PASSPHRASE
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
name: gitea-backup-secret name: gitea-backup
key: BORG_PASSPHRASE key: BORG_PASSPHRASE
- name: OFFSITE_TARGET_FOLDER - name: OFFSITE_TARGET_FOLDER
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
name: gitea-backup-secret name: gitea-backup
key: OFFSITE_TARGET_FOLDER key: OFFSITE_TARGET_FOLDER
@@ -124,12 +124,12 @@ spec:
mountPath: /data/postgresql-export mountPath: /data/postgresql-export
subPath: postgresql-export subPath: postgresql-export
- name: gitea-backup-secret - name: gitea-backup-secrets
mountPath: /root/.ssh/id_rsa mountPath: /root/.ssh/id_rsa
subPath: SSH_ID_RSA subPath: SSH_ID_RSA
readOnly: true readOnly: true
- name: gitea-backup-secret - name: gitea-backup-secrets
mountPath: /app/borg/key mountPath: /app/borg/key
subPath: BORG_KEY subPath: BORG_KEY
@@ -143,9 +143,9 @@ spec:
secret: secret:
secretName: gitea-inline-config secretName: gitea-inline-config
- name: gitea-backup-secret - name: gitea-backup-secrets
secret: secret:
secretName: gitea-backup-secret secretName: gitea-backup
defaultMode: 0600 defaultMode: 0600
- name: backup-var-data - name: backup-var-data

View File

@@ -51,17 +51,17 @@ spec:
- name: PBS_REPOSITORY - name: PBS_REPOSITORY
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
name: gitea-backup-secret name: gitea-backup
key: pbs_repository key: pbs_repository
- name: PBS_PASSWORD - name: PBS_PASSWORD
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
name: gitea-backup-secret name: gitea-backup
key: PBS_PASSWORD key: PBS_PASSWORD
- name: PBS_FINGERPRINT - name: PBS_FINGERPRINT
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
name: gitea-backup-secret name: gitea-backup
key: PBS_FINGERPRINT key: PBS_FINGERPRINT
command: ["bash", "-c"] command: ["bash", "-c"]

View File

@@ -5,7 +5,7 @@ resources:
- cronjobs/backups/backup-pbs-cronjob.yaml - cronjobs/backups/backup-pbs-cronjob.yaml
secretGenerator: secretGenerator:
- name: gitea-backup-secret - name: gitea-backup
namespace: git-limbosolutions-com namespace: git-limbosolutions-com
envs: envs:
- cronjobs/backups/.env.d/secrets - cronjobs/backups/.env.d/secrets

View File

@@ -45,17 +45,17 @@ spec:
volumeMounts: volumeMounts:
- name: gitea-backup-secret - name: gitea-backup-secrets
mountPath: /root/.ssh/id_rsa mountPath: /root/.ssh/id_rsa
subPath: ssh_id_rsa subPath: ssh_id_rsa
readOnly: true readOnly: true
- name: gitea-backup-secret - name: gitea-backup-secrets
mountPath: /app/borg/key mountPath: /app/borg/key
subPath: borg_key subPath: borg_key
volumes: volumes:
- name: gitea-backup-secret - name: gitea-backup-secrets
secret: secret:
secretName: gitea-backup-secret secretName: gitea-backup
defaultMode: 0600 defaultMode: 0600