fixed lein tests
This commit is contained in:
parent
8116a34609
commit
0f5f8aed35
2 changed files with 10 additions and 2 deletions
|
@ -25,7 +25,7 @@
|
||||||
(cut/generate-config {:restic-repository "s3: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/v1"
|
||||||
:kind "CronJob"
|
:kind "CronJob"
|
||||||
:metadata {:name "cloud-backup", :labels {:app.kubernetes.part-of "cloud"}}
|
:metadata {:name "cloud-backup", :labels {:app.kubernetes.part-of "cloud"}}
|
||||||
:spec
|
:spec
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
:nextcloud-admin-password "cloudpassword"}))))
|
:nextcloud-admin-password "cloudpassword"}))))
|
||||||
|
|
||||||
(deftest should-generate-certificate
|
(deftest should-generate-certificate
|
||||||
(is (= {:apiVersion "cert-manager.io/v1alpha2"
|
(is (= {:apiVersion "cert-manager.io/v1"
|
||||||
:kind "Certificate"
|
:kind "Certificate"
|
||||||
:metadata {:name "cloud-cert", :namespace "default"}
|
:metadata {:name "cloud-cert", :namespace "default"}
|
||||||
:spec
|
:spec
|
||||||
|
@ -81,6 +81,14 @@
|
||||||
:name "cloud-app"
|
:name "cloud-app"
|
||||||
:imagePullPolicy "IfNotPresent"
|
:imagePullPolicy "IfNotPresent"
|
||||||
:ports [{:containerPort 80}]
|
:ports [{:containerPort 80}]
|
||||||
|
:livenessProbe
|
||||||
|
{:exec
|
||||||
|
{:command
|
||||||
|
["/bin/sh"
|
||||||
|
"-c"
|
||||||
|
"PGPASSWORD=$POSTGRES_PASSWORD psql -h postgresql-service -U $POSTGRES_USER $POSTGRES_DB"]}
|
||||||
|
:initialDelaySeconds 1
|
||||||
|
:periodSeconds 5}
|
||||||
:env
|
:env
|
||||||
[{:name "NEXTCLOUD_ADMIN_USER", :valueFrom {:secretKeyRef {:name "cloud-secret", :key "nextcloud-admin-user"}}}
|
[{:name "NEXTCLOUD_ADMIN_USER", :valueFrom {:secretKeyRef {:name "cloud-secret", :key "nextcloud-admin-user"}}}
|
||||||
{:name "NEXTCLOUD_ADMIN_PASSWORD"
|
{:name "NEXTCLOUD_ADMIN_PASSWORD"
|
||||||
|
|
Loading…
Reference in a new issue