lets use namespace-postfixed helm releases

This commit is contained in:
James Strachan
2018-01-16 22:26:57 +00:00
committed by GitHub
parent 6a553e93a7
commit 0bf0ed1c29

View File

@@ -1,6 +1,7 @@
CHART_REPO := http://jenkins-x-chartmuseum:8080
NAME := "env"
DIR := "env"
NAMESPACE := "default-staging"
NAME := "env-$(NAMESPACE)"
OS := $(shell uname)
build: clean
@@ -9,13 +10,15 @@ build: clean
helm init
helm repo add releases ${CHART_REPO}
helm dependency build env
helm lint env
helm lint ${DIR}
install: clean build
helm install env --name ${NAME} --namespace ${NAMESPACE}
install:
echo "Installing release ${NAME} to namespace ${NAMESPACE}
helm install ${DIR} --name ${NAME} --namespace ${NAMESPACE}
upgrade: clean build
helm upgrade ${NAME} . --namespace ${NAMESPACE}
upgrade:
echo "Upgrading release ${NAME} to namespace ${NAMESPACE}
helm upgrade ${NAME} ${DIR} --namespace ${NAMESPACE}
delete:
helm delete --purge ${NAME} --namespace ${NAMESPACE}