updated staging value to string

This commit is contained in:
see 2022-06-10 15:17:41 +02:00
parent a8dc496f03
commit 618ada9b55
4 changed files with 5 additions and 5 deletions

View file

@ -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" }
```

View file

@ -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]))

View file

@ -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")

View file

@ -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"}))))