|
|
|
@ -23,7 +23,7 @@
|
|
|
|
|
(deftest should-generate-secret
|
|
|
|
|
(is (= {:apiVersion "v1"
|
|
|
|
|
:kind "Secret"
|
|
|
|
|
:metadata {:name "cloud-secret"}
|
|
|
|
|
:metadata {:name "cloud-secret", :namespace "nextcloud"}
|
|
|
|
|
:type "Opaque"
|
|
|
|
|
:data
|
|
|
|
|
{:nextcloud-admin-user "Y2xvdWRhZG1pbg=="
|
|
|
|
@ -77,7 +77,8 @@
|
|
|
|
|
(is (= {:apiVersion "v1"
|
|
|
|
|
:kind "PersistentVolumeClaim"
|
|
|
|
|
:metadata {:name "cloud-pvc"
|
|
|
|
|
:labels {:app.kubernetes.io/application "cloud"}}
|
|
|
|
|
:namespace "nextcloud"
|
|
|
|
|
:labels {:app.kubernetes.io/application "cloud"}}
|
|
|
|
|
:spec {:storageClassName "local-path"
|
|
|
|
|
:accessModes ["ReadWriteOnce"]
|
|
|
|
|
:resources {:requests {:storage "50Gi"}}}}
|
|
|
|
@ -86,7 +87,7 @@
|
|
|
|
|
(deftest should-generate-deployment
|
|
|
|
|
(is (= {:apiVersion "apps/v1"
|
|
|
|
|
:kind "Deployment"
|
|
|
|
|
:metadata {:name "cloud-deployment"}
|
|
|
|
|
:metadata {:name "cloud-deployment", :namespace "nextcloud"}
|
|
|
|
|
:spec
|
|
|
|
|
{:selector {:matchLabels #:app.kubernetes.io{:name "cloud-pod", :application "cloud"}}
|
|
|
|
|
:strategy {:type "Recreate"}
|
|
|
|
|