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
Copy file name to clipboardExpand all lines: Makefile
+11-4Lines changed: 11 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -28,10 +28,17 @@ endif
28
28
29
29
##@ General
30
30
31
-
# The help will print out all targets with their descriptions organized bellow their categories. The categories are represented by `##@` and the target descriptions by `##`.
32
-
# The awk commands is responsable to read the entire set of makefiles included in this invocation, looking for lines of the file as xyz: ## something, and then pretty-format the target and help. Then, if there's a line with ##@ something, that gets pretty-printed as a category.
33
-
# More info over the usage of ANSI control characters for terminal formatting: https://en.wikipedia.org/wiki/ANSI_escape_code#SGR_parameters
34
-
# More info over awk command: http://linuxcommand.org/lc3_adv_awk.php
31
+
# The help target prints out all targets with their descriptions organized
32
+
# beneath their categories. The categories are represented by '##@' and the
33
+
# target descriptions by '##'. The awk commands is responsible for reading the
34
+
# entire set of makefiles included in this invocation, looking for lines of the
35
+
# file as xyz: ## something, and then pretty-format the target and help. Then,
36
+
# if there's a line with ##@ something, that gets pretty-printed as a category.
37
+
# More info on the usage of ANSI control characters for terminal formatting:
test -f ${ENVTEST_ASSETS_DIR}/setup-envtest.sh || curl -sSLo ${ENVTEST_ASSETS_DIR}/setup-envtest.sh https://raw.githubusercontent.com/kubernetes-sigs/controller-runtime/v0.7.0/hack/setup-envtest.sh
21
37
source${ENVTEST_ASSETS_DIR}/setup-envtest.sh; fetch_envtest_tools $(ENVTEST_ASSETS_DIR); setup_envtest_env $(ENVTEST_ASSETS_DIR); go test ./... -coverprofile cover.out
22
38
23
-
# Build manager binary
24
-
manager: generate fmt vet
39
+
manager: generate fmt vet ## Build manager binary.
25
40
go build -o bin/manager main.go
26
41
27
-
# Run against the configured Kubernetes cluster in ~/.kube/config
28
-
run: generate fmt vet manifests
42
+
run: generate fmt vet manifests ## Run a controller from your host.
29
43
go run ./main.go
30
44
31
-
# Install CRDs into a cluster
32
-
install: manifests kustomize
45
+
install: manifests kustomize ## Install CRDs into the K8s cluster specified in ~/.kube/config.
test -f ${ENVTEST_ASSETS_DIR}/setup-envtest.sh || curl -sSLo ${ENVTEST_ASSETS_DIR}/setup-envtest.sh https://raw.githubusercontent.com/kubernetes-sigs/controller-runtime/v0.7.0/hack/setup-envtest.sh
21
37
source${ENVTEST_ASSETS_DIR}/setup-envtest.sh; fetch_envtest_tools $(ENVTEST_ASSETS_DIR); setup_envtest_env $(ENVTEST_ASSETS_DIR); go test ./... -coverprofile cover.out
22
38
23
-
# Build manager binary
24
-
manager: generate fmt vet
39
+
manager: generate fmt vet ## Build manager binary.
25
40
go build -o bin/manager main.go
26
41
27
-
# Run against the configured Kubernetes cluster in ~/.kube/config
28
-
run: generate fmt vet manifests
42
+
run: generate fmt vet manifests ## Run a controller from your host.
29
43
go run ./main.go
30
44
31
-
# Install CRDs into a cluster
32
-
install: manifests kustomize
45
+
install: manifests kustomize ## Install CRDs into the K8s cluster specified in ~/.kube/config.
0 commit comments