From fd73485fa5505dc8e3040baf311c174d962e1349 Mon Sep 17 00:00:00 2001 From: ange Date: Wed, 15 May 2024 23:49:45 +0200 Subject: [PATCH] fix: delegation prod-only --- manifests/bin/deploy.sh | 3 +-- manifests/bin/prod.sh | 4 ++++ manifests/{common => prod}/delegation.yaml | 0 3 files changed, 5 insertions(+), 2 deletions(-) rename manifests/{common => prod}/delegation.yaml (100%) diff --git a/manifests/bin/deploy.sh b/manifests/bin/deploy.sh index 8ad5db1..cd0fe42 100755 --- a/manifests/bin/deploy.sh +++ b/manifests/bin/deploy.sh @@ -51,7 +51,6 @@ kcreatecm synapse \ --from-file=homeserver.yaml=<(envsubst "$(env | xargs printf '$%s ')" < config/homeserver.yaml) \ --from-file=log.config=<(envsubst "$(env | xargs printf '$%s ')" < config/log.config) -kapply common/keys.yaml common/app.yaml common/delegation.yaml +kapply common/keys.yaml common/app.yaml -kubectl rollout restart deployment delegation kubectl rollout restart statefulset app diff --git a/manifests/bin/prod.sh b/manifests/bin/prod.sh index db50906..6fc304b 100755 --- a/manifests/bin/prod.sh +++ b/manifests/bin/prod.sh @@ -4,3 +4,7 @@ export NB_REPLICAS=1 . ./manifests/bin/deploy.sh + +#kapply common/delegation.yaml + +#kubectl rollout restart deployment delegation diff --git a/manifests/common/delegation.yaml b/manifests/prod/delegation.yaml similarity index 100% rename from manifests/common/delegation.yaml rename to manifests/prod/delegation.yaml