@@ -8,25 +8,14 @@ GOPATH_BIN:=$(shell echo ${GOPATH} | awk 'BEGIN { FS = ":" }; { print $1 }')/bin
88LDFLAGS =-X github.com/kubernetes-incubator/bootkube/pkg/version.Version=$(shell $(CURDIR ) /build/git-version.sh)
99
1010all : \
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
2415release : \
2516 clean \
26- patch \
2717 check \
2818 _output/release/bootkube.tar.gz \
29- unpatch
3019
3120check :
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+
7062VENDOR_VERSION = v1.6.1+coreos.0
7163ETCD_OPERATOR_VERSION = v0.2.4
7264vendor :
@@ -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
9285clean :
9386 rm -rf _output
0 commit comments