From b062431dbcdb5fa2a56873abcf30edcc3e4b1a8c Mon Sep 17 00:00:00 2001 From: Florian Herrengt Date: Fri, 3 Feb 2023 18:18:29 +0000 Subject: [PATCH] fix nats --- helm/deploy.sh | 4 +--- helm/nats.yaml | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/helm/deploy.sh b/helm/deploy.sh index 481e5c7..478c388 100755 --- a/helm/deploy.sh +++ b/helm/deploy.sh @@ -9,6 +9,4 @@ then echo '$NAMESPACE is required' exit 1 fi -helm --namespace=$(NAMESPACE) upgrade nocodelytics-nats nats/nats --values ./nats.yaml \ - --set auth.basic.accounts.sys.users[0].pass=$NATS_PASSWORD \ - --set auth.basic.accounts.js.users[0].pass=$NATS_PASSWORD \ No newline at end of file +cat ./nats.yaml | envsubst | helm --namespace=$NAMESPACE upgrade nocodelytics-nats nats/nats --values - \ No newline at end of file diff --git a/helm/nats.yaml b/helm/nats.yaml index a49190b..c8cc300 100644 --- a/helm/nats.yaml +++ b/helm/nats.yaml @@ -23,9 +23,9 @@ auth: sys: users: - user: nats - pass: replaced + pass: $NATS_PASSWORD js: jetstream: true users: - user: nocodelytics-nats - pass: replaced + pass: $NATS_PASSWORD