-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
15 lines (13 loc) · 749 Bytes
/
Makefile
File metadata and controls
15 lines (13 loc) · 749 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
red=`tput setaf 1`
green=`tput setaf 2`
reset=`tput sgr0`
KUBECTL_CONFIGS = "src/main/ocp"
DEPLOY_NAMESPACE ?= "default"
apply:
@echo "${green}Applying configs from ${KUBECTL_CONFIGS} on ${DEPLOY_NAMESPACE} namespace${reset}"
kubectl apply -f ${KUBECTL_CONFIGS}/operator-example.clusterrole.yaml -n ${DEPLOY_NAMESPACE}
kubectl apply -f ${KUBECTL_CONFIGS}/operator-example.serviceaccount.yaml -n ${DEPLOY_NAMESPACE}
kubectl apply -f ${KUBECTL_CONFIGS}/operator-example.clusterrolebinding.yaml -n ${DEPLOY_NAMESPACE}
deploy:
@echo "${green}Deploying config ${KUBECTL_CONFIGS}/operator-example.deployment.yaml on ${DEPLOY_NAMESPACE} namespace${reset}"
kubectl apply -f ${KUBECTL_CONFIGS}/operator-example.deployment.yaml -n ${DEPLOY_NAMESPACE}