Skip to content

Commit 6d34ed4

Browse files
Merge pull request #66 from cybozu-go/kubernetes-1.15
fix deployment apiversion and update components version
2 parents 494750d + d0eca61 commit 6d34ed4

File tree

14 files changed

+70
-27
lines changed

14 files changed

+70
-27
lines changed

CHANGELOG.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@ This project adheres to [Semantic Versioning](http://semver.org/).
55

66
## [Unreleased]
77

8+
## [1.1.5] - 2019-08-23
9+
10+
### Added
11+
- "--version" flags to some commands (#66).
12+
13+
### Changed
14+
- Update k8s.io/client-go to v12.0.0 (#65).
15+
- Update etcd/clientv3 to 3.3.15 (#66).
16+
817
## [1.1.4] - 2019-07-11
918

1019
Just bump version because v1.1.3 is accidentally unreleased.
@@ -94,7 +103,8 @@ This is the first release
94103

95104
- Implement CNI plugin, coild, coilctl and coil-controller
96105

97-
[Unreleased]: https://github.com/cybozu-go/coil/compare/v1.1.4...HEAD
106+
[Unreleased]: https://github.com/cybozu-go/coil/compare/v1.1.5...HEAD
107+
[1.1.5]: https://github.com/cybozu-go/coil/compare/v1.1.4...v1.1.5
98108
[1.1.4]: https://github.com/cybozu-go/coil/compare/v1.1.3...v1.1.4
99109
[1.1.3]: https://github.com/cybozu-go/coil/compare/v1.1.2...v1.1.3
100110
[1.1.2]: https://github.com/cybozu-go/coil/compare/v1.1.1...v1.1.2

RELEASE.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,16 @@ Bump version
3737
2. Checkout `master` branch.
3838
3. Make a branch to release, for example by `git neco dev "$VERSION"`
3939
4. Edit `CHANGELOG.md` for the new version ([example][]).
40-
5. Commit the change and push it.
40+
5. Edit `version.go` for the new version.
41+
6. Commit the changes and push it.
4142

4243
```console
4344
$ git commit -a -m "Bump version to $VERSION"
4445
$ git neco review
4546
```
46-
6. Merge this branch.
47-
7. Checkout `master` branch.
48-
8. Add a git tag, then push it.
47+
7. Merge this branch.
48+
8. Checkout `master` branch.
49+
9. Add a git tag, then push it.
4950

5051
```console
5152
$ git tag "v$VERSION"

go.mod

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@ module github.com/cybozu-go/coil
33
require (
44
github.com/containernetworking/cni v0.6.0
55
github.com/containernetworking/plugins v0.7.4
6-
github.com/coreos/etcd v0.0.0-20190816232144-5cf5d88a18ae
6+
github.com/coreos/etcd v3.3.15+incompatible
77
github.com/coreos/go-iptables v0.4.0 // indirect
8-
github.com/cybozu-go/etcdutil v1.3.2
8+
github.com/cybozu-go/etcdutil v1.3.3
99
github.com/cybozu-go/log v1.5.0
1010
github.com/cybozu-go/netutil v1.2.0
1111
github.com/cybozu-go/well v1.8.1
1212
github.com/google/go-cmp v0.3.0
1313
github.com/googleapis/gnostic v0.2.0 // indirect
14+
github.com/inconshreveable/mousetrap v1.0.0 // indirect
1415
github.com/mitchellh/go-homedir v1.0.0
1516
github.com/mitchellh/mapstructure v1.0.0
1617
github.com/onsi/ginkgo v1.8.0

mtest/Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ endif
1414
PLACEMAT = /usr/bin/placemat
1515
GINKGO = env GOFLAGS=-mod=vendor $(GOPATH)/bin/ginkgo
1616
CURL = curl -fsL
17-
MANAGEMENT_ETCD_VERSION = 3.3.14
18-
VAULT_VERSION = 1.0.2
19-
K8S_VERSION = 1.14.1
17+
MANAGEMENT_ETCD_VERSION = 3.3.15
18+
VAULT_VERSION = 1.2.2
19+
K8S_VERSION = 1.15.3
2020
PLACEMAT_DATADIR = /var/scratch/placemat
2121
VM_SHARED_DIR = /mnt/placemat
2222
CONTAINERD_VERSION = 1.2.7
23-
CRITOOLS_VERSION = 1.14.0
23+
CRITOOLS_VERSION = 1.15.0
2424
CT_VERSION = 0.9.0
2525
CT = /usr/local/bin/ct
2626
SUDO = sudo

mtest/pod.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ func TestPod() {
220220
coilctlSafe("pool", "show", "--json", "default", addressPool)
221221

222222
By("creating 4 pods to node1")
223-
overrides := fmt.Sprintf(`{ "apiVersion": "apps/v1beta1", "spec": { "template": { "spec": { "nodeSelector": { "kubernetes.io/hostname": "%s" } } } } }`, node1)
223+
overrides := fmt.Sprintf(`{ "apiVersion": "apps/v1", "spec": { "template": { "spec": { "nodeSelector": { "kubernetes.io/hostname": "%s" } } } } }`, node1)
224224
overrideFile := remoteTempFile(overrides)
225225
_, stderr, err := kubectl("run", "nginx", "--image=nginx", "--replicas=4", "--overrides=\"$(cat "+overrideFile+")\"")
226226
Expect(err).NotTo(HaveOccurred(), "stderr: %s", stderr)

mtest/setup-cke.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
VAULT=/data/vault
44
CKECLI=/opt/bin/ckecli
5-
CKE_VERSION=1.14.0-rc1
5+
CKE_VERSION=1.15.0-rc.1
66

77
if [ ! -f /usr/bin/jq ]; then
88
echo "please wait; cloud-init will install jq."

pkg/coil-controller/cmd/root.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ var etcdConfig *etcdutil.Config
2929

3030
// rootCmd represents the base command when called without any subcommands
3131
var rootCmd = &cobra.Command{
32-
Use: "coil-controller",
33-
Short: "A kubernetes controller for coil",
32+
Use: "coil-controller",
33+
Version: coil.Version,
34+
Short: "A kubernetes controller for coil",
3435
Long: `coil-controller is a Kubernetes controller to maintain coil resources.
3536
3637
It should be deployed as a Deployment pod in Kunernetes.

pkg/coilctl/cmd/root.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,9 @@ var etcdConfig *etcdutil.Config
4040

4141
// rootCmd represents the base command when called without any subcommands
4242
var rootCmd = &cobra.Command{
43-
Use: "coilctl",
44-
Short: "control and show coil settings",
43+
Use: "coilctl",
44+
Version: coil.Version,
45+
Short: "control and show coil settings",
4546
Long: `coilctl is a command-line tool to control and show coil settings.
4647
4748
It directly communicates with etcd. You need to prepare a

pkg/coild/cmd/root.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,9 @@ var etcdConfig *etcdutil.Config
5454

5555
// rootCmd represents the base command when called without any subcommands
5656
var rootCmd = &cobra.Command{
57-
Use: "coild",
58-
Short: "Backend service to allocate IP address",
57+
Use: "coild",
58+
Version: coil.Version,
59+
Short: "Backend service to allocate IP address",
5960
Long: `coild is a backend service to allocate IP address.
6061
6162
It normally run as a DaemonSet container in Kubernetes.

vendor/github.com/cybozu-go/etcdutil/CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)