mob
This commit is contained in:
parent
aca8c7a397
commit
4538cc5a24
1 changed files with 20 additions and 2 deletions
|
@ -66,6 +66,15 @@
|
||||||
(cut/generate-persistent-volume {:nextcloud-data-volume-path "xx"}))))
|
(cut/generate-persistent-volume {:nextcloud-data-volume-path "xx"}))))
|
||||||
|
|
||||||
(deftest should-generate-pvc
|
(deftest should-generate-pvc
|
||||||
|
(is (= {:apiVersion "v1"
|
||||||
|
:kind "PersistentVolumeClaim"
|
||||||
|
:metadata {:name "cloud-pvc"
|
||||||
|
:labels {:app.kubernetes.io/application "cloud"}}
|
||||||
|
:spec {:storageClassName "local-path"
|
||||||
|
:accessModes ["ReadWriteOnce"]
|
||||||
|
:resources {:requests {:storage "50Gi"}}
|
||||||
|
:selector {:matchLabels {:app.kubernetes.io/application "cloud"}}}}
|
||||||
|
(cut/generate-pvc {})))
|
||||||
(is (= {:apiVersion "v1"
|
(is (= {:apiVersion "v1"
|
||||||
:kind "PersistentVolumeClaim"
|
:kind "PersistentVolumeClaim"
|
||||||
:metadata {:name "cloud-pvc"
|
:metadata {:name "cloud-pvc"
|
||||||
|
@ -74,7 +83,16 @@
|
||||||
:accessModes ["ReadWriteOnce"]
|
:accessModes ["ReadWriteOnce"]
|
||||||
:resources {:requests {:storage "50Gi"}}
|
:resources {:requests {:storage "50Gi"}}
|
||||||
:selector {:matchLabels {:app.kubernetes.io/application "cloud"}}}}
|
:selector {:matchLabels {:app.kubernetes.io/application "cloud"}}}}
|
||||||
(cut/generate-pvc {:nextcloud-data-volume-path "xx"}))))
|
(cut/generate-pvc {:nextcloud-data-volume-path "xx"})))
|
||||||
|
(is (= {:apiVersion "v1"
|
||||||
|
:kind "PersistentVolumeClaim"
|
||||||
|
:metadata {:name "cloud-pvc"
|
||||||
|
:labels {:app.kubernetes.io/application "cloud"}}
|
||||||
|
:spec {:storageClassName "manual"
|
||||||
|
:accessModes ["ReadWriteOnce"]
|
||||||
|
:resources {:requests {:storage "500Gi"}}
|
||||||
|
:selector {:matchLabels {:app.kubernetes.io/application "cloud"}}}}
|
||||||
|
(cut/generate-pvc {:pv-storage-size-gb 500}))))
|
||||||
|
|
||||||
(deftest should-generate-deployment
|
(deftest should-generate-deployment
|
||||||
(is (= {:apiVersion "apps/v1"
|
(is (= {:apiVersion "apps/v1"
|
||||||
|
|
Loading…
Reference in a new issue