forked from dell/csi-baremetal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.mk
87 lines (73 loc) · 2.65 KB
/
variables.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# project name
PROJECT := csi-baremetal
### common path
CSI_OPERATOR_PATH=../csi-baremetal-operator
CSI_CHART_CRDS_PATH=$(CSI_OPERATOR_PATH)/charts/csi-baremetal-operator/crds
CONTROLLER_GEN_BIN=./bin/controller-gen
CRD_OPTIONS ?= "crd:trivialVersions=true"
### version
MAJOR := 1
MINOR := 1
PATCH := 0
PRODUCT_VERSION ?= ${MAJOR}.${MINOR}.${PATCH}
BUILD_REL_A := $(shell git rev-list HEAD |wc -l)
BUILD_REL_B := $(shell git rev-parse --short HEAD)
BLD_CNT := $(shell echo ${BUILD_REL_A})
BLD_SHA := $(shell echo ${BUILD_REL_B})
RELEASE_STR := ${BLD_CNT}.${BLD_SHA}
FULL_VERSION := ${PRODUCT_VERSION}-${RELEASE_STR}
TAG := ${FULL_VERSION}
BRANCH := $(shell git rev-parse --abbrev-ref HEAD)
### third-party components version
CSI_PROVISIONER_TAG := v1.6.0
CSI_RESIZER_TAG := v1.1.0
CSI_REGISTRAR_TAG := v1.3.0
LIVENESS_PROBE_TAG := v2.1.0
BUSYBOX_TAG := 1.29
### PATH
SCHEDULING_PKG := scheduling
SCHEDULER_EXTENDER_PKG := extender
SCHEDULER_EXTENDER_PATCHER_PKG := scheduler/patcher
CR_CONTROLLERS := crcontrollers
NODE_CONTROLLER_PKG := node
### components
NODE := node
DRIVE_MANAGER := drivemgr
CONTROLLER := controller
SCHEDULER := scheduler
EXTENDER := extender
EXTENDER_PATCHER := scheduler-patcher
NODE_CONTROLLER := ${NODE_CONTROLLER_PKG}-${CONTROLLER}
PLUGIN := plugin
OPERATOR := operator
BASE_DRIVE_MGR := basemgr
LOOPBACK_DRIVE_MGR := loopbackmgr
DRIVE_MANAGER_TYPE := ${BASE_DRIVE_MGR}
# external components
CSI_PROVISIONER := csi-provisioner
CSI_REGISTRAR := csi-node-driver-registrar
CSI_RESIZER := csi-resizer
LIVENESS_PROBE := livenessprobe
BUSYBOX := busybox
HEALTH_PROBE := health_probe
HEALTH_PROBE_BIN_URL := https://github.com/grpc-ecosystem/grpc-health-probe/releases/download/v0.3.1/grpc_health_probe-linux-amd64
### go env vars
GO_ENV_VARS := GO111MODULE=on ${GOPRIVATE_PART} ${GOPROXY_PART}
### custom variables that could be ommited
GOPRIVATE_PART :=
GOPROXY_PART := GOPROXY=https://proxy.golang.org,direct
### Ingest information to the binary at the compile time
METRICS_PACKAGE := github.com/dell/csi-baremetal/pkg/metrics
LDFLAGS := -ldflags "-X ${METRICS_PACKAGE}.Revision=${RELEASE_STR} -X ${METRICS_PACKAGE}.Branch=${BRANCH}"
### Kind
KIND_DIR := test/kind
KIND := ${KIND_DIR}/kind
KIND_VER := 0.8.1
KIND_CONFIG := kind.yaml
KIND_IMAGE_VERSION := v1.18.2
KIND_WAIT := 30s
### ci vars
# timeout for short test suite, must be parsable as Go time.Duration (60m, 2h)
SHORT_CI_TIMEOUT := 60m
# override some of variables, optional file
-include variables.override.mk