Skip to content

Commit

Permalink
parameterize registration deployment
Browse files Browse the repository at this point in the history
Signed-off-by: Gerd Oberlechner <[email protected]>
  • Loading branch information
geoberle committed Nov 3, 2024
1 parent 2d4b875 commit 55c6d2f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions maestro/registration/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ $(shell ../../templatize.sh $(DEPLOY_ENV) config.tmpl.mk config.mk)
include config.mk

deploy:
@if ! kubectl get service maestro -n maestro > /dev/null 2>&1; then \
echo "Error: Service 'maestro' not found in namespace 'maestro'"; \
@if ! kubectl get service maestro -n ${MAESTRO_NAMESPACE_NAME} > /dev/null 2>&1; then \
echo "Error: Service 'maestro' not found in namespace '${CONSUMER_NAME}'"; \
exit 1; \
fi
helm upgrade --install ${CONSUMER_NAME} ./helm \
--namespace maestro \
--namespace ${MAESTRO_NAMESPACE_NAME} \
--set consumerName=${CONSUMER_NAME}
.PHONY: deploy
1 change: 1 addition & 0 deletions maestro/registration/config.tmpl.mk
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
CONSUMER_NAME ?= {{ .maestroConsumerName }}
MAESTRO_NAMESPACE_NAME ?= {{ .maestroServerNamespace }}

0 comments on commit 55c6d2f

Please sign in to comment.