This commit is contained in:
ansgarz 2022-03-18 14:32:56 +01:00
parent 7006250375
commit 2a0efa37d0

View file

@ -74,26 +74,8 @@
: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 {}))) (cut/generate-pvc {:pv-storage-size-gb 50 :pvc-storage-class-name "local-path"}))))
(is (= {:apiVersion "v1"
:kind "PersistentVolumeClaim"
:metadata {:name "cloud-pvc"
:labels {:app.kubernetes.io/application "cloud"}}
:spec {:storageClassName "manual"
:accessModes ["ReadWriteOnce"]
:resources {:requests {:storage "50Gi"}}
:selector {:matchLabels {:app.kubernetes.io/application "cloud"}}}}
(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"
:kind "Deployment" :kind "Deployment"