mob2
This commit is contained in:
parent
ccdbf7780a
commit
f1cdd85b0e
1 changed files with 7 additions and 2 deletions
|
@ -20,8 +20,13 @@
|
||||||
(defn generate-deployment []
|
(defn generate-deployment []
|
||||||
(yaml/from-string (yaml/load-resource "deployment.yaml")))
|
(yaml/from-string (yaml/load-resource "deployment.yaml")))
|
||||||
|
|
||||||
(defn generate-ingress [fqdn string?]
|
(defn generate-ingress [config]
|
||||||
(yaml/from-string (yaml/load-resource "ingress.yaml")))
|
(let [{:keys [fqdn issuer]
|
||||||
|
:or {issuer :staging}} config
|
||||||
|
letsencrypt-issuer (str "letsencrypt-" (name issuer) "-issuer")]
|
||||||
|
(->
|
||||||
|
(yaml/from-string (yaml/load-resource "ingress.yaml"))
|
||||||
|
(assoc-in [:metadata :annotations :cert-manager.io/cluster-issuer] letsencrypt-issuer))))
|
||||||
|
|
||||||
(defn-spec generate any?
|
(defn-spec generate any?
|
||||||
[my-config string?
|
[my-config string?
|
||||||
|
|
Loading…
Reference in a new issue