Skip to content

Commit

Permalink
Add support for k8s 1.12
Browse files Browse the repository at this point in the history
k8s 1.12 is already mostly supported, but we need to use a newer
version of CRI Proxy to handle new CRI fields like runtimeHandler.
  • Loading branch information
Ivan Shvedunov committed Dec 7, 2018
1 parent fa616f8 commit 3583b3b
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 23 deletions.
23 changes: 5 additions & 18 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,8 @@ e2e: &e2e
elif [[ ${CIRCLE_JOB} = e2e_multi_cni ]]; then
export MULTI_CNI=1
echo >&2 "*** Using multiple CNIs (flannel + calico)"
elif [[ ${CIRCLE_JOB} = e2e_1_9 ]]; then
export KUBE_VERSION=1.9
elif [[ ${CIRCLE_JOB} = e2e_1_10 ]]; then
export KUBE_VERSION=1.10
elif [[ ${CIRCLE_JOB} = e2e_1_11 ]]; then
export KUBE_VERSION=1.11
fi
# APISERVER_PORT is set explicitly to avoid dynamic allocation
# of the port by kdc
Expand Down Expand Up @@ -387,10 +385,7 @@ jobs:
e2e_multi_cni:
<<: *e2e

# e2e_1_9:
# <<: *e2e

e2e_1_10:
e2e_1_11:
<<: *e2e

push_branch:
Expand Down Expand Up @@ -493,14 +488,7 @@ workflows:
tags:
only:
- /^v[0-9].*/
# - e2e_1_9:
# requires:
# - build
# filters:
# tags:
# only:
# - /^v[0-9].*/
- e2e_1_10:
- e2e_1_11:
requires:
- build
filters:
Expand All @@ -522,8 +510,7 @@ workflows:
- e2e_flannel
- e2e_weave
- e2e_multi_cni
# - e2e_1_9
- e2e_1_10
- e2e_1_11
- integration
filters:
branches:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ The demo script will check for KVM support on the host and will make Virtlet use

The demo is based on [kubeadm-dind-cluster](https://github.com/kubernetes-sigs/kubeadm-dind-cluster) project. **Docker btrfs storage driver is currently unsupported.** Please refer to `kubeadm-dind-cluster` documentation for more info.

You can remove the test cluster with `./dind-cluster-v1.11.sh clean` when you no longer need it.
You can remove the test cluster with `./dind-cluster-v1.12.sh clean` when you no longer need it.

## External projects using Virtlet
There are some external projects using Virtlet already.
Expand Down
2 changes: 1 addition & 1 deletion build/cmd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -o nounset
set -o pipefail
set -o errtrace

CRIPROXY_DEB_URL="${CRIPROXY_DEB_URL:-https://github.com/Mirantis/criproxy/releases/download/v0.12.0/criproxy-nodeps_0.12.0_amd64.deb}"
CRIPROXY_DEB_URL="${CRIPROXY_DEB_URL:-https://546-109821784-gh.circle-artifacts.com/0/criproxy/criproxy-nodeps_0.13.0-1_amd64.deb}"
VIRTLET_IMAGE="${VIRTLET_IMAGE:-mirantis/virtlet}"
VIRTLET_SKIP_RSYNC="${VIRTLET_SKIP_RSYNC:-}"
VIRTLET_RSYNC_PORT="${VIRTLET_RSYNC_PORT:-18730}"
Expand Down
4 changes: 2 additions & 2 deletions deploy/demo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ set -o nounset
set -o pipefail
set -o errtrace

KUBE_VERSION="${KUBE_VERSION:-1.11}"
CRIPROXY_DEB_URL="${CRIPROXY_DEB_URL:-https://github.com/Mirantis/criproxy/releases/download/v0.13.0/criproxy-nodeps_0.13.0_amd64.deb}"
KUBE_VERSION="${KUBE_VERSION:-1.12}"
CRIPROXY_DEB_URL="${CRIPROXY_DEB_URL:-https://546-109821784-gh.circle-artifacts.com/0/criproxy/criproxy-nodeps_0.13.0-1_amd64.deb}"
NONINTERACTIVE="${NONINTERACTIVE:-}"
NO_VM_CONSOLE="${NO_VM_CONSOLE:-}"
INJECT_LOCAL_IMAGE="${INJECT_LOCAL_IMAGE:-}"
Expand Down
2 changes: 1 addition & 1 deletion examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ for testing, you can use this command to start the cluster with
FEATURE_GATES="BlockVolume=true" \
KUBELET_FEATURE_GATES="BlockVolume=true" \
ENABLE_CEPH=1 \
./dind-cluster-v1.11.sh up
./dind-cluster-v1.12.sh up
```

[ubuntu-vm-local-block-pv.yaml](ubuntu-vm-local-block-pv.yaml)
Expand Down

0 comments on commit 3583b3b

Please sign in to comment.