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

Commit f01bc04

Browse files
committed
vendor: use glide as vendoring tool
1 parent 2db7f8b commit f01bc04

File tree

3 files changed

+536
-27
lines changed

3 files changed

+536
-27
lines changed

Makefile

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -53,34 +53,9 @@ conformance-%: clean all
5353
@sleep 30 # Give addons a little time to start
5454
@cd hack/$*-node && ./conformance-test.sh
5555

56-
#TODO(aaron): the k8s.io/client-go upstream package is a symlink with relative path. Making note because we change symlink path.
57-
# This will naively try and create a vendor dir from a k8s release
58-
# 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-
62-
VENDOR_VERSION = v1.6.1+coreos.0
63-
ETCD_OPERATOR_VERSION = v0.2.4
6456
vendor:
65-
@echo "Creating k8s vendor for: $(VENDOR_VERSION)"
66-
@rm -rf vendor
67-
@mkdir -p $@/k8s.io/kubernetes
68-
@git clone https://github.com/coreos/kubernetes $@/k8s.io/kubernetes > /dev/null 2>&1
69-
@cd $@/k8s.io/kubernetes && git checkout $(VENDOR_VERSION) > /dev/null 2>&1
70-
@cd $@/k8s.io/kubernetes && rm -rf docs examples hack cluster Godeps
71-
@cd $@/k8s.io/kubernetes/vendor && mv k8s.io/* $(abspath $@/k8s.io) && rmdir k8s.io
72-
@mv $@/k8s.io/kubernetes/vendor/* $(abspath $@)
73-
@cd $@/k8s.io/ && ln -sf kubernetes/staging/src/k8s.io/client-go client-go
74-
@cd $@/k8s.io/ && ln -sf kubernetes/staging/src/k8s.io/apimachinery apimachinery
75-
@cd $@/k8s.io/ && ln -sf kubernetes/staging/src/k8s.io/apiserver apiserver
76-
@rm -rf $@/k8s.io/kubernetes/vendor $@/k8s.io/kubernetes/.git
77-
@echo "vendoring etcd-operator spec: $(ETCD_OPERATOR_VERSION)"
78-
@git clone https://github.com/coreos/etcd-operator /tmp/etcd-operator > /dev/null 2>&1
79-
@cd /tmp/etcd-operator && git checkout $(ETCD_OPERATOR_VERSION) > /dev/null 2>&1
80-
@mkdir -p $@/github.com/coreos/etcd-operator/pkg/
81-
@cp -r /tmp/etcd-operator/pkg/spec $@/github.com/coreos/etcd-operator/pkg/
82-
@rm -rf /tmp/etcd-operator
83-
@git apply etcd-operator-vendor.patch
57+
@glide update --strip-vendor
58+
@glide-vc
8459

8560
clean:
8661
rm -rf _output

0 commit comments

Comments
 (0)