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
|
(map yaml/to-string
|
||||||
[(jitsi/generate-ingress config)
|
[(jitsi/generate-ingress config)
|
||||||
(jitsi/generate-secret config)
|
(jitsi/generate-secret config)
|
||||||
(jitsi/generate-unchanged-files)]))
|
(jitsi/generate-jvb-service)
|
||||||
|
(jitsi/generate-web-service)
|
||||||
|
(jitsi/generate-deployment)]))
|
||||||
|
|
||||||
(defn-spec generate any?
|
(defn-spec generate any?
|
||||||
[my-config config?
|
[my-config config?
|
||||||
|
|
|
@ -45,8 +45,11 @@
|
||||||
(cm/replace-key-value :JICOFO_AUTH_PASSWORD (b64/encode jicofo-auth-password))
|
(cm/replace-key-value :JICOFO_AUTH_PASSWORD (b64/encode jicofo-auth-password))
|
||||||
(cm/replace-key-value :JICOFO_COMPONENT_SECRET (b64/encode jicofo-component-secret)))))
|
(cm/replace-key-value :JICOFO_COMPONENT_SECRET (b64/encode jicofo-component-secret)))))
|
||||||
|
|
||||||
(defn generate-unchanged-files []
|
(defn generate-jvb-service []
|
||||||
(map (comp yaml/from-string yaml/load-resource)
|
(yaml/from-string (yaml/load-resource "jitsi/jvb-service.yaml")))
|
||||||
["jitsi/jvb-service.yaml"
|
|
||||||
"jitsi/web-service.yaml"
|
(defn generate-web-service []
|
||||||
"jitsi/deployment.yaml"]))
|
(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