Skip to content
Snippets Groups Projects
Commit 09db10fd authored by nimrod's avatar nimrod
Browse files

Move the Helm plugin installation from the Makefile to the Git hook.

Same as the Vagrant plugins, this is really inside the home directory
and not globally installable (like the other binaries in the Makefile).
parent dfeffefd
No related branches found
No related tags found
No related merge requests found
...@@ -29,3 +29,9 @@ then ...@@ -29,3 +29,9 @@ then
vagrant plugin list | grep -qw "$plugin" || vagrant plugin install "$plugin" || true vagrant plugin list | grep -qw "$plugin" || vagrant plugin install "$plugin" || true
done done
fi fi
if command -v helm > /dev/null
then
echo Installing Hem plugins >&2
helm plugin remove diff
helm plugin install https://github.com/databus23/helm-diff --version master
fi
...@@ -13,7 +13,7 @@ ansible-local = ansible localhost -c local -i localhost, -e "ansible_python_inte ...@@ -13,7 +13,7 @@ ansible-local = ansible localhost -c local -i localhost, -e "ansible_python_inte
all: binaries vendored generated all: binaries vendored generated
vendored: .config/pythonrc.py .bash_completion.d/aws .bash_completion.d/docker-compose .bash_completion.d/docker-machine.bash .bash_completion.d/docker-machine.bash .travis/travis.sh .bash_completion.d/molecule Documents/bin/rabbitmqadmin .bash_completion.d/toolbox vendored: .config/pythonrc.py .bash_completion.d/aws .bash_completion.d/docker-compose .bash_completion.d/docker-machine.bash .bash_completion.d/docker-machine.bash .travis/travis.sh .bash_completion.d/molecule Documents/bin/rabbitmqadmin .bash_completion.d/toolbox
generated: .ssh/config .bash_completion.d/helm .bash_completion.d/kops .bash_completion.d/kubectl .bash_completion.d/kompose .bash_completion.d/minikube .bash_completion.d/pipenv .bash_completion.d/pandoc .bash_completion.d/skaffold .bash_completion.d/rabbitmqadmin .ssh/localhost .ssh/localhost.pub .ssh/authorized_keys .bash_completion.d/minishift .bash_completion.d/oc .bash_completion.d/poetry generated: .ssh/config .bash_completion.d/helm .bash_completion.d/kops .bash_completion.d/kubectl .bash_completion.d/kompose .bash_completion.d/minikube .bash_completion.d/pipenv .bash_completion.d/pandoc .bash_completion.d/skaffold .bash_completion.d/rabbitmqadmin .ssh/localhost .ssh/localhost.pub .ssh/authorized_keys .bash_completion.d/minishift .bash_completion.d/oc .bash_completion.d/poetry
binaries: $(DESTDIR)/share/bfg/bfg.jar $(DESTDIR)/bin/rke $(DESTDIR)/bin/docker-machine $(DESTDIR)/bin/packer $(DESTDIR)/bin/terraform $(DESTDIR)/bin/vault $(DESTDIR)/bin/kubectl $(DESTDIR)/bin/kops $(DESTDIR)/bin/kompose $(DESTDIR)/bin/minikube $(DESTDIR)/bin/docker-machine-driver-kvm2 $(DESTDIR)/bin/kustomize $(DESTDIR)/bin/pack $(DESTDIR)/bin/skaffold $(DESTDIR)/bin/minishift $(DESTDIR)/bin/oc $(DESTDIR)/bin/docker-machine-driver-kvm $(HELM_HOME)/plugins/helm-diff/bin/diff $(DESTDIR)/bin/gomplate $(DESTDIR)/bin/envconsul binaries: $(DESTDIR)/share/bfg/bfg.jar $(DESTDIR)/bin/rke $(DESTDIR)/bin/docker-machine $(DESTDIR)/bin/packer $(DESTDIR)/bin/terraform $(DESTDIR)/bin/vault $(DESTDIR)/bin/kubectl $(DESTDIR)/bin/kops $(DESTDIR)/bin/kompose $(DESTDIR)/bin/minikube $(DESTDIR)/bin/docker-machine-driver-kvm2 $(DESTDIR)/bin/kustomize $(DESTDIR)/bin/pack $(DESTDIR)/bin/skaffold $(DESTDIR)/bin/minishift $(DESTDIR)/bin/oc $(DESTDIR)/bin/docker-machine-driver-kvm $(DESTDIR)/bin/gomplate $(DESTDIR)/bin/envconsul
## Binary files ## Binary files
...@@ -116,11 +116,6 @@ $(DESTDIR)/bin/docker-machine-driver-kvm: ...@@ -116,11 +116,6 @@ $(DESTDIR)/bin/docker-machine-driver-kvm:
-$(download) https://github.com/dhiltgen/docker-machine-kvm/releases/download/v0.10.0/docker-machine-driver-kvm-ubuntu16.04 -$(download) https://github.com/dhiltgen/docker-machine-kvm/releases/download/v0.10.0/docker-machine-driver-kvm-ubuntu16.04
-chmod +x $@ -chmod +x $@
$(HELM_HOME)/plugins/helm-diff/bin/diff: $(DESTDIR)/bin/helm
mkdir -p $(HELM_HOME)/plugins
-helm plugin remove diff
-$(DESTDIR)/bin/helm plugin install https://github.com/databus23/helm-diff --version master
$(DESTDIR)/bin/gomplate: $(DESTDIR)/bin/gomplate:
mkdir -p $$(dirname $@) mkdir -p $$(dirname $@)
-$(download) https://github.com/hairyhenderson/gomplate/releases/download/v3.5.0/gomplate_$(goos)-$(goarch) -$(download) https://github.com/hairyhenderson/gomplate/releases/download/v3.5.0/gomplate_$(goos)-$(goarch)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment