Remove version from release name since it contains illegal chars for names (#939)
* Remove version from release name since it contains illegal chars for names * Put version in release name for uniqueness, but remove invalid chars * Remove prometheus=false yaml
This commit is contained in:
@@ -235,14 +235,15 @@ build_yamls() {
|
|||||||
pushd ${DIR}/charts
|
pushd ${DIR}/charts
|
||||||
find . -iname *.~?~ | xargs -r rm
|
find . -iname *.~?~ | xargs -r rm
|
||||||
|
|
||||||
|
releaseName=fission-$(echo ${version} | sed 's/\./-/g')
|
||||||
|
|
||||||
for c in fission-all fission-core
|
for c in fission-all fission-core
|
||||||
do
|
do
|
||||||
# for minikube and other environment not support ELB
|
# for minikube and other environment that don't support LoadBalancer
|
||||||
helm template ${c} -n ${c}-${version} --set serviceType=NodePort,routerServiceType=NodePort > ${c}-${version}-minikube.yaml
|
helm template ${c} -n ${releaseName} --set serviceType=NodePort,routerServiceType=NodePort > ${c}-${version}-minikube.yaml
|
||||||
# for environments support ELB
|
# for environments that support LoadBalancer
|
||||||
helm template ${c} -n ${c}-${version} > ${c}-${version}.yaml
|
helm template ${c} -n ${releaseName} > ${c}-${version}.yaml
|
||||||
# for cases where prometheus installation along with fission is not preferred
|
|
||||||
helm template ${c} -n ${c}-${version} --set canaryDeployment.prometheusDeploy=false > ${c}-${version}-fission-only.yaml
|
|
||||||
mv *.yaml ${BUILDDIR}/yamls/
|
mv *.yaml ${BUILDDIR}/yamls/
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user