Skip to content

Commit

Permalink
Update images (#1441)
Browse files Browse the repository at this point in the history
* Update images used by Prow jobs

Signed-off-by: Marko Mudrinić <mudrinic.mare@gmail.com>

* Replace deprecated linters

Signed-off-by: Marko Mudrinić <mudrinic.mare@gmail.com>

* Fix linter errors after updating linters

Signed-off-by: Marko Mudrinić <mudrinic.mare@gmail.com>

* kubeone-e2e: Go 1.16.7, remove k8s 1.18 binaries and add 1.22 binaries

Signed-off-by: Marko Mudrinić <mudrinic.mare@gmail.com>
  • Loading branch information
xmudrii authored Aug 13, 2021
1 parent 339e48a commit 5998261
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 34 deletions.
4 changes: 2 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,19 @@ linters:
- bodyclose
- deadcode
- errcheck
- exportloopref
- goconst
- gocritic
- gocyclo
- gofmt
- goimports
- golint
- gosec
- gosimple
- govet
- ineffassign
- misspell
- nakedret
- scopelint
- revive
- staticcheck
- structcheck
- stylecheck
Expand Down
21 changes: 10 additions & 11 deletions .prow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ presubmits:
preset-goproxy: "true"
spec:
containers:
- image: golang:1.16.1
- image: golang:1.16.7
command:
- make
args:
Expand All @@ -44,7 +44,7 @@ presubmits:
preset-goproxy: "true"
spec:
containers:
- image: quay.io/kubermatic/wwhrd:0.4.0-1
- image: quay.io/kubermatic/wwhrd:0.4.0-2
command:
- make
args:
Expand All @@ -64,7 +64,7 @@ presubmits:
preset-goproxy: "true"
spec:
containers:
- image: golang:1.16.1
- image: golang:1.16.7
command:
- make
args:
Expand All @@ -84,7 +84,7 @@ presubmits:
preset-goproxy: "true"
spec:
containers:
- image: golang:1.16.1
- image: golang:1.16.7
command:
- make
args:
Expand All @@ -104,7 +104,7 @@ presubmits:
preset-goproxy: "true"
spec:
containers:
- image: golangci/golangci-lint:v1.38.0
- image: golangci/golangci-lint:v1.41.1
command:
- make
args:
Expand Down Expand Up @@ -1184,7 +1184,7 @@ presubmits:
- name: KUBEONE_TEST_RUN
value: "TestClusterUpgrade"
postsubmits:
- name: ci-push-kubeone-e2e-image
- name: post-kubeone-push-e2e-image
run_if_changed: "(hack/images/kubeone-e2e)"
clone_uri: "ssh://git@github.com/kubermatic/kubeone.git"
decorate: true
Expand All @@ -1194,16 +1194,15 @@ postsubmits:
preset-docker-push: "true"
spec:
containers:
- image: quay.io/kubermatic/go-docker:16.1-1903-0
- image: quay.io/kubermatic/build:go-1.16-node-14-kind-0.11-1
command:
- /bin/bash
- -c
- |
set -euo pipefail
/usr/local/bin/entrypoint.sh && \
docker login -u $DOCKERHUB_USERNAME -p $DOCKERHUB_PASSWORD && \
cd ./hack/images/kubeone-e2e && \
start-docker.sh
docker login -u $DOCKERHUB_USERNAME -p $DOCKERHUB_PASSWORD
cd ./hack/images/kubeone-e2e
./release.sh
# docker-in-docker needs privileged mode
securityContext:
Expand Down
6 changes: 3 additions & 3 deletions hack/images/kubeone-e2e/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@

# building image

FROM golang:1.16.5 as builder
FROM golang:1.16.7 as builder

RUN apt-get update && apt-get install -y \
unzip \
upx-ucl

ENV TERRAFORM_VERSION "1.0.0"
ENV TERRAFORM_VERSION "1.0.4"
RUN curl -fL https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip | funzip >/usr/local/bin/terraform
RUN chmod +x /usr/local/bin/terraform

Expand All @@ -37,7 +37,7 @@ RUN /opt/install-kube-tests-binaries.sh

# resulting image

FROM golang:1.16.5
FROM golang:1.16.7

ARG version

Expand Down
8 changes: 4 additions & 4 deletions hack/images/kubeone-e2e/install-kube-tests-binaries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
set -euox pipefail

declare -A full_versions
full_versions["1.18"]="v1.18.17"
full_versions["1.19"]="v1.19.9"
full_versions["1.20"]="v1.20.5"
full_versions["1.21"]="v1.21.0"
full_versions["1.19"]="v1.19.14"
full_versions["1.20"]="v1.20.10"
full_versions["1.21"]="v1.21.4"
full_versions["1.22"]="v1.22.0"

root_dir=${KUBETESTS_ROOT:-"/opt/kube-test"}
tmp_root=${TMP_ROOT:-"/tmp/get-kube"}
Expand Down
2 changes: 1 addition & 1 deletion hack/images/kubeone-e2e/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

set -euox pipefail

TAG=v0.1.16
TAG=v0.1.17

docker build --build-arg version=${TAG} --pull -t kubermatic/kubeone-e2e:${TAG} .
docker push kubermatic/kubeone-e2e:${TAG}
11 changes: 2 additions & 9 deletions pkg/apis/kubeone/v1alpha1/conversion.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,18 +132,11 @@ func Convert_kubeone_CloudProviderSpec_To_v1alpha1_CloudProviderSpec(in *kubeone
}

func Convert_kubeone_ClusterNetworkConfig_To_v1alpha1_ClusterNetworkConfig(in *kubeoneapi.ClusterNetworkConfig, out *ClusterNetworkConfig, s conversion.Scope) error {
if err := autoConvert_kubeone_ClusterNetworkConfig_To_v1alpha1_ClusterNetworkConfig(in, out, s); err != nil {
return err
}
return nil
return autoConvert_kubeone_ClusterNetworkConfig_To_v1alpha1_ClusterNetworkConfig(in, out, s)
}

func Convert_v1alpha1_ClusterNetworkConfig_To_kubeone_ClusterNetworkConfig(in *ClusterNetworkConfig, out *kubeoneapi.ClusterNetworkConfig, s conversion.Scope) error {
if err := autoConvert_v1alpha1_ClusterNetworkConfig_To_kubeone_ClusterNetworkConfig(in, out, s); err != nil {
return err
}

return nil
return autoConvert_v1alpha1_ClusterNetworkConfig_To_kubeone_ClusterNetworkConfig(in, out, s)
}

func Convert_v1alpha1_HostConfig_To_kubeone_HostConfig(in *HostConfig, out *kubeoneapi.HostConfig, s conversion.Scope) error {
Expand Down
5 changes: 1 addition & 4 deletions pkg/features/podnodeselector.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,8 @@ func installPodNodeSelector(ctx context.Context, c client.Client, feature *kubeo
if err := annotateKubeSystemNamespace(ctx, c); err != nil {
return err
}
if err := deletePendingPods(ctx, c); err != nil {
return err
}

return nil
return deletePendingPods(ctx, c)
}

// annotateKubeSystemNamespace adds the scheduler.alpha.kubernetes.io/node-selector: ""
Expand Down

0 comments on commit 5998261

Please sign in to comment.