fix js
This commit is contained in:
parent
46c49a3317
commit
ca770fb93d
6 changed files with 1815 additions and 45 deletions
|
@ -9,7 +9,7 @@
|
|||
"c4k-taiga"
|
||||
core/config?
|
||||
core/auth?
|
||||
core/defaults
|
||||
core/config-defaults
|
||||
core/config-objects
|
||||
core/auth-objects
|
||||
cmd-args))
|
||||
|
|
|
@ -12,16 +12,16 @@
|
|||
[dda.c4k-common.postgres :as postgres]
|
||||
[dda.c4k-common.namespace :as ns]))
|
||||
|
||||
(def defaults {:namespace "taiga"
|
||||
:issuer "staging"
|
||||
:storage-class-name "local-path"
|
||||
:pv-storage-size-gb "5"
|
||||
:storage-media-size "5"
|
||||
:storage-static-size "5"
|
||||
:storage-async-rabbitmq-size "5"
|
||||
:storage-events-rabbitmq-size "5"
|
||||
:public-register-enabled "false"
|
||||
:enable-telemetry "false"})
|
||||
(def config-defaults {:namespace "taiga"
|
||||
:issuer "staging"
|
||||
:storage-class-name "local-path"
|
||||
:pv-storage-size-gb "5"
|
||||
:storage-media-size "5"
|
||||
:storage-static-size "5"
|
||||
:storage-async-rabbitmq-size "5"
|
||||
:storage-events-rabbitmq-size "5"
|
||||
:public-register-enabled "false"
|
||||
:enable-telemetry "false"})
|
||||
|
||||
(def config? (s/merge
|
||||
::backup/config
|
||||
|
@ -54,7 +54,7 @@
|
|||
|
||||
(defn-spec config-objects cp/map-or-seq?
|
||||
[config config?]
|
||||
(let [resolved-config (merge defaults config)]
|
||||
(let [resolved-config (merge config-defaults config)]
|
||||
(cm/concat-vec
|
||||
(map yaml/to-string
|
||||
(filter
|
||||
|
@ -97,7 +97,7 @@
|
|||
(defn-spec auth-objects cp/map-or-seq?
|
||||
[config config?
|
||||
auth auth?]
|
||||
(let [resolved-config (merge defaults config)]
|
||||
(let [resolved-config (merge config-defaults config)]
|
||||
(cm/concat-vec
|
||||
(map yaml/to-string
|
||||
(filter
|
||||
|
|
|
@ -12,35 +12,35 @@
|
|||
(cm/concat-vec
|
||||
(br/generate-group
|
||||
"config"
|
||||
(br/generate-text-area "config" "Your config.edn:" "{:fqdn \"cloud.your.domain\"
|
||||
:issuer \"staging\"
|
||||
:restic-repository \"s3://yourbucket/your-repo\"
|
||||
:mon-cfg {:cluster-name \"cloud\"
|
||||
:cluster-stage \"test\"
|
||||
:cloud-url \"https://prometheus-prod-01-eu-west-0.grafana.net/api/prom/push\"}}"
|
||||
"5"))
|
||||
(br/generate-text-area "config" "Your config.edn:" "{:fqdn \"taiga.your.domain\"
|
||||
:issuer \"staging\"
|
||||
:restic-repository \"s3://yourbucket/your-repo\"
|
||||
:mon-cfg {:cluster-name \"taiga\"
|
||||
:cluster-stage \"test\"
|
||||
:grafana-cloud-url \"https://prometheus-prod-01-eu-west-0.grafana.net/api/prom/push\"}}"
|
||||
"6"))
|
||||
(br/generate-group
|
||||
"auth"
|
||||
(br/generate-text-area "auth" "Your auth.edn:" "{:postgres-db-user \"taiga\"
|
||||
:postgres-db-password \"db-password\"
|
||||
:mailer-user \"mail[at]example.com\"
|
||||
:mailer-pw \"change-me\"
|
||||
:django-superuser-username \"admin\"
|
||||
:django-superuser-password \"change-me\"
|
||||
:django-superuser-email \"mail[at]example.com\"
|
||||
:rabbitmq-user \"user\"
|
||||
:rabbitmq-pw \"change-me\"
|
||||
:rabbitmq-erlang-cookie \"change-me\"
|
||||
:taiga-secret-key \"change-me\"
|
||||
:aws-access-key-id \"aws-id\"
|
||||
:aws-secret-access-key \"aws-secret\"
|
||||
:restic-password \"restic-password\"}
|
||||
:mon-auth {:grafana-cloud-user \"your-user-id\"
|
||||
:grafana-cloud-password \"your-cloud-password\"}"
|
||||
"5"))
|
||||
:postgres-db-password \"db-password\"
|
||||
:mailer-user \"mail[at]example.com\"
|
||||
:mailer-pw \"change-me\"
|
||||
:django-superuser-username \"admin\"
|
||||
:django-superuser-password \"change-me\"
|
||||
:django-superuser-email \"mail[at]example.com\"
|
||||
:rabbitmq-user \"user\"
|
||||
:rabbitmq-pw \"change-me\"
|
||||
:rabbitmq-erlang-cookie \"change-me\"
|
||||
:taiga-secret-key \"change-me\"
|
||||
:aws-access-key-id \"aws-id\"
|
||||
:aws-secret-access-key \"aws-secret\"
|
||||
:restic-password \"restic-password\"
|
||||
:mon-auth {:grafana-cloud-user \"your-user-id\"
|
||||
:grafana-cloud-password \"your-cloud-password\"}}"
|
||||
"16"))
|
||||
[(br/generate-br)]
|
||||
(br/generate-button "generate-button" "Generate c4k yaml")))]
|
||||
(br/generate-output "c4k-taiga-output" "Your c4k deployment.yaml:" "15")))
|
||||
(br/generate-output "c4k-taiga-output" "Your c4k deployment.yaml:" "25")))
|
||||
|
||||
(defn generate-content-div
|
||||
[]
|
||||
|
@ -66,12 +66,12 @@
|
|||
#(do (validate-all!)
|
||||
(-> (cm/generate-cm
|
||||
(br/get-content-from-element "config" :deserializer edn/read-string)
|
||||
(br/get-content-from-element "auth" :deserializer edn/read-string)
|
||||
core/config-defaults
|
||||
core/config-objects
|
||||
core/auth-objects
|
||||
false
|
||||
false)
|
||||
(br/get-content-from-element "auth" :deserializer edn/read-string)
|
||||
core/config-defaults
|
||||
core/config-objects
|
||||
core/auth-objects
|
||||
false
|
||||
false)
|
||||
(br/set-output!)))))
|
||||
(add-validate-listener "config")
|
||||
(add-validate-listener "authr"))
|
||||
|
|
|
@ -6,7 +6,6 @@ metadata:
|
|||
labels:
|
||||
app.kubernetes.part-of: c4k-taiga
|
||||
app.kubernetes.io/component: taiga-async-rabbitmq
|
||||
namespace: taiga
|
||||
spec:
|
||||
type: ClusterIP
|
||||
selector:
|
||||
|
|
|
@ -6,7 +6,6 @@ metadata:
|
|||
labels:
|
||||
app.kubernetes.part-of: c4k-taiga
|
||||
app.kubernetes.io/component: taiga-async
|
||||
namespace: taiga
|
||||
spec:
|
||||
type: ClusterIP
|
||||
selector:
|
||||
|
|
Loading…
Add table
Reference in a new issue