chg staging type to string
This commit is contained in:
parent
a8dc496f03
commit
98b53c6509
3 changed files with 4 additions and 4 deletions
|
@ -6,7 +6,7 @@
|
|||
[dda.c4k-common.postgres :as postgres]
|
||||
[dda.c4k-gitea.gitea :as gitea]))
|
||||
|
||||
(def config-defaults {:issuer :staging})
|
||||
(def config-defaults {:issuer "staging"})
|
||||
|
||||
(def config? (s/keys :req-un [::gitea/fqdn]
|
||||
:opt-un [::gitea/issuer]))
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
|
||||
(defn generate-ingress [config]
|
||||
(let [{:keys [fqdn issuer]
|
||||
:or {issuer :staging}} config
|
||||
:or {issuer "staging"}} config
|
||||
letsencrypt-issuer (name issuer)]
|
||||
(->
|
||||
(yaml/load-as-edn "gitea/ingress.yaml")
|
||||
|
|
|
@ -46,7 +46,7 @@
|
|||
:persistentVolumeClaim {:claimName "gitea-root-pvc"}}
|
||||
{:name "gitea-data-volume",
|
||||
:persistentVolumeClaim {:claimName "gitea-data-pvc"}}]}}}}
|
||||
(cut/generate-deployment {:fqdn "test.com" :issuer :staging :postgres-db-user "pg-user" :postgres-db-password "pg-pw"}))))
|
||||
(cut/generate-deployment {:fqdn "test.com" :issuer "staging" :postgres-db-user "pg-user" :postgres-db-password "pg-pw"}))))
|
||||
|
||||
|
||||
(deftest should-generate-ingress
|
||||
|
@ -68,4 +68,4 @@
|
|||
:path "/",
|
||||
:backend
|
||||
{:service {:name "gitea-service", :port {:number 3000}}}}]}}]}}
|
||||
(cut/generate-ingress {:fqdn "test.com" :issuer :staging}))))
|
||||
(cut/generate-ingress {:fqdn "test.com" :issuer "staging"}))))
|
||||
|
|
Loading…
Reference in a new issue