Skip to content

Commit fe62302

Browse files
authored
Merge pull request #26 from Mirantis/ivan4th/k8s-1.12
Add k8s 1.12 support
2 parents 7898623 + 144dc04 commit fe62302

19 files changed

+2545
-2099
lines changed

.circleci/config.yml

+14
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,11 @@ jobs:
8484
environment:
8585
K8S_VERSION: "1.11"
8686

87+
deployment-test-1.12:
88+
<<: *deployment_test
89+
environment:
90+
K8S_VERSION: "1.12"
91+
8792
workflows:
8893
version: 2
8994
build-test-and-publish:
@@ -118,13 +123,22 @@ workflows:
118123
only: /^v.*/
119124
branches:
120125
only: /.*/
126+
- deployment-test-1.12:
127+
requires:
128+
- build
129+
filters:
130+
tags:
131+
only: /^v.*/
132+
branches:
133+
only: /.*/
121134

122135
- publish:
123136
requires:
124137
- build
125138
- deployment-test-1.9
126139
- deployment-test-1.10
127140
- deployment-test-1.11
141+
- deployment-test-1.12
128142
filters:
129143
tags:
130144
only: /v.*/

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ same node and run CRI implementations inside pods. CRI Proxy is
55
currently used by [Virtlet](https://github.com/Mirantis/virtlet)
66
project but it can be used by other CRI implementations, too.
77

8-
It supports Kubernetes versions 1.8.x, 1.9.x, 1.10.x and 1.11.x.
8+
It supports Kubernetes versions 1.9.x through 1.12.x.
99

1010
## Installation
1111

hack/update.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ set -o nounset
44
set -o pipefail
55
set -o errtrace
66

7-
TARGET_PKGS=(v1_9 v1_10)
8-
K8S_TAGS=(v1.9.7 v1.10.2)
7+
TARGET_PKGS=(v1_9 v1_12)
8+
K8S_TAGS=(v1.9.11 v1.12.3)
99
SUBDIRS=(pkg/kubelet/apis/cri/v1alpha1/runtime pkg/kubelet/apis/cri/runtime/v1alpha2)
1010
FILES=(api.pb.go api.proto constants.go)
1111

@@ -35,5 +35,5 @@ sed -i 's@^\(type StorageIdentifier struct\)@/* +k8s:conversion-gen=false */ \1@
3535
go fmt pkg/runtimeapis/v1_9/api.pb.go
3636

3737
tar --exclude='vendor' --exclude='.git' -c . |
38-
docker run --rm -i ishvedunov/criproxy-build:0.0.4 \
38+
docker run --rm -i ishvedunov/criproxy-build:0.0.6 \
3939
/bin/bash -c 'cd /go/src/github.com/Mirantis/criproxy && tar -x && hack/generate.sh && tar -c $(find . -name "*_generated.go")' | tar -xv

main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ var (
4343
streamPort = flag.Int("streamPort", 11250, "streaming port of the default runtime")
4444
streamUrl = flag.String("streamUrl", "", "streaming url of the default runtime (-streamPort is ignored if this value is set)")
4545
apiServerHost = flag.String("apiserver", "", "apiserver URL")
46-
criVersions = []proxy.CRIVersion{&proxy.CRI19{}, &proxy.CRI110{}}
46+
criVersions = []proxy.CRIVersion{&proxy.CRI19{}, &proxy.CRI112{}}
4747
)
4848

4949
// runCriProxy starts CRI proxy

0 commit comments

Comments
 (0)