Skip to content
This repository was archived by the owner on Jul 30, 2021. It is now read-only.

Commit 2a3ae8a

Browse files
committed
Makefile: patch etcd-operator as part of vendoring process
1 parent 3523114 commit 2a3ae8a

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

Makefile

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,14 @@ GOPATH_BIN:=$(shell echo ${GOPATH} | awk 'BEGIN { FS = ":" }; { print $1 }')/bin
88
LDFLAGS=-X github.com/kubernetes-incubator/bootkube/pkg/version.Version=$(shell $(CURDIR)/build/git-version.sh)
99

1010
all: \
11-
patch \
1211
_output/bin/linux/bootkube \
1312
_output/bin/darwin/bootkube \
1413
_output/bin/linux/checkpoint \
15-
unpatch
16-
17-
patch:
18-
@echo "Patching etcd-operator vendor, this is a temporal fix for client-go vendor conflicts"
19-
@git apply etcd-operator-vendor.patch
20-
21-
unpatch:
22-
@git apply -R etcd-operator-vendor.patch
2314

2415
release: \
2516
clean \
26-
patch \
2717
check \
2818
_output/release/bootkube.tar.gz \
29-
unpatch
3019

3120
check:
3221
@find . -name vendor -prune -o -name '*.go' -exec gofmt -s -d {} +
@@ -67,6 +56,9 @@ conformance-%: clean all
6756
#TODO(aaron): the k8s.io/client-go upstream package is a symlink with relative path. Making note because we change symlink path.
6857
# This will naively try and create a vendor dir from a k8s release
6958
# USE: make vendor VENDOR_VERSION=vX.Y.Z
59+
60+
#TODO(aaron): Remove etcd-operator-vendor.patch once etcd-operator bumps client-go version
61+
7062
VENDOR_VERSION = v1.6.1+coreos.0
7163
ETCD_OPERATOR_VERSION = v0.2.4
7264
vendor:
@@ -88,6 +80,7 @@ vendor:
8880
@mkdir -p $@/github.com/coreos/etcd-operator/pkg/
8981
@cp -r /tmp/etcd-operator/pkg/spec $@/github.com/coreos/etcd-operator/pkg/
9082
@rm -rf /tmp/etcd-operator
83+
@git apply etcd-operator-vendor.patch
9184

9285
clean:
9386
rm -rf _output

0 commit comments

Comments
 (0)