fix(cli): proper return from functions.
Signed-off-by: Rajesh Rajendran <rjshrjndrn@gmail.com>
This commit is contained in:
parent
5e44cb9a3d
commit
c8dd9b89d7
1 changed files with 4 additions and 1 deletions
|
|
@ -76,6 +76,7 @@ check() {
|
||||||
stop() {
|
stop() {
|
||||||
if [[ $1 == "all" ]]; then
|
if [[ $1 == "all" ]]; then
|
||||||
kubectl scale deployment -n app --replicas=0 --all
|
kubectl scale deployment -n app --replicas=0 --all
|
||||||
|
return
|
||||||
fi
|
fi
|
||||||
kubectl scale -n app deployment --replicas=0 $1-openreplay
|
kubectl scale -n app deployment --replicas=0 $1-openreplay
|
||||||
}
|
}
|
||||||
|
|
@ -88,6 +89,7 @@ start() {
|
||||||
helm upgrade --install -n app $app openreplay -f $app.yaml
|
helm upgrade --install -n app $app openreplay -f $app.yaml
|
||||||
done
|
done
|
||||||
cd $CWD
|
cd $CWD
|
||||||
|
return
|
||||||
fi
|
fi
|
||||||
helm upgrade --install -n app $1 ./app/openreplay -f ./app/$1.yaml
|
helm upgrade --install -n app $1 ./app/openreplay -f ./app/$1.yaml
|
||||||
}
|
}
|
||||||
|
|
@ -95,7 +97,8 @@ start() {
|
||||||
|
|
||||||
restart() {
|
restart() {
|
||||||
if [[ $1 == "all" ]]; then
|
if [[ $1 == "all" ]]; then
|
||||||
kubectl rollout restart deployment -n app --all
|
kubectl rollout restart deployment -n app
|
||||||
|
return
|
||||||
fi
|
fi
|
||||||
kubectl rollout restart -n app deployment $1-openreplay
|
kubectl rollout restart -n app deployment $1-openreplay
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue