diff --git a/src/main/cljc/dda/k8s_keycloak/core.cljc b/src/main/cljc/dda/k8s_keycloak/core.cljc index 2cc7b30..c5ac7f6 100644 --- a/src/main/cljc/dda/k8s_keycloak/core.cljc +++ b/src/main/cljc/dda/k8s_keycloak/core.cljc @@ -21,7 +21,7 @@ (defn generate-config [my-config my-auth] (-> - (yaml/from-string (yaml/load-resource "config.yaml")) + (yaml/from-string (yaml/load-resource "keycloak/config.yaml")) (assoc-in [:data :config.edn] (str my-config)) (assoc-in [:data :credentials.edn] (str my-auth)))) diff --git a/src/main/resources/keycloak/config.yaml b/src/main/resources/keycloak/config.yaml new file mode 100755 index 0000000..1ba709e --- /dev/null +++ b/src/main/resources/keycloak/config.yaml @@ -0,0 +1,11 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: keycloak + labels: + app.kubernetes.io/name: k8s-keycloak +data: + config.edn: | + some-config-value + credentials.edn: | + some-credentials-value diff --git a/src/test/cljc/dda/k8s_keycloak/core_test.cljc b/src/test/cljc/dda/k8s_keycloak/core_test.cljc index 18bb71c..9c49b6d 100644 --- a/src/test/cljc/dda/k8s_keycloak/core_test.cljc +++ b/src/test/cljc/dda/k8s_keycloak/core_test.cljc @@ -2,8 +2,7 @@ (:require #?(:clj [clojure.test :refer [deftest is are testing run-tests]] :cljs [cljs.test :refer-macros [deftest is are testing run-tests]]) - [dda.k8s-keycloak.core :as cut] - [dda.k8s-keycloak.yaml :as yaml])) + [dda.k8s-keycloak.core :as cut])) (deftest should-generate-yaml (is (= {:apiVersion "v1", :kind "ConfigMap"