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

Commit 20cf8b9

Browse files
authored
Merge pull request #465 from aaronlevy/glide-vendor
Switch to glide for vendoring & bump k8s v1.62 & client-go v3.0.0-beta.0
2 parents cf89a6d + fa8bf09 commit 20cf8b9

File tree

9,430 files changed

+89877
-1835270
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

9,430 files changed

+89877
-1835270
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

RELEASING.md

Lines changed: 24 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,29 @@
11
# Preparing a bootkube release
22

3-
### Update kubernetes vendor code
3+
## Updating Kubernetes Version
44

5-
- Bump `VENDOR_VERSION` in `Makefile`
6-
- Run `make vendor`
5+
### Updating Kubernetes vendor code
76

8-
### Update hyperkube image
7+
Vendoring currently relies on the [glide](https://github.com/Masterminds/glide) and [glide-vc](https://github.com/sgotti/glide-vc) tools.
98

10-
- Update hyperkube image version in templates: `pkg/asset/internal/templates.go`
11-
- Update on-host kubelet versions (`KUBELET_IMAGE_TAG`)
12-
- hack/multi-node/user-data.sample
13-
- hack/single-node/user-data.sample
14-
- hack/quickstart/kubelet.master
15-
- hack/quickstart/kubelet.worker
9+
- Update pinned versions in `glide.yaml`
10+
- Run `make vendor`
1611

17-
### Update conformance test k8s version
12+
### Updating hyperkube image / Kubernetes version
1813

19-
- hack/tests/conformance-test.sh (`CONFORMANCE_VERSION`)
14+
- Update hyperkube image for manifests in templates:
15+
- `pkg/asset/internal/templates.go`
16+
- Update conformance test version: (`CONFORMANCE_VERSION`)
17+
- `hack/tests/conformance-test.sh`
18+
- Update on-host kubelet versions (`KUBELET_IMAGE_TAG`)
19+
- `hack/multi-node/user-data.sample`
20+
- `hack/single-node/user-data.sample`
21+
- `hack/quickstart/kubelet.master`
22+
- `hack/quickstart/kubelet.worker`
2023

21-
### Run conformance test
24+
## Run conformance test
2225

23-
Easiest is to use internal jenkins jobs [bootkube-development](https://jenkins.coreos.systems/job/bootkube-development/)
26+
Easiest is to use internal jenkins job: [bootkube-development](https://jenkins.coreos.systems/job/bootkube-development/)
2427

2528
Or, manually:
2629

@@ -48,25 +51,30 @@ git push origin vX.Y.Z
4851

4952
### Cut a release image
5053

51-
Easiest is to use internal jenkins jobs (`bootkube-release`using release tag). This job will push the image to the quay.io/coreos/bootkube repo, and archive a tarball of binary releases (manually upload to github release)
54+
Easiest is to use internal jenkins job: [bootkube-release](https://jenkins.coreos.systems/view/Kubernetes/job/bootkube-release/).
55+
This job will push the image to the quay.io/coreos/bootkube repo, and archive a tarball of binary releases (manually upload to github release)
5256

5357
Or, manually:
5458

5559
```
5660
git checkout vX.Y.Z
61+
make release
5762
PUSH_IMAGE=true ./build/build-image.sh
5863
```
64+
5965
# Updating checkpointer
6066

6167
This only needs to happen when changes have been made to the checkpointer code / container.
6268

6369
### Build a new checkpointer image
6470

65-
Easiest is to use internal jenkin jobs
71+
Easiest is to use internal jenkin job: [checkpointer-release](https://jenkins.coreos.systems/view/Kubernetes/job/checkpointer-release/)
6672

6773
Or, manually:
6874

6975
```
76+
git checkout master # Checkpointer releases should only be built from commits reachable by master
77+
make release
7078
BUILD_IMAGE=checkpoint PUSH_IMAGE=true ./build/build-image.sh
7179
```
7280

etcd-operator-vendor.patch

Lines changed: 0 additions & 62 deletions
This file was deleted.

0 commit comments

Comments
 (0)