Changed restic-repo to not base64 encoded string

This commit is contained in:
Clemens Geibel 2021-07-16 15:49:43 +02:00
parent aa0214569d
commit b88c627102
3 changed files with 5 additions and 5 deletions

View file

@ -23,7 +23,7 @@
(let [{:keys [restic-repository]} my-conf] (let [{:keys [restic-repository]} my-conf]
(-> (->
(yaml/from-string (yaml/load-resource "backup/config.yaml")) (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 [] (defn generate-cron []
(yaml/from-string (yaml/load-resource "backup/cron.yaml"))) (yaml/from-string (yaml/load-resource "backup/cron.yaml")))

View file

@ -5,5 +5,5 @@ metadata:
labels: labels:
app.kubernetes.io/name: backup app.kubernetes.io/name: backup
app.kubernetes.io/part-of: jira app.kubernetes.io/part-of: jira
data: stringData:
restic-repository: restic-repository restic-repository: restic-repository

View file

@ -20,9 +20,9 @@
:metadata {:name "backup-config" :metadata {:name "backup-config"
:labels {:app.kubernetes.io/name "backup" :labels {:app.kubernetes.io/name "backup"
:app.kubernetes.io/part-of "jira"}} :app.kubernetes.io/part-of "jira"}}
:data :stringData
{:restic-repository "cmVzdGljLXJlcG9zaXRvcnk="}} {:restic-repository "s3:restic-repository"}}
(cut/generate-config {:restic-repository "restic-repository"})))) (cut/generate-config {:restic-repository "s3:restic-repository"}))))
(deftest should-generate-cron (deftest should-generate-cron
(is (= {:apiVersion "batch/v1beta1" (is (= {:apiVersion "batch/v1beta1"