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
+10 -2
View File
@@ -236,14 +236,22 @@ build_yamls() {
find . -iname *.~?~ | xargs -r rm
releaseName=fission-$(echo ${version} | sed 's/\./-/g')
helm init --client-only
for c in fission-all fission-core
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
# for environments that support LoadBalancer
helm template ${c} -n ${releaseName} --set analytics=false,analyticsNonHelmInstall=true > ${c}-${version}.yaml
# copy yaml files to build directory
mv *.yaml ${BUILDDIR}/yamls/
done