-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile.vars.mk
36 lines (28 loc) · 1.11 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
## These are some common variables for Make
PROJECT_ROOT_DIR = .
PROJECT_NAME ?= provider-exoscale
PROJECT_OWNER ?= vshn
## BUILD:go
BIN_FILENAME ?= $(PROJECT_NAME)
go_bin ?= $(PWD)/.work/bin
$(go_bin):
@mkdir -p $@
## BUILD:docker
DOCKER_CMD ?= docker
IMG_TAG ?= latest
CONTAINER_REGISTRY ?= ghcr.io
# Image URL to use all building/pushing image targets
CONTAINER_IMG ?= $(CONTAINER_REGISTRY)/$(PROJECT_OWNER)/$(PROJECT_NAME)/controller:$(IMG_TAG)
LOCAL_PACKAGE_IMG = localhost:5000/$(PROJECT_OWNER)/$(PROJECT_NAME)/package:$(IMG_TAG)
GHCR_PACKAGE_IMG ?= $(CONTAINER_REGISTRY)/$(PROJECT_OWNER)/$(PROJECT_NAME)/provider:$(IMG_TAG)
## KIND:setup
# https://hub.docker.com/r/kindest/node/tags
KIND_NODE_VERSION ?= v1.28.9
KIND_IMAGE ?= docker.io/kindest/node:$(KIND_NODE_VERSION)
KIND_KUBECONFIG ?= $(kind_dir)/kind-kubeconfig-$(KIND_NODE_VERSION)
KIND_CLUSTER ?= $(PROJECT_NAME)-$(KIND_NODE_VERSION)
# TEST:integration
ENVTEST_ADDITIONAL_FLAGS ?= --bin-dir "$(kind_dir)"
# See https://storage.googleapis.com/kubebuilder-tools/ for list of supported K8s versions
ENVTEST_K8S_VERSION = 1.23.x
INTEGRATION_TEST_DEBUG_OUTPUT ?= false