add restic-new password
This commit is contained in:
parent
b22ace7c6a
commit
051f152232
3 changed files with 7 additions and 2 deletions
src/main
|
@ -10,6 +10,7 @@
|
|||
(s/def ::aws-access-key-id cp/bash-env-string?)
|
||||
(s/def ::aws-secret-access-key cp/bash-env-string?)
|
||||
(s/def ::restic-password cp/bash-env-string?)
|
||||
(s/def ::restic-new-password cp/bash-env-string?)
|
||||
(s/def ::restic-repository cp/bash-env-string?)
|
||||
|
||||
#?(:cljs
|
||||
|
@ -27,7 +28,8 @@
|
|||
|
||||
(defn generate-backup-restore-deployment [my-conf]
|
||||
(let [backup-restore-yaml (yaml/load-as-edn "backup/backup-restore-deployment.yaml")]
|
||||
(if (and (contains? my-conf :local-integration-test) (= true (:local-integration-test my-conf)))
|
||||
(if (and (contains? my-conf :local-integration-test)
|
||||
(= true (:local-integration-test my-conf)))
|
||||
(cm/replace-named-value backup-restore-yaml "CERTIFICATE_FILE" "/var/run/secrets/localstack-secrets/ca.crt")
|
||||
backup-restore-yaml)))
|
||||
|
||||
|
|
|
@ -57,6 +57,8 @@ spec:
|
|||
key: restic-repository
|
||||
- name: RESTIC_PASSWORD_FILE
|
||||
value: /var/run/secrets/backup-secrets/restic-password
|
||||
- name: RESTIC_NEW_PASSWORD_FILE
|
||||
value: /var/run/secrets/backup-secrets/restic-new-password
|
||||
- name: CERTIFICATE_FILE
|
||||
value: ""
|
||||
volumeMounts:
|
||||
|
|
|
@ -7,4 +7,5 @@ type: Opaque
|
|||
data:
|
||||
aws-access-key-id: "aws-access-key-id"
|
||||
aws-secret-access-key: "aws-secret-access-key"
|
||||
restic-password: "restic-password"
|
||||
restic-password: "restic-password"
|
||||
restic-new-password: "restic-new-password"
|
Loading…
Add table
Reference in a new issue