fixed some test errors
This commit is contained in:
parent
5908a1b8d8
commit
70e3b967f1
2 changed files with 5 additions and 5 deletions
|
@ -10,7 +10,7 @@
|
||||||
:kind "Secret"
|
:kind "Secret"
|
||||||
:metadata {:name "backup-secret"}
|
:metadata {:name "backup-secret"}
|
||||||
:type "Opaque"
|
:type "Opaque"
|
||||||
:data
|
:stringData
|
||||||
{:aws-access-key-id "YXdzLWlk", :aws-secret-access-key "YXdzLXNlY3JldA==", :restic-password "cmVzdGljLXB3"}}
|
{:aws-access-key-id "YXdzLWlk", :aws-secret-access-key "YXdzLXNlY3JldA==", :restic-password "cmVzdGljLXB3"}}
|
||||||
(cut/generate-secret {:aws-access-key-id "aws-id" :aws-secret-access-key "aws-secret" :restic-password "restic-pw"}))))
|
(cut/generate-secret {:aws-access-key-id "aws-id" :aws-secret-access-key "aws-secret" :restic-password "restic-pw"}))))
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@
|
||||||
(deftest should-generate-cron
|
(deftest should-generate-cron
|
||||||
(is (= {:apiVersion "batch/v1beta1"
|
(is (= {:apiVersion "batch/v1beta1"
|
||||||
:kind "CronJob"
|
:kind "CronJob"
|
||||||
:metadata {:name "nextcloud-backup"
|
:metadata {:name "cloud-backup"
|
||||||
:labels {:app.kubernetes.part-of "cloud"}}
|
:labels {:app.kubernetes.part-of "cloud"}}
|
||||||
:spec {:schedule "10 23 * * *"
|
:spec {:schedule "10 23 * * *"
|
||||||
:successfulJobsHistoryLimit 1
|
:successfulJobsHistoryLimit 1
|
||||||
|
@ -85,7 +85,7 @@
|
||||||
:volumes
|
:volumes
|
||||||
[{:name "nextcloud-data-volume"
|
[{:name "nextcloud-data-volume"
|
||||||
:persistentVolumeClaim
|
:persistentVolumeClaim
|
||||||
{:claimName "nextcloud-pvc"}}
|
{:claimName "cloud-pvc"}}
|
||||||
{:name "backup-secret-volume"
|
{:name "backup-secret-volume"
|
||||||
:secret
|
:secret
|
||||||
{:secretName "backup-secret"}}]
|
{:secretName "backup-secret"}}]
|
||||||
|
|
|
@ -32,14 +32,14 @@
|
||||||
:nginx.ingress.kubernetes.io/proxy-read-timeout "300"}
|
:nginx.ingress.kubernetes.io/proxy-read-timeout "300"}
|
||||||
:namespace "default"}
|
:namespace "default"}
|
||||||
:spec
|
:spec
|
||||||
{:tls [{:hosts ["xx"], :secretName "nextcloud-secret"}]
|
{:tls [{:hosts ["xx"], :secretName "cloud-secret"}]
|
||||||
:rules
|
:rules
|
||||||
[{:host "xx"
|
[{:host "xx"
|
||||||
:http
|
:http
|
||||||
{:paths
|
{:paths
|
||||||
[{:path "/"
|
[{:path "/"
|
||||||
:backend
|
:backend
|
||||||
{:serviceName "nextcloud-service", :servicePort 80}}]}}]}}
|
{:serviceName "cloud-service", :servicePort 80}}]}}]}}
|
||||||
(cut/generate-ingress {:fqdn "xx"}))))
|
(cut/generate-ingress {:fqdn "xx"}))))
|
||||||
|
|
||||||
(deftest should-generate-persistent-volume
|
(deftest should-generate-persistent-volume
|
||||||
|
|
Loading…
Reference in a new issue