Working Base Config for Taiga #1

Merged
patdyn merged 60 commits from config-play into main 2023-09-01 10:38:18 +00:00
Showing only changes of commit 4e88dc0384 - Show all commits

View file

@ -44,46 +44,46 @@
:spec :spec
{:storageClassName "local-path", {:storageClassName "local-path",
:accessModes ["ReadWriteOnce"], :accessModes ["ReadWriteOnce"],
:resources {:requests {:storage "5"}}}} :resources {:requests {:storage "2Gi"}}}}
(cut/generate-pvc-taiga-media-data (yaml/load-as-edn "taiga-test/valid-config.yaml"))))) (cut/generate-pvc-taiga-media-data (yaml/load-as-edn "taiga-test/valid-config.yaml")))))
(deftest should-generate-pvc-taiga-static-data (deftest should-generate-pvc-taiga-static-data
(is (= {:apiVersion "v1", (is (= {:apiVersion "v1",
:kind "PersistentVolumeClaim", :kind "PersistentVolumeClaim",
:metadata :metadata
{:name "taiga-media-data", {:name "taiga-static-data",
:namespace "default", :namespace "default",
:labels {:app "taiga", :app.kubernetes.part-of "taiga"}}, :labels {:app "taiga", :app.kubernetes.part-of "taiga"}},
:spec :spec
{:storageClassName "local-path", {:storageClassName "local-path",
:accessModes ["ReadWriteOnce"], :accessModes ["ReadWriteOnce"],
:resources {:requests {:storage "5"}}}} :resources {:requests {:storage "3Gi"}}}}
(cut/generate-pvc-taiga-static-data (yaml/load-as-edn "taiga-test/valid-config.yaml"))))) (cut/generate-pvc-taiga-static-data (yaml/load-as-edn "taiga-test/valid-config.yaml")))))
(deftest should-generate-rabbitmq-pvc-async (deftest should-generate-rabbitmq-pvc-async
(is (= {:apiVersion "v1", (is (= {:apiVersion "v1",
:kind "PersistentVolumeClaim", :kind "PersistentVolumeClaim",
:metadata :metadata
{:name "taiga-media-data", {:name "taiga-async-rabbitmq-data",
:namespace "default", :namespace "default",
:labels {:app "taiga", :app.kubernetes.part-of "taiga"}}, :labels {:app "taiga", :app.kubernetes.part-of "taiga"}},
:spec :spec
{:storageClassName "local-path", {:storageClassName "local-path",
:accessModes ["ReadWriteOnce"], :accessModes ["ReadWriteOnce"],
:resources {:requests {:storage "5"}}}} :resources {:requests {:storage "4Gi"}}}}
(cut/generate-rabbitmq-pvc-async(yaml/load-as-edn "taiga-test/valid-config.yaml"))))) (cut/generate-rabbitmq-pvc-async(yaml/load-as-edn "taiga-test/valid-config.yaml")))))
(deftest should-generate-rabbitmq-pvc-events (deftest should-generate-rabbitmq-pvc-events
(is (= {:apiVersion "v1", (is (= {:apiVersion "v1",
:kind "PersistentVolumeClaim", :kind "PersistentVolumeClaim",
:metadata :metadata
{:name "taiga-media-data", {:name "taiga-events-rabbitmq-data",
:namespace "default", :namespace "default",
:labels {:app "taiga", :app.kubernetes.part-of "taiga"}}, :labels {:app "taiga", :app.kubernetes.part-of "taiga"}},
:spec :spec
{:storageClassName "local-path", {:storageClassName "local-path",
:accessModes ["ReadWriteOnce"], :accessModes ["ReadWriteOnce"],
:resources {:requests {:storage "5"}}}} :resources {:requests {:storage "5Gi"}}}}
(cut/generate-rabbitmq-pvc-events (yaml/load-as-edn "taiga-test/valid-config.yaml"))))) (cut/generate-rabbitmq-pvc-events (yaml/load-as-edn "taiga-test/valid-config.yaml")))))
(deftest should-generate-secret (deftest should-generate-secret
@ -92,13 +92,13 @@
:metadata :metadata
{:name "taiga-secret", :labels {:app.kubernetes.part-of "taiga"}}, {:name "taiga-secret", :labels {:app.kubernetes.part-of "taiga"}},
:data :data
{:TAIGA_SECRET_KEY "some-key", {:TAIGA_SECRET_KEY "c29tZS1rZXk=",
:EMAIL_HOST_USER "mailer-user", :EMAIL_HOST_USER "bWFpbGVyLXVzZXI=",
:EMAIL_HOST_PASSWORD "mailer-pw", :EMAIL_HOST_PASSWORD "bWFpbGVyLXB3",
:RABBITMQ_USER "rabbit-user", :RABBITMQ_USER "cmFiYml0LXVzZXI=",
:RABBITMQ_PASS "rabbit-pw", :RABBITMQ_PASS "cmFiYml0LXB3",
:RABBITMQ_ERLANG_COOKIE "rabbit-erlang", :RABBITMQ_ERLANG_COOKIE "cmFiYml0LWVybGFuZw==",
:DJANGO_SUPERUSER_USERNAME "taiga-admin", :DJANGO_SUPERUSER_USERNAME "dGFpZ2EtYWRtaW4=",
:DJANGO_SUPERUSER_PASSWORD "super-password", :DJANGO_SUPERUSER_PASSWORD "c3VwZXItcGFzc3dvcmQ=",
:DJANGO_SUPERUSER_EMAIL "some@example.com"}} :DJANGO_SUPERUSER_EMAIL "c29tZUBleGFtcGxlLmNvbQ=="}}
(cut/generate-secret (yaml/load-as-edn "taiga-test/valid-auth.yaml"))))) (cut/generate-secret (yaml/load-as-edn "taiga-test/valid-auth.yaml")))))