This commit is contained in:
jem 2021-07-11 14:52:51 +02:00
parent 4f8f0cd6f1
commit 016c7610f9

View file

@ -53,12 +53,8 @@
:hostPath {:path "xx"}}} :hostPath {:path "xx"}}}
(cut/generate-persistent-volume {:jira-data-volume-path "xx"})))) (cut/generate-persistent-volume {:jira-data-volume-path "xx"}))))
(deftest should-generate-pod (deftest should-generate-deployment
(is (= {:kind "Pod" (is (= {:containers
:apiVersion "v1"
:metadata {:name "jira-app", :labels {:app "jira"}}
:spec
{:containers
[{:image "domaindrivenarchitecture/c4k-jira" [{:image "domaindrivenarchitecture/c4k-jira"
:name "jira-app" :name "jira-app"
:imagePullPolicy "IfNotPresent" :imagePullPolicy "IfNotPresent"
@ -80,5 +76,5 @@
[{:name "jira-data-volume" [{:name "jira-data-volume"
:persistentVolumeClaim {:claimName "jira-pvc"}} :persistentVolumeClaim {:claimName "jira-pvc"}}
{:name "postgres-secret-volume" {:name "postgres-secret-volume"
:secret {:secretName "postgres-secret"}}]}} :secret {:secretName "postgres-secret"}}]}
(cut/generate-pod {:fqdn "xx"})))) (get-in (cut/generate-deployment {:fqdn "xx"}) [:spec :template :spec]))))