File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -19,9 +19,10 @@ VERSION ?= v0.1.0
19
19
GIT_COMMIT ?= $(shell git describe --match="" --dirty --long --always --abbrev=40 2> /dev/null || echo "")
20
20
21
21
# Kind configuration
22
- KIND_IMAGE ?= docker.io/kindest/node:latest
23
- ifeq ($(ARCH ) ,"ppc64le")
22
+ ifeq ($(ARCH ) ,ppc64le)
24
23
KIND_IMAGE := quay.io/powercloud/kind-node:v1.33.1
24
+ else
25
+ KIND_IMAGE := docker.io/kindest/node:latest
25
26
endif
26
27
27
28
KIND_CLUSTER_NAME: ="power-dra-driver-cluster"
@@ -34,14 +35,14 @@ KIND_EXPERIMENTAL_PROVIDER:="podman"
34
35
build : fmt vet
35
36
GOOS=linux GOARCH=$(ARCH ) go build -o bin/power-dra-kubeletplugin cmd/power-dra-kubeletplugin/* .go
36
37
38
+ CONTROLLER_GEN := $(shell which controller-gen 2>/dev/null || echo "$$(go env GOPATH ) /bin/controller-gen")
39
+
37
40
.PHONY : controller-gen
38
- controller-gen : # # Download controller-gen locally if necessary.
39
- ifeq (, $(shell which controller-gen) )
40
- go install sigs.k8s.io/controller-tools/cmd/
[email protected]
41
- CONTROLLER_GEN=$(shell go env GOPATH)/bin/controller-gen
42
- else
43
- CONTROLLER_GEN=$(shell which controller-gen)
44
- endif
41
+ controller-gen :
42
+ @if [ ! -x "$(CONTROLLER_GEN)" ]; then \
43
+ echo "Installing controller-gen..."; \
44
+ go install sigs.k8s.io/controller-tools/cmd/
[email protected] ; \
45
+ fi
45
46
46
47
.PHONY : generate
47
48
generate : controller-gen
You can’t perform that action at this time.
0 commit comments