File tree Expand file tree Collapse file tree 5 files changed +21
-170
lines changed Expand file tree Collapse file tree 5 files changed +21
-170
lines changed Original file line number Diff line number Diff line change @@ -77,17 +77,17 @@ run: generate fmt vet manifests
77
77
go run ./main.go
78
78
79
79
# Install CRDs into a cluster
80
- install : manifests
81
- kustomize build config/crd | kubectl apply -f -
80
+ install : manifests $( KUSTOMIZE )
81
+ $( KUSTOMIZE ) build config/crd | kubectl apply -f -
82
82
83
83
# Uninstall CRDs from a cluster
84
- uninstall : manifests
85
- kustomize build config/crd | kubectl delete -f -
84
+ uninstall : manifests $( KUSTOMIZE )
85
+ $( KUSTOMIZE ) build config/crd | kubectl delete -f -
86
86
87
87
# Deploy controller in the configured Kubernetes cluster in ~/.kube/config
88
- deploy : manifests
89
- cd config/manager && kustomize edit set image controller=${IMG}
90
- kustomize build config/default | kubectl apply -f -
88
+ deploy : manifests $( KUSTOMIZE )
89
+ cd config/manager && $( KUSTOMIZE ) edit set image controller=${IMG}
90
+ $( KUSTOMIZE ) build config/default | kubectl apply -f -
91
91
92
92
# Generate manifests e.g. CRD, RBAC etc.
93
93
manifests : controller-gen
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ $(GOLANGCI_LINT): $(BIN_DIR) go.mod go.sum # Build golangci-lint from tools fold
47
47
48
48
KUSTOMIZE := $(BIN_DIR ) /kustomize
49
49
$(KUSTOMIZE ) : $(BIN_DIR ) go.mod go.sum # Build kustomize from tools folder.
50
- CGO_ENABLED=0 go build -tags=tools -o $@ sigs.k8s.io/kustomize/kustomize/v3
50
+ CGO_ENABLED=0 go build -tags=tools -o $@ sigs.k8s.io/kustomize/kustomize/v4
51
51
52
52
MDBOOK_SHARE := $(SHARE_DIR ) /mdbook$(MDBOOK_ARCHIVE_EXT )
53
53
$(MDBOOK_SHARE ) : ../../versions.mk $(SHARE_DIR )
Original file line number Diff line number Diff line change @@ -13,5 +13,5 @@ require (
13
13
sigs.k8s.io/cluster-api/hack/tools v0.0.0-20211118171502-aafa086da595
14
14
sigs.k8s.io/controller-runtime/tools/setup-envtest v0.0.0-20211110210527-619e6b92dab9
15
15
sigs.k8s.io/controller-tools v0.7.1-0.20211110210727-ab52f76cc7d1
16
- sigs.k8s.io/kustomize/kustomize/v3 v3.10.0
16
+ sigs.k8s.io/kustomize/kustomize/v4 v4.4.1
17
17
)
You can’t perform that action at this time.
0 commit comments