Skip to content

Commit

Permalink
plugin: fix 'make run' target to downloads from correct helm-operator…
Browse files Browse the repository at this point in the history
… binary URL (#76)
  • Loading branch information
joelanford committed Jan 17, 2021
1 parent 7ea9161 commit 9ceb2d6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pkg/plugins/v1/scaffolds/internal/templates/makefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,6 @@ PATH := $(PATH):$(PWD)/bin
SHELL := env PATH=$(PATH) /bin/sh
OS = $(shell uname -s | tr '[:upper:]' '[:lower:]')
ARCH = $(shell uname -m | sed 's/x86_64/amd64/')
OSOPER = $(shell uname -s | tr '[:upper:]' '[:lower:]' | sed 's/darwin/apple-darwin/' | sed 's/linux/linux-gnu/')
ARCHOPER = $(shell uname -m )
kustomize:
ifeq (, $(shell which kustomize 2>/dev/null))
Expand All @@ -123,8 +121,8 @@ ifeq (, $(shell which helm-operator 2>/dev/null))
@{ \
set -e ;\
mkdir -p bin ;\
curl -LO https://github.com/joelanford/helm-operator/releases/download/{{ .HelmOperatorVersion }}/helm-operator-{{ .HelmOperatorVersion }}-$(ARCHOPER)-$(OSOPER) ;\
mv helm-operator-{{ .HelmOperatorVersion }}-$(ARCHOPER)-$(OSOPER) ./bin/helm-operator ;\
curl -LO https://github.com/joelanford/helm-operator/releases/download/{{ .HelmOperatorVersion }}/helm-operator_$(OS)_$(ARCH) ;\
mv helm-operator_$(OS)_$(ARCH) ./bin/helm-operator ;\
chmod +x ./bin/helm-operator ;\
}
HELM_OPERATOR=$(realpath ./bin/helm-operator)
Expand Down

0 comments on commit 9ceb2d6

Please sign in to comment.