forked from k8up-io/k8up
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.vars.mk
43 lines (32 loc) · 1.45 KB
/
Makefile.vars.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
IMG_TAG ?= latest
K8UP_MAIN_GO ?= cmd/k8up/main.go
K8UP_GOOS ?= linux
K8UP_GOARCH ?= amd64
CURDIR ?= $(shell pwd)
BIN_FILENAME ?= $(CURDIR)/$(PROJECT_ROOT_DIR)/k8up
integrationtest_dir ?= $(CURDIR)/$(PROJECT_ROOT_DIR)/.integration-test
integrationtest_dir_created = $(integrationtest_dir)/.created
e2etest_dir ?= $(CURDIR)/$(PROJECT_ROOT_DIR)/.e2e-test
e2etest_dir_created = $(e2etest_dir)/.created
CRD_FILE ?= k8up-crd.yaml
CRD_ROOT_DIR ?= config/crd/apiextensions.k8s.io
CRD_DOCS_REF_PATH ?= docs/modules/ROOT/pages/references/api-reference.adoc
KIND_NODE_VERSION ?= v1.22.1
KIND ?= go run sigs.k8s.io/kind
KIND_KUBECONFIG ?= $(e2etest_dir)/kind-kubeconfig-$(KIND_NODE_VERSION)
KIND_CLUSTER ?= k8up-$(KIND_NODE_VERSION)
KIND_KUBECTL_ARGS ?= --validate=true
ENABLE_LEADER_ELECTION ?= false
SHASUM ?= $(shell command -v sha1sum > /dev/null && echo "sha1sum" || echo "shasum -a1")
E2E_TAG ?= e2e_$(shell $(SHASUM) $(BIN_FILENAME) | cut -b-8)
E2E_REPO ?= local.dev/k8up-io
K8UP_E2E_IMG = $(E2E_REPO)/k8up:$(E2E_TAG)
BATS_FILES ?= .
KUSTOMIZE ?= go run sigs.k8s.io/kustomize/kustomize/v4
# Image URL to use all building/pushing image targets
K8UP_GHCR_IMG ?= ghcr.io/k8up-io/k8up:$(IMG_TAG)
K8UP_QUAY_IMG ?= quay.io/k8up-io/k8up:$(IMG_TAG)
# Operator Integration Test
ENVTEST_ADDITIONAL_FLAGS ?= --bin-dir "$(integrationtest_dir)"
INTEGRATION_TEST_DEBUG_OUTPUT ?= false
setup-envtest ?= go run sigs.k8s.io/controller-runtime/tools/setup-envtest $(ENVTEST_ADDITIONAL_FLAGS)