This commit is contained in:
erik 2023-01-31 12:01:46 +01:00
parent 2b28a02e17
commit ab51472eba
2 changed files with 6 additions and 3 deletions

4
.gitignore vendored
View file

@ -26,4 +26,6 @@ valid-config.edn
my-auth.edn my-auth.edn
.clj-kondo/ .clj-kondo/
.lsp/ .lsp/
build-and-move-frontend.sh

View file

@ -18,14 +18,15 @@
(def config? (s/keys :req-un [::fqdn] (def config? (s/keys :req-un [::fqdn]
:opt-un [::issuer])) :opt-un [::issuer]))
(def auth? (s/keys :req-un [::keycloak-admin-user ::keycloak-admin-password])) (def auth? (s/keys :req-un [::keycloak-admin-user
::keycloak-admin-password]))
#?(:cljs #?(:cljs
(defmethod yaml/load-resource :keycloak [resource-name] (defmethod yaml/load-resource :keycloak [resource-name]
(case resource-name (case resource-name
"keycloak/deployment.yaml" (rc/inline "keycloak/deployment.yaml") "keycloak/deployment.yaml" (rc/inline "keycloak/deployment.yaml")
"keycloak/secret.yaml" (rc/inline "keycloak/secret.yaml") "keycloak/secret.yaml" (rc/inline "keycloak/secret.yaml")
"keycloak/service.yaml" (rc/inline "keycloak/service.yaml") "keycloak/service.yaml" (rc/inline "keycloak/service.yaml")
(throw (js/Error. "Undefined Resource!"))))) (throw (js/Error. "Undefined Resource!")))))
(defn-spec generate-ingress cp/map-or-seq? (defn-spec generate-ingress cp/map-or-seq?