Skip to content

Commit

Permalink
Fix install instruction for minikube 0.24.x (Kube 1.8.0) (#956)
Browse files Browse the repository at this point in the history
  • Loading branch information
tamalsaha authored Mar 29, 2018
1 parent 17ad7ef commit 244ee9a
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions hack/deploy/voyager.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export VOYAGER_NAMESPACE=kube-system
export VOYAGER_SERVICE_ACCOUNT=voyager-operator
export VOYAGER_ENABLE_RBAC=true
export VOYAGER_RUN_ON_MASTER=0
export VOYAGER_ENABLE_ADMISSION_WEBHOOK=false
export VOYAGER_RESTRICT_TO_NAMESPACE=false
export VOYAGER_ROLE_TYPE=ClusterRole
export VOYAGER_DOCKER_REGISTRY=appscode
Expand All @@ -59,10 +60,7 @@ export VOYAGER_PURGE=0
export VOYAGER_TEMPLATE_CONFIGMAP=

KUBE_APISERVER_VERSION=$(kubectl version -o=json | $ONESSL jsonpath '{.serverVersion.gitVersion}')
$ONESSL semver --check='>=1.9.0' $KUBE_APISERVER_VERSION
if [ $? -eq 0 ]; then
export VOYAGER_ENABLE_ADMISSION_WEBHOOK=true
fi
$ONESSL semver --check='<1.9.0' $KUBE_APISERVER_VERSION || { export VOYAGER_ENABLE_ADMISSION_WEBHOOK=true; }

show_help() {
echo "voyager.sh - install voyager operator"
Expand Down Expand Up @@ -174,8 +172,8 @@ done

if [ "$VOYAGER_UNINSTALL" -eq 1 ]; then
# delete webhooks and apiservices
kubectl delete validatingwebhookconfiguration -l app=voyager
kubectl delete mutatingwebhookconfiguration -l app=voyager
kubectl delete validatingwebhookconfiguration -l app=voyager || true
kubectl delete mutatingwebhookconfiguration -l app=voyager || true
kubectl delete apiservice -l app=voyager
# delete voyager operator
kubectl delete deployment -l app=voyager --namespace $VOYAGER_NAMESPACE
Expand Down

0 comments on commit 244ee9a

Please sign in to comment.