forked from dell/csi-baremetal-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.mk
38 lines (32 loc) · 1.31 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
# project name
PROJECT := csi-baremetal-operator
# controller-gen related vars
CSI_OPERATOR_CHART_PATH=charts/csi-baremetal-operator
CSI_DEPLOYMENT_CHART_PATH=charts/csi-baremetal-deployment
CSI_CHART_CRDS_PATH=charts/csi-baremetal-operator/crds
CONTROLLER_GEN_BIN=./bin/controller-gen
CRD_OPTIONS ?= "crd:trivialVersions=true"
# image vars
BASE_IMAGE ?= golang:1.17
CRD_BUILD_IMAGE ?= ${REGISTRY}/csi-baremetal-pre-upgrade-crds:${TAG}
KUBECTL_IMAGE ?= bitnami/kubectl:1.25 # https://hub.docker.com/r/bitnami/kubectl
### version
MAJOR := 1
MINOR := 4
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)
### 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
# override some of variables, optional file
-include variables.override.mk