Fix release script failed to generate yaml for nonhelm installation (#978)

This commit is contained in:
Ta-Ching Chen
2018-11-14 15:02:43 +08:00
committed by GitHub
parent cdf5838420
commit 4f3b7de04a
+9 -1
View File
@@ -237,13 +237,21 @@ build_yamls() {
releaseName=fission-$(echo ${version} | sed 's/\./-/g') releaseName=fission-$(echo ${version} | sed 's/\./-/g')
helm init --client-only
for c in fission-all fission-core for c in fission-all fission-core
do do
# for minikube and other environment that don't support LoadBalancer # fetch dependencies
pushd ${c}
helm dependency update
popd
# for minikube and other environments that don't support LoadBalancer
helm template ${c} -n ${releaseName} --set analytics=false,analyticsNonHelmInstall=true,serviceType=NodePort,routerServiceType=NodePort > ${c}-${version}-minikube.yaml helm template ${c} -n ${releaseName} --set analytics=false,analyticsNonHelmInstall=true,serviceType=NodePort,routerServiceType=NodePort > ${c}-${version}-minikube.yaml
# for environments that support LoadBalancer # for environments that support LoadBalancer
helm template ${c} -n ${releaseName} --set analytics=false,analyticsNonHelmInstall=true > ${c}-${version}.yaml helm template ${c} -n ${releaseName} --set analytics=false,analyticsNonHelmInstall=true > ${c}-${version}.yaml
# copy yaml files to build directory
mv *.yaml ${BUILDDIR}/yamls/ mv *.yaml ${BUILDDIR}/yamls/
done done