Skip to content

Commit

Permalink
Merge pull request #66 from cybozu-go/kubernetes-1.15
Browse files Browse the repository at this point in the history
fix deployment apiversion and update components version
  • Loading branch information
morimoto-cybozu authored Aug 23, 2019
2 parents 494750d + d0eca61 commit 6d34ed4
Show file tree
Hide file tree
Showing 14 changed files with 70 additions and 27 deletions.
12 changes: 11 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ This project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]

## [1.1.5] - 2019-08-23

### Added
- "--version" flags to some commands (#66).

### Changed
- Update k8s.io/client-go to v12.0.0 (#65).
- Update etcd/clientv3 to 3.3.15 (#66).

## [1.1.4] - 2019-07-11

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

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

[Unreleased]: https://github.com/cybozu-go/coil/compare/v1.1.4...HEAD
[Unreleased]: https://github.com/cybozu-go/coil/compare/v1.1.5...HEAD
[1.1.5]: https://github.com/cybozu-go/coil/compare/v1.1.4...v1.1.5
[1.1.4]: https://github.com/cybozu-go/coil/compare/v1.1.3...v1.1.4
[1.1.3]: https://github.com/cybozu-go/coil/compare/v1.1.2...v1.1.3
[1.1.2]: https://github.com/cybozu-go/coil/compare/v1.1.1...v1.1.2
Expand Down
9 changes: 5 additions & 4 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,16 @@ Bump version
2. Checkout `master` branch.
3. Make a branch to release, for example by `git neco dev "$VERSION"`
4. Edit `CHANGELOG.md` for the new version ([example][]).
5. Commit the change and push it.
5. Edit `version.go` for the new version.
6. Commit the changes and push it.

```console
$ git commit -a -m "Bump version to $VERSION"
$ git neco review
```
6. Merge this branch.
7. Checkout `master` branch.
8. Add a git tag, then push it.
7. Merge this branch.
8. Checkout `master` branch.
9. Add a git tag, then push it.

```console
$ git tag "v$VERSION"
Expand Down
5 changes: 3 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@ module github.com/cybozu-go/coil
require (
github.com/containernetworking/cni v0.6.0
github.com/containernetworking/plugins v0.7.4
github.com/coreos/etcd v0.0.0-20190816232144-5cf5d88a18ae
github.com/coreos/etcd v3.3.15+incompatible
github.com/coreos/go-iptables v0.4.0 // indirect
github.com/cybozu-go/etcdutil v1.3.2
github.com/cybozu-go/etcdutil v1.3.3
github.com/cybozu-go/log v1.5.0
github.com/cybozu-go/netutil v1.2.0
github.com/cybozu-go/well v1.8.1
github.com/google/go-cmp v0.3.0
github.com/googleapis/gnostic v0.2.0 // indirect
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/mitchellh/go-homedir v1.0.0
github.com/mitchellh/mapstructure v1.0.0
github.com/onsi/ginkgo v1.8.0
Expand Down
8 changes: 4 additions & 4 deletions mtest/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ endif
PLACEMAT = /usr/bin/placemat
GINKGO = env GOFLAGS=-mod=vendor $(GOPATH)/bin/ginkgo
CURL = curl -fsL
MANAGEMENT_ETCD_VERSION = 3.3.14
VAULT_VERSION = 1.0.2
K8S_VERSION = 1.14.1
MANAGEMENT_ETCD_VERSION = 3.3.15
VAULT_VERSION = 1.2.2
K8S_VERSION = 1.15.3
PLACEMAT_DATADIR = /var/scratch/placemat
VM_SHARED_DIR = /mnt/placemat
CONTAINERD_VERSION = 1.2.7
CRITOOLS_VERSION = 1.14.0
CRITOOLS_VERSION = 1.15.0
CT_VERSION = 0.9.0
CT = /usr/local/bin/ct
SUDO = sudo
Expand Down
2 changes: 1 addition & 1 deletion mtest/pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ func TestPod() {
coilctlSafe("pool", "show", "--json", "default", addressPool)

By("creating 4 pods to node1")
overrides := fmt.Sprintf(`{ "apiVersion": "apps/v1beta1", "spec": { "template": { "spec": { "nodeSelector": { "kubernetes.io/hostname": "%s" } } } } }`, node1)
overrides := fmt.Sprintf(`{ "apiVersion": "apps/v1", "spec": { "template": { "spec": { "nodeSelector": { "kubernetes.io/hostname": "%s" } } } } }`, node1)
overrideFile := remoteTempFile(overrides)
_, stderr, err := kubectl("run", "nginx", "--image=nginx", "--replicas=4", "--overrides=\"$(cat "+overrideFile+")\"")
Expect(err).NotTo(HaveOccurred(), "stderr: %s", stderr)
Expand Down
2 changes: 1 addition & 1 deletion mtest/setup-cke.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

VAULT=/data/vault
CKECLI=/opt/bin/ckecli
CKE_VERSION=1.14.0-rc1
CKE_VERSION=1.15.0-rc.1

if [ ! -f /usr/bin/jq ]; then
echo "please wait; cloud-init will install jq."
Expand Down
5 changes: 3 additions & 2 deletions pkg/coil-controller/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ var etcdConfig *etcdutil.Config

// rootCmd represents the base command when called without any subcommands
var rootCmd = &cobra.Command{
Use: "coil-controller",
Short: "A kubernetes controller for coil",
Use: "coil-controller",
Version: coil.Version,
Short: "A kubernetes controller for coil",
Long: `coil-controller is a Kubernetes controller to maintain coil resources.
It should be deployed as a Deployment pod in Kunernetes.
Expand Down
5 changes: 3 additions & 2 deletions pkg/coilctl/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ var etcdConfig *etcdutil.Config

// rootCmd represents the base command when called without any subcommands
var rootCmd = &cobra.Command{
Use: "coilctl",
Short: "control and show coil settings",
Use: "coilctl",
Version: coil.Version,
Short: "control and show coil settings",
Long: `coilctl is a command-line tool to control and show coil settings.
It directly communicates with etcd. You need to prepare a
Expand Down
5 changes: 3 additions & 2 deletions pkg/coild/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,9 @@ var etcdConfig *etcdutil.Config

// rootCmd represents the base command when called without any subcommands
var rootCmd = &cobra.Command{
Use: "coild",
Short: "Backend service to allocate IP address",
Use: "coild",
Version: coil.Version,
Short: "Backend service to allocate IP address",
Long: `coild is a backend service to allocate IP address.
It normally run as a DaemonSet container in Kubernetes.
Expand Down
7 changes: 6 additions & 1 deletion vendor/github.com/cybozu-go/etcdutil/CHANGELOG.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions vendor/github.com/cybozu-go/etcdutil/flags.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 20 additions & 1 deletion vendor/github.com/cybozu-go/etcdutil/go.mod

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ github.com/containernetworking/plugins/pkg/ipam
github.com/containernetworking/plugins/pkg/ns
github.com/containernetworking/plugins/pkg/utils/hwaddr
github.com/containernetworking/plugins/pkg/utils/sysctl
# github.com/coreos/etcd v0.0.0-20190816232144-5cf5d88a18ae
# github.com/coreos/etcd v3.3.15+incompatible
github.com/coreos/etcd/clientv3
github.com/coreos/etcd/clientv3/clientv3util
github.com/coreos/etcd/clientv3/namespace
Expand All @@ -35,7 +35,7 @@ github.com/coreos/go-iptables/iptables
github.com/coreos/go-systemd/journal
# github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f
github.com/coreos/pkg/capnslog
# github.com/cybozu-go/etcdutil v1.3.2
# github.com/cybozu-go/etcdutil v1.3.3
github.com/cybozu-go/etcdutil
# github.com/cybozu-go/log v1.5.0
github.com/cybozu-go/log
Expand Down
4 changes: 4 additions & 0 deletions version.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package coil

// Version represents the version of coil
const Version = "1.1.5"

0 comments on commit 6d34ed4

Please sign in to comment.