Update run.sh
This commit is contained in:
parent
96c4fd0611
commit
67206ee2e2
9
run.sh
9
run.sh
|
@ -11,8 +11,9 @@ enable_ssl=
|
|||
api_replicas=
|
||||
fluentd=false
|
||||
seed_db=false
|
||||
uninstall=false
|
||||
|
||||
while getopts "idfhp:s:r:" arg; do
|
||||
while getopts "idufhp:s:r:" arg; do
|
||||
case $arg in
|
||||
i) interactive=true ;;
|
||||
p) postgres_version=${OPTARG} ;;
|
||||
|
@ -20,6 +21,7 @@ while getopts "idfhp:s:r:" arg; do
|
|||
r) api_replicas=${OPTARG} ;;
|
||||
f) fluentd=true ;;
|
||||
d) seed_db=true ;;
|
||||
u) uninstall=true ;;
|
||||
*) usage ;;
|
||||
esac
|
||||
done
|
||||
|
@ -82,6 +84,11 @@ $START_MINIKUBE && minikube addons enable ingress
|
|||
|
||||
helm dependency list helm | grep -q "missing" && helm dependency build helm
|
||||
|
||||
if [ "$uninstall" == true ]; then
|
||||
helm uninstall exam -n exam
|
||||
exit 0
|
||||
fi
|
||||
|
||||
VALUES=("-f" "helm/values.yaml")
|
||||
|
||||
if [ "$fluentd" == true ] || [ "$fluentd" == "y" ] || [ "$fluentd" == "Y" ]; then
|
||||
|
|
Loading…
Reference in New Issue