Compare commits
2 commits
b7a284a2dc
...
d2ca5b5442
Author | SHA1 | Date | |
---|---|---|---|
d2ca5b5442 | |||
2fba9ce1de |
2 changed files with 3 additions and 4 deletions
|
@ -49,8 +49,7 @@
|
|||
|
||||
(defn-spec generate-service cp/map-or-seq?
|
||||
[config config?]
|
||||
(let [{:keys [namespace]} config
|
||||
{:keys [keycloak-admin-user keycloak-admin-password]} auth]
|
||||
(let [{:keys [namespace]} config]
|
||||
(->
|
||||
(yaml/load-as-edn "keycloak/service.yaml")
|
||||
(cm/replace-all-matching "NAMESPACE" namespace))))
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
:data
|
||||
{:keycloak-user "dXNlcg=="
|
||||
:keycloak-password "cGFzc3dvcmQ="}}
|
||||
(cut/generate-secret {:keycloak-admin-user "user" :keycloak-admin-password "password"}))))
|
||||
(cut/generate-secret {:namespace "keycloak" :fqdn "test.de"} {:keycloak-admin-user "user" :keycloak-admin-password "password"}))))
|
||||
|
||||
(deftest should-generate-deployment
|
||||
(is (= {:apiVersion "apps/v1",
|
||||
|
@ -75,4 +75,4 @@
|
|||
:items
|
||||
[{:key "tls.crt", :path "tls.crt"}
|
||||
{:key "tls.key", :path "tls.key"}]}}]}}}}
|
||||
(cut/generate-deployment {:fqdn "test.de"}))))
|
||||
(cut/generate-deployment {:fqdn "test.de" :namespace "keycloak"}))))
|
||||
|
|
Loading…
Reference in a new issue