Changed restic-repo to not base64 encoded string
This commit is contained in:
parent
aa0214569d
commit
b88c627102
3 changed files with 5 additions and 5 deletions
|
@ -23,7 +23,7 @@
|
|||
(let [{:keys [restic-repository]} my-conf]
|
||||
(->
|
||||
(yaml/from-string (yaml/load-resource "backup/config.yaml"))
|
||||
(cm/replace-key-value :restic-repository (b64/encode restic-repository)))))
|
||||
(cm/replace-key-value :restic-repository restic-repository))))
|
||||
|
||||
(defn generate-cron []
|
||||
(yaml/from-string (yaml/load-resource "backup/cron.yaml")))
|
||||
|
|
|
@ -5,5 +5,5 @@ metadata:
|
|||
labels:
|
||||
app.kubernetes.io/name: backup
|
||||
app.kubernetes.io/part-of: jira
|
||||
data:
|
||||
stringData:
|
||||
restic-repository: restic-repository
|
|
@ -20,9 +20,9 @@
|
|||
:metadata {:name "backup-config"
|
||||
:labels {:app.kubernetes.io/name "backup"
|
||||
:app.kubernetes.io/part-of "jira"}}
|
||||
:data
|
||||
{:restic-repository "cmVzdGljLXJlcG9zaXRvcnk="}}
|
||||
(cut/generate-config {:restic-repository "restic-repository"}))))
|
||||
:stringData
|
||||
{:restic-repository "s3:restic-repository"}}
|
||||
(cut/generate-config {:restic-repository "s3:restic-repository"}))))
|
||||
|
||||
(deftest should-generate-cron
|
||||
(is (= {:apiVersion "batch/v1beta1"
|
||||
|
|
Reference in a new issue