forked from IBM/mr-cassop
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvars.mk
More file actions
20 lines (16 loc) · 726 Bytes
/
vars.mk
File metadata and controls
20 lines (16 loc) · 726 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
CONTROLLER_GEN_VERSION = v0.9.2
KUSTOMIZE_VERSION = v4.5.7
CLOUD_PROVIDER ?= ibm
E2E_TIMEOUT ?= 1h30m
IMAGE_PULL_SECRET ?= icm-coreeng-pull-secret
STORAGE_CLASS_NAME ?= ibmc-block-gold
# Obtain k8s cluster name
K8S_CLUSTER ?= $(shell kubectl config current-context | cut -f1 -d"/")
# Obtain k8s namespace
K8S_NAMESPACE ?= $(shell kubectl config view --minify -o json | jq '.contexts[].context.namespace')
ifeq ($(CLOUD_PROVIDER),ibm)
# Obtain IMB cloud ingress domain
INGRESS_SECRET = $(shell ibmcloud ks cluster get --cluster=$(K8S_CLUSTER) --json | jq '.ingressSecretName')
# Obtain IMB cloud ingress domain
INGRESS_DOMAIN = $(shell ibmcloud ks cluster get --cluster=$(K8S_CLUSTER) --json | jq '.ingressHostname')
endif