-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
38 lines (29 loc) · 1.17 KB
/
Makefile
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
# GKE cluster variables
PROJECT ?= spiffxp-gke-dev
ZONE ?= us-central1-f
CLUSTER ?= prow
# prow docker image variables
REPO ?= gcr.io/k8s-prow
TAG ?= v20200423-af610499d
CWD = $(shell pwd)
get-cluster-credentials:
gcloud container clusters get-credentials $(CLUSTER) --project=$(PROJECT) --zone=$(ZONE)
.PHONY: get-cluster-credentials
update-config: get-cluster-credentials check-config
kubectl create configmap config --from-file=config.yaml=$(CWD)/config/prow/config.yaml --dry-run -o yaml | kubectl replace configmap config -f -
update-plugins: get-cluster-credentials check-config
kubectl create configmap plugins --from-file=plugins.yaml=$(CWD)/config/prow/plugins.yaml --dry-run -o yaml | kubectl replace configmap plugins -f -
.PHONY: update-config update-plugins
check-config:
docker run -v $(CWD)/config/prow:/prow $(REPO)/checkconfig:$(TAG) \
--config-path /prow/config.yaml \
--plugin-config /prow/plugins.yaml \
--strict \
--warnings=mismatched-tide-lenient \
--warnings=tide-strict-branch \
--warnings=needs-ok-to-test \
--warnings=validate-owners \
--warnings=missing-trigger \
--warnings=validate-urls \
--warnings=unknown-fields
.PHONY: check-config