Skip to content

Commit

Permalink
feat(helm): add helm install and completion
Browse files Browse the repository at this point in the history
  • Loading branch information
Deavon M. McCaffery committed Aug 14, 2017
1 parent c8ba6f5 commit bbf2462
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/scripts/Darwin/minikube-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,17 @@ fi
minikube-install() {
echo "Installing minikube..."
brew update
brew install docker-machine-driver-xhyve kubernetes-cli Caskroom/cask/minikube

for pkg in docker-machine-driver-xhyve kubernetes-cli Caskroom/cask/minikube kubernetes-helm; do
if brew list -1 | grep -q "^${pkg}\$"; then
echo "upgrading: $pkg"
brew upgrade $pkg 1>/dev/null 2>&1
brew link --overwrite $pkg 1>/dev/null 2>&1
else
echo "installing: $pkg"
brew install $pkg 1>/dev/null 2>&1
fi
done

echo "Setting ownership of docker-machine-driver-xhyve: you will be prompted for your password..."
sudo chown root:wheel $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve
Expand All @@ -19,6 +29,9 @@ minikube-install() {
echo "Starting minikube..."
minikube start --insecure-registry localhost:5000

echo "Installing helm and tiller..."
helm init

echo "Using docker environment from minikube..."
eval $(minikube docker-env)

Expand Down
4 changes: 4 additions & 0 deletions src/scripts/set-prompt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ __prompt-set-prompt() {
eval "$(kubectl completion bash)" 1>/dev/null 2>&1;
fi

if type helm 1>/dev/null 2>&1; then
eval "$(helm completion bash)" 1>/dev/null 2>&1;
fi

if [ -f $LOCAL_PREFIX/etc/bash_completion ]; then
source $LOCAL_PREFIX/etc/bash_completion
elif [ -f /etc/bash_completion ]; then
Expand Down

0 comments on commit bbf2462

Please sign in to comment.