We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e75ece7 commit 91aaeecCopy full SHA for 91aaeec
Makefile
@@ -159,12 +159,17 @@ CONTROLLER_GEN = $(shell pwd)/bin/controller-gen
159
controller-gen:
160
$(call go-install-tool,$(CONTROLLER_GEN),sigs.k8s.io/controller-tools/cmd/[email protected])
161
162
+# Try to use already installed helm from PATH
163
+ifeq (ok,$(shell test -f "$$(which helm)" && echo ok))
164
+ HELM=$(shell which helm)
165
+else
166
+ HELM=/usr/bin/local/helm
167
+endif
168
+
169
# Download helm locally if necessary
-HELM = /usr/local/bin/helm
170
helm:
171
$(call install-helm)
172
-
173
define install-helm
174
@[ -f $(HELM) ] || { \
175
set -e ;\
0 commit comments