|
|
@ -14,19 +14,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
(def config-defaults {:issuer "staging"})
|
|
|
|
(def config-defaults {:issuer "staging"})
|
|
|
|
|
|
|
|
|
|
|
|
(s/def ::mon-cfg mon/config?)
|
|
|
|
(s/def ::config (s/keys :req-un [::kc/fqdn]
|
|
|
|
(s/def ::mon-auth mon/auth?)
|
|
|
|
:opt-un [::kc/issuer
|
|
|
|
|
|
|
|
::mon/config]))
|
|
|
|
(def config? (s/keys :req-un [::kc/fqdn]
|
|
|
|
|
|
|
|
:opt-un [::kc/issuer
|
|
|
|
|
|
|
|
::mon-cfg]))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(def auth? (s/keys :req-un [::kc/keycloak-admin-user ::kc/keycloak-admin-password
|
|
|
|
(def auth? (s/keys :req-un [::kc/keycloak-admin-user ::kc/keycloak-admin-password
|
|
|
|
::postgres/postgres-db-user ::postgres/postgres-db-password]
|
|
|
|
::postgres/postgres-db-user ::postgres/postgres-db-password]
|
|
|
|
:opt-un [::mon-auth]))
|
|
|
|
:opt-un [::mon/auth]))
|
|
|
|
|
|
|
|
|
|
|
|
(defn-spec k8s-objects cp/map-or-seq?
|
|
|
|
(defn-spec k8s-objects cp/map-or-seq?
|
|
|
|
[config config?
|
|
|
|
[config ::config
|
|
|
|
auth auth?]
|
|
|
|
auth auth?]
|
|
|
|
(map yaml/to-string
|
|
|
|
(map yaml/to-string
|
|
|
|
(filter
|
|
|
|
(filter
|
|
|
|