shortened unchanged file creation

This commit is contained in:
bom 2022-02-10 16:55:39 +01:00
parent 80116453c0
commit 0a18f47dc1
2 changed files with 6 additions and 23 deletions

View file

@ -18,9 +18,7 @@
(map yaml/to-string
[(jitsi/generate-ingress config)
(jitsi/generate-secret config)
(jitsi/generate-jvb-service)
(jitsi/generate-deployment)
(jitsi/generate-web-service)]))
(jitsi/generate-unchanged-files)]))
(defn-spec generate any?
[my-config config?

View file

@ -45,23 +45,8 @@
(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-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")))
(defn generate-pod-security-policy []
(yaml/from-string (yaml/load-resource "jitsi/pod-security-policy.yaml")))
(defn generate-role-binding []
(yaml/from-string (yaml/load-resource "jitsi/role-binding.yaml")))
(defn generate-role []
(yaml/from-string (yaml/load-resource "jitsi/role.yaml")))
(defn generate-service-account []
(yaml/from-string (yaml/load-resource "jitsi/service-account.yaml")))
(defn generate-unchanged-files []
(map (comp yaml/from-string yaml/load-resource)
["jitsi/jvb-service.yaml"
"jitsi/web-service.yaml"
"jitsi/deployment.yaml"]))