function rewrite

This commit is contained in:
see 2022-03-24 16:03:32 +01:00
parent 5522528ddd
commit c90db1d023
2 changed files with 11 additions and 6 deletions

View file

@ -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?

View file

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