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

View file

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