introduce first prosody secret
This commit is contained in:
parent
c3ebaa0f2f
commit
a4a8c3b319
3 changed files with 18 additions and 3 deletions
src/main
|
@ -33,7 +33,7 @@
|
||||||
#(not (nil? %))
|
#(not (nil? %))
|
||||||
(cm/concat-vec
|
(cm/concat-vec
|
||||||
(ns/generate resolved-config)
|
(ns/generate resolved-config)
|
||||||
(jitsi/prosody resolved-config)
|
(jitsi/prosody-config resolved-config)
|
||||||
;; [(jitsi/generate-jvb-service config)
|
;; [(jitsi/generate-jvb-service config)
|
||||||
;; (jitsi/generate-web-service config)
|
;; (jitsi/generate-web-service config)
|
||||||
;; (jitsi/generate-etherpad-service config)
|
;; (jitsi/generate-etherpad-service config)
|
||||||
|
@ -56,7 +56,8 @@
|
||||||
(filter
|
(filter
|
||||||
#(not (nil? %))
|
#(not (nil? %))
|
||||||
(cm/concat-vec
|
(cm/concat-vec
|
||||||
[(jitsi/generate-secret-jitsi config auth)]
|
(jitsi/prosody-secret auth)
|
||||||
|
;[(jitsi/generate-secret-jitsi config auth)]
|
||||||
(when (:contains? config :mon-cfg)
|
(when (:contains? config :mon-cfg)
|
||||||
(mon/generate-auth (:mon-cfg config) (:mon-auth auth)))))))
|
(mon/generate-auth (:mon-cfg config) (:mon-auth auth)))))))
|
||||||
|
|
||||||
|
|
|
@ -138,7 +138,7 @@
|
||||||
(yaml/load-as-edn "jitsi/modelector-deployment.yaml")
|
(yaml/load-as-edn "jitsi/modelector-deployment.yaml")
|
||||||
(cm/replace-all-matching "NAMESPACE" namespace))))
|
(cm/replace-all-matching "NAMESPACE" namespace))))
|
||||||
|
|
||||||
(defn-spec prosody cp/map-or-seq?
|
(defn-spec prosody-config cp/map-or-seq?
|
||||||
[config config?]
|
[config config?]
|
||||||
(let [{:keys [fqdn namespace]} config]
|
(let [{:keys [fqdn namespace]} config]
|
||||||
[(->
|
[(->
|
||||||
|
@ -167,3 +167,8 @@
|
||||||
(yaml/load-as-edn "jitsi/prosody-test-deployment.yaml")
|
(yaml/load-as-edn "jitsi/prosody-test-deployment.yaml")
|
||||||
(cm/replace-all-matching "NAMESPACE" namespace))]))
|
(cm/replace-all-matching "NAMESPACE" namespace))]))
|
||||||
|
|
||||||
|
(defn-spec prosody-secret cp/map-or-seq?
|
||||||
|
[auth auth?]
|
||||||
|
[(->
|
||||||
|
(yaml/load-as-edn "jitsi/prosody-secret.yaml")
|
||||||
|
(cm/replace-all-matching "NAMESPACE" namespace))])
|
||||||
|
|
9
src/main/resources/jitsi/prosody-secret.yaml
Normal file
9
src/main/resources/jitsi/prosody-secret.yaml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
name: prosody
|
||||||
|
namespace: NAMESPACE
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: prosody
|
||||||
|
type: Opaque
|
||||||
|
data:
|
Loading…
Add table
Reference in a new issue