You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 24, 2024. It is now read-only.
touch $(KUSTOMIZE)# we download an "old" file, so make will re-download to refresh it unless we make it newer than the owning dir
23
+
24
+
$(CONTROLLER_GEN):
25
+
mkdir -p $(LOCALBIN)
26
+
GOBIN=$(LOCALBIN) go install sigs.k8s.io/controller-tools/cmd/controller-gen@$(CONTROLLER_TOOLS_VERSION)
27
+
28
+
OS ?= $(shell go env GOOS )
29
+
ARCH ?= $(shell go env GOARCH )
30
+
31
+
$(KCP): ## Download kcp locally if necessary.
32
+
mkdir -p $(LOCALBIN)
33
+
wget -qO- https://github.com/kcp-dev/kcp/releases/download/v$(KCP_VERSION)/kcp_$(KCP_VERSION)_$(OS)_$(ARCH).tar.gz | tar -xvzf - bin/kcp --directory $(LOCALBIN)/../
34
+
touch $(KCP)# we download an "old" file, so make will re-download to refresh it unless we make it newer than the owning dir
35
+
36
+
$(KUBECTL_KCP): ## Download kcp kubectl plugins locally if necessary.
37
+
mkdir -p $(LOCALBIN)
38
+
wget -qO- https://github.com/kcp-dev/kcp/releases/download/v$(KCP_VERSION)/kubectl-kcp-plugin_$(KCP_VERSION)_$(OS)_$(ARCH).tar.gz | tar -xvzf - bin --directory $(LOCALBIN)/../
39
+
touch $(KUBECTL_KCP)# we download an "old" file, so make will re-download to refresh it unless we make it newer than the owning dir
40
+
41
+
$(ENVTEST):
42
+
mkdir -p $(LOCALBIN)
43
+
GOBIN=$(LOCALBIN) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
1
44
2
-
# Image URL to use all building/pushing image targets
3
-
IMG ?= controller:latest
45
+
# Image registry and URL to use all building/pushing image targets
46
+
REGISTRY ?= localhost
47
+
IMG ?= controller:test
4
48
# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.
5
49
ENVTEST_K8S_VERSION = 1.23
6
50
@@ -15,7 +59,7 @@ endif
15
59
# This is a requirement for 'setup-envtest.sh' in the test target.
16
60
# Options are set to exit when a recipe line exits non-zero or a piped command fails.
17
61
SHELL = /usr/bin/env bash -o pipefail
18
-
.SHELLFLAGS = -ec
62
+
.SHELLFLAGS = -ecx
19
63
20
64
.PHONY: all
21
65
all: build
@@ -43,15 +87,15 @@ help: ## Display this help.
43
87
##@ Development
44
88
45
89
.PHONY: manifests
46
-
manifests: controller-gen## Generate WebhookConfiguration, ClusterRole and CustomResourceDefinition objects.
90
+
manifests: $(CONTROLLER_GEN)## Generate WebhookConfiguration, ClusterRole and CustomResourceDefinition objects.
uninstall: manifests kustomize## Uninstall APIResourceSchemas and APIExport from kcp (using $KUBECONFIG or ~/.kube/config). Call with ignore-not-found=true to ignore resource not found errors during deletion.
uninstall: manifests $(KUSTOMIZE)## Uninstall APIResourceSchemas and APIExport from kcp (using $KUBECONFIG or ~/.kube/config). Call with ignore-not-found=true to ignore resource not found errors during deletion.
0 commit comments