function rewrite
This commit is contained in:
parent
5522528ddd
commit
c90db1d023
2 changed files with 11 additions and 6 deletions
|
@ -18,7 +18,9 @@
|
|||
(map yaml/to-string
|
||||
[(jitsi/generate-ingress config)
|
||||
(jitsi/generate-secret config)
|
||||
(jitsi/generate-unchanged-files)]))
|
||||
(jitsi/generate-jvb-service)
|
||||
(jitsi/generate-web-service)
|
||||
(jitsi/generate-deployment)]))
|
||||
|
||||
(defn-spec generate any?
|
||||
[my-config config?
|
||||
|
|
|
@ -45,8 +45,11 @@
|
|||
(cm/replace-key-value :JICOFO_AUTH_PASSWORD (b64/encode jicofo-auth-password))
|
||||
(cm/replace-key-value :JICOFO_COMPONENT_SECRET (b64/encode jicofo-component-secret)))))
|
||||
|
||||
(defn generate-unchanged-files []
|
||||
(map (comp yaml/from-string yaml/load-resource)
|
||||
["jitsi/jvb-service.yaml"
|
||||
"jitsi/web-service.yaml"
|
||||
"jitsi/deployment.yaml"]))
|
||||
(defn generate-jvb-service []
|
||||
(yaml/from-string (yaml/load-resource "jitsi/jvb-service.yaml")))
|
||||
|
||||
(defn generate-web-service []
|
||||
(yaml/from-string (yaml/load-resource "jitsi/web-service.yaml")))
|
||||
|
||||
(defn generate-deployment []
|
||||
(yaml/from-string (yaml/load-resource "jitsi/deployment.yaml")))
|
Loading…
Reference in a new issue