Improve compatibility with Openshift (#1424)

This commit is contained in:
Ta-Ching Chen
2019-11-21 16:56:53 +08:00
committed by GitHub
parent af10579be9
commit 04654ca465
4 changed files with 23 additions and 4 deletions
+4 -2
View File
@@ -198,8 +198,8 @@ build_charts() {
do
# https://github.com/kubernetes/helm/issues/1732
helm init --client-only
helm package -u $c/
mv *.tgz $BUILDDIR/charts/
helm package -u $c/
mv *.tgz $BUILDDIR/charts/
done
popd
}
@@ -226,6 +226,8 @@ build_yamls() {
helm template ${c} -n ${releaseName} --namespace fission --set analytics=false,analyticsNonHelmInstall=true,serviceType=NodePort,routerServiceType=NodePort > ${c}-${version}-minikube.yaml
# for environments that support LoadBalancer
helm template ${c} -n ${releaseName} --namespace fission --set analytics=false,analyticsNonHelmInstall=true > ${c}-${version}.yaml
# for OpenShift
helm template ${c} -n ${releaseName} --namespace fission --set analytics=false,analyticsNonHelmInstall=true,logger.enableSecurityContext=true,prometheus.enabled=false > ${c}-${version}-openshift.yaml
# copy yaml files to build directory
mv *.yaml ${BUILDDIR}/yamls/