@@ -47,12 +47,12 @@ clean: ## Cleanup build artifacts and tool binaries.
47
47
48
48
.PHONY : build
49
49
build : # # Build operator-sdk, ansible-operator, and helm-operator.
50
- mkdir -p $( BUILD_DIR ) && go build $(GO_BUILD_ARGS ) -o $(BUILD_DIR ) ./cmd/operator-sdk ./cmd/ansible-operator ./cmd/helm-operator
50
+ go build $(GO_BUILD_ARGS ) -o $(BUILD_DIR ) ./cmd/operator-sdk ./cmd/ansible-operator ./cmd/helm-operator
51
51
52
52
.PHONY : install
53
53
GOBIN ?= $(shell go env GOPATH) /bin
54
- install : build # # Install operator-sdk, ansible-operator, and helm-operator in $GOBIN
55
- install -t $( GOBIN ) $( BUILD_DIR ) /{operator-sdk,ansible-operator,helm-operator}
54
+ install : # # Install operator-sdk, ansible-operator, and helm-operator in $GOBIN
55
+ go install $( GO_BUILD_ARGS ) ./cmd /{operator-sdk,ansible-operator,helm-operator}
56
56
57
57
.PHONY : image-build-sdk image-push-sdk image-push-sdk-multiarch
58
58
OPERATOR_SDK_CI_IMAGE = quay.io/operator-framework/operator-sdk
@@ -152,8 +152,8 @@ export KUBECONFIG := $(HOME)/.kube/kind-$(KIND_CLUSTER).config
152
152
export KUBEBUILDER_ASSETS := $(PWD ) /tools/bin
153
153
test-e2e-setup : build
154
154
./tools/scripts/fetch kind 0.9.0
155
- ./tools/scripts/fetch kubectl ${K8S_VERSION}
156
155
./tools/scripts/fetch envtest 0.6.3
156
+ ./tools/scripts/fetch kubectl ${K8S_VERSION} # Install kubectl AFTER envtest because envtest includes its own kubectl binary
157
157
[[ " ` ./tools/bin/kind get clusters` " =~ " $( KIND_CLUSTER) " ]] || ./tools/bin/kind create cluster --image=" kindest/node:v$( K8S_VERSION) " --name $(KIND_CLUSTER )
158
158
159
159
.PHONY : test-e2e-teardown
0 commit comments