Skip to content

Commit 89cbe35

Browse files
synaretemergify[bot]
authored andcommitted
makefile: allow override KUBECTL_CMD
When (developer is) running over OpenShift cluster it is typical to use the OpenShift Client CLI (oc[1]) utility instead of kubectl. Allow her to override Makefile's KUBECTL_CMD. [1] https://github.com/openshift/oc Signed-off-by: Shachar Sharon <[email protected]>
1 parent f9fe1e4 commit 89cbe35

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ endif
2929

3030
GO_CMD:=go
3131
GOFMT_CMD:=gofmt
32-
KUBECTL_CMD:=kubectl
32+
KUBECTL_CMD?=kubectl
3333
BUILDAH_CMD:=buildah
3434
YAMLLINT_CMD:=yamllint
3535

devel.mk.sample

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ VERSION=0.0.1
77
# Run in developer mode
88
DEVELOPER=1
99

10+
# Use OpenShift's Client CLI
11+
# KUBECTL_CMD=oc
12+
1013
# Image URL to use all building/pushing image targets
1114
TAG=latest
1215
IMG=quay.io/quayusername/samba-operator:$(TAG)

0 commit comments

Comments
 (0)