updated staging value to string
This commit is contained in:
parent
a8dc496f03
commit
618ada9b55
4 changed files with 5 additions and 5 deletions
|
@ -69,5 +69,5 @@ with the following config.edn:
|
|||
```
|
||||
{:fqdn "the-fqdn-from aws_route53_record.v4_neu"
|
||||
:postgres-data-volume-path "/var/postgres" ;; Volume was configured at dda-k8s-crate, results in a PersistentVolume definition.
|
||||
:issuer :prod }
|
||||
:issuer "prod" }
|
||||
```
|
||||
|
|
|
@ -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