-
Notifications
You must be signed in to change notification settings - Fork 64
/
Copy pathProw.mk
31 lines (23 loc) · 1.21 KB
/
Prow.mk
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
# prow-control-plane chart handling
PROW_GIT_TAG=76cde35b3daed08dadee9360165a220952f4e49c
PROW_UPSTREAM_REPO=test-infra
PROW_CLONE_URL=https://github.com/kubernetes/$(PROW_UPSTREAM_REPO).git
GIT_CHECKOUT_TARGET?=$(PROW_UPSTREAM_REPO)/eks-distro-checkout-$(PROW_GIT_TAG)
GIT_PATCH_TARGET?=$(PROW_UPSTREAM_REPO)/eks-distro-patched
PATCHES_DIR=$(CHART_ROOT)/patches/prow-control-plane
$(PROW_UPSTREAM_REPO):
git clone $(PROW_CLONE_URL) $(PROW_UPSTREAM_REPO)
$(GIT_CHECKOUT_TARGET): | $(PROW_UPSTREAM_REPO)
@rm -f $(PROW_UPSTREAM_REPO)/eks-distro-*
git -C $(PROW_UPSTREAM_REPO) checkout -f $(PROW_GIT_TAG)
touch $@
$(GIT_PATCH_TARGET): $(GIT_CHECKOUT_TARGET)
git -C $(PROW_UPSTREAM_REPO) config user.email prow@amazonaws.com
git -C $(PROW_UPSTREAM_REPO) config user.name "Prow Bot"
git -C $(PROW_UPSTREAM_REPO) am --committer-date-is-author-date $(PATCHES_DIR)/*
@touch $@
# Copy only template files we care about from upstream into place
prepare-prow-control-plane: $(GIT_PATCH_TARGET)
rsync -a $(PROW_UPSTREAM_REPO)/config/prow/cluster --files-from=$(CHART_ROOT)/scripts/prow-control-plane-upstream-template-files $(CHART_ROOT)/stable/prow-control-plane/templates
clean-test-infra:
rm -rf $(CHART_ROOT)/$(PROW_UPSTREAM_REPO)