@@ -3,6 +3,7 @@ VERSION ?= $(shell git describe --tags --always --dirty="-dev")
33IMG ?= quay.io/lwolf/konsumerator:$(VERSION )
44# Produce CRDs that work back to Kubernetes 1.11 (no version conversion)
55CRD_OPTIONS ?= "crd:trivialVersions=true"
6+ KUBECTL ?= "kubectl"
67
78# for some reason travis-ci calls `make` on each step which triggers download
89# of all packages. This check disables it.
@@ -29,12 +30,12 @@ run: generate fmt vet
2930
3031# Install CRDs into a cluster
3132install : manifests
32- kubectl apply -f config/crd/bases
33+ ${KUBECTL} apply -f config/crd/bases
3334
3435# Deploy controller in the configured Kubernetes cluster in ~/.kube/config
3536deploy : manifests
36- kubectl apply -f config/crd/bases
37- kustomize build config/default | kubectl apply -f -
37+ # $(KUBECTL) apply -f config/crd/bases
38+ kustomize build config/default | $( KUBECTL ) apply -f -
3839
3940# Generate manifests e.g. CRD, RBAC etc.
4041manifests : bin/controller-gen
@@ -82,8 +83,8 @@ kind-load-image:
8283kind-update : docker-build kind-load-image deploy
8384
8485kind-apply :
85- kubectl --context=kind-konsumerator apply -f ./hack/ci/prom.yaml -n kube-system
86- kubectl --context=kind-konsumerator apply -f ./hack/ci/konsumerator-dashboard.yaml -n kube-system
87- kubectl --context=kind-konsumerator apply -f ./hack/ci/konsumerator-overview-dashboard.yaml -n kube-system
88- kubectl --context=kind-konsumerator apply -f ./hack/ci/grafana.yaml -n kube-system
86+ $( KUBECTL ) --context=kind-konsumerator apply -f ./hack/ci/prom.yaml -n kube-system
87+ $( KUBECTL ) --context=kind-konsumerator apply -f ./hack/ci/konsumerator-dashboard.yaml -n kube-system
88+ $( KUBECTL ) --context=kind-konsumerator apply -f ./hack/ci/konsumerator-overview-dashboard.yaml -n kube-system
89+ $( KUBECTL ) --context=kind-konsumerator apply -f ./hack/ci/grafana.yaml -n kube-system
8990
0 commit comments