Skip to content

Commit

Permalink
Upgrade to Go 1.21.3 (#325)
Browse files Browse the repository at this point in the history
Signed-off-by: Waleed Malik <ahmedwaleedmalik@gmail.com>
  • Loading branch information
ahmedwaleedmalik committed Oct 24, 2023
1 parent 3edfab3 commit 2ec3edc
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 26 deletions.
3 changes: 0 additions & 3 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ linters:
- asciicheck
- bidichk
- bodyclose
- deadcode
- depguard
- durationcheck
- errcheck
Expand All @@ -51,12 +50,10 @@ linters:
- promlinter
- revive
- staticcheck
- structcheck
- tenv
- typecheck
- unconvert
- unused
- varcheck
- wastedassign
- whitespace
disable-all: true
Expand Down
4 changes: 2 additions & 2 deletions .prow/postsubmits.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ postsubmits:
preset-goproxy: "true"
spec:
containers:
- image: quay.io/kubermatic/build:go-1.21-node-18-kind-0.20-1
- image: quay.io/kubermatic/build:go-1.21-node-18-kind-0.20-6
command:
- /bin/bash
- -c
Expand All @@ -53,7 +53,7 @@ postsubmits:
preset-goproxy: "true"
spec:
containers:
- image: quay.io/kubermatic/build:go-1.21-node-18-kind-0.20-1
- image: quay.io/kubermatic/build:go-1.21-node-18-kind-0.20-6
command:
- "./hack/ci/upload-gocache.sh"
resources:
Expand Down
10 changes: 5 additions & 5 deletions .prow/verify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ presubmits:
preset-goproxy: "true"
spec:
containers:
- image: golang:1.21.0
- image: golang:1.21.3
command:
- make
args:
Expand Down Expand Up @@ -79,7 +79,7 @@ presubmits:
preset-goproxy: "true"
spec:
containers:
- image: quay.io/kubermatic/build:go-1.21-node-18-kind-0.20-1
- image: quay.io/kubermatic/build:go-1.21-node-18-kind-0.20-6
command:
- ./hack/verify-licenses.sh
resources:
Expand All @@ -95,7 +95,7 @@ presubmits:
preset-goproxy: "true"
spec:
containers:
- image: golangci/golangci-lint:v1.54.1
- image: golangci/golangci-lint:v1.55.0
command:
- make
args:
Expand Down Expand Up @@ -161,7 +161,7 @@ presubmits:
preset-goproxy: "true"
spec:
containers:
- image: golang:1.21.0
- image: golang:1.21.3
command:
- make
args:
Expand All @@ -182,7 +182,7 @@ presubmits:
preset-goproxy: "true"
spec:
containers:
- image: quay.io/kubermatic/build:go-1.21-node-18-kind-0.20-1
- image: quay.io/kubermatic/build:go-1.21-node-18-kind-0.20-6
command:
- "./hack/ci/run-e2e-tests.sh"
resources:
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

ARG GO_VERSION=1.21.0
ARG GO_VERSION=1.21.3
FROM golang:${GO_VERSION} AS builder
WORKDIR /go/src/k8c.io/operating-system-manager
COPY . .
Expand Down
2 changes: 1 addition & 1 deletion hack/update-codegen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ set -euo pipefail
cd $(dirname $0)/..
source hack/lib.sh

CONTAINERIZE_IMAGE=golang:1.21.0 containerize ./hack/update-codegen.sh
CONTAINERIZE_IMAGE=golang:1.21.3 containerize ./hack/update-codegen.sh
SCRIPT_ROOT=$(dirname "${BASH_SOURCE}")

sed="sed"
Expand Down
2 changes: 1 addition & 1 deletion hack/update-crds-openapi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ set -euo pipefail
cd $(dirname $0)/..
source hack/lib.sh

CONTAINERIZE_IMAGE=golang:1.21.0 containerize ./hack/update-crds-openapi.sh
CONTAINERIZE_IMAGE=golang:1.21.3 containerize ./hack/update-crds-openapi.sh
SCRIPT_ROOT=$(dirname "${BASH_SOURCE}")

echodate "Creating vendor directory"
Expand Down
2 changes: 1 addition & 1 deletion hack/verify-licenses.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ set -euo pipefail
cd $(dirname $0)/..
source hack/lib.sh

CONTAINERIZE_IMAGE=quay.io/kubermatic/build:go-1.21-node-18-kind-0.20-1 containerize ./hack/verify-licenses.sh
CONTAINERIZE_IMAGE=quay.io/kubermatic/build:go-1.21-node-18-kind-0.20-6 containerize ./hack/verify-licenses.sh

go mod vendor

Expand Down
25 changes: 13 additions & 12 deletions pkg/controllers/osc/osc_reconciler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ kPe6XoSbiLm/kxk32T0=
const (
defaultOSPPathPrefix = "../../../../deploy/osps/default/"
defaultKubeletVersion = "1.22.2"
ospUbuntu = "osp-ubuntu"
)

const (
Expand Down Expand Up @@ -136,8 +137,8 @@ func TestReconciler_Reconcile(t *testing.T) {
}{
{
name: "Ubuntu OS in AWS with Containerd",
ospFile: defaultOSPPathPrefix + "osp-ubuntu.yaml",
ospName: "osp-ubuntu",
ospFile: defaultOSPPathPrefix + fmt.Sprintf("%s.yaml", ospUbuntu),
ospName: ospUbuntu,
operatingSystem: providerconfigtypes.OperatingSystemUbuntu,
oscFile: "osc-ubuntu-aws-containerd.yaml",
mdName: "ubuntu-aws",
Expand All @@ -154,8 +155,8 @@ func TestReconciler_Reconcile(t *testing.T) {
},
{
name: "Ubuntu OS in AWS with Dualstack Networking",
ospFile: defaultOSPPathPrefix + "osp-ubuntu.yaml",
ospName: "osp-ubuntu",
ospFile: defaultOSPPathPrefix + fmt.Sprintf("%s.yaml", ospUbuntu),
ospName: ospUbuntu,
operatingSystem: providerconfigtypes.OperatingSystemUbuntu,
oscFile: "osc-ubuntu-aws-dualstack.yaml",
mdName: "ubuntu-aws",
Expand All @@ -173,8 +174,8 @@ func TestReconciler_Reconcile(t *testing.T) {
},
{
name: "Ubuntu OS in AWS with Dualstack IPv6+IPv4 Networking",
ospFile: defaultOSPPathPrefix + "osp-ubuntu.yaml",
ospName: "osp-ubuntu",
ospFile: defaultOSPPathPrefix + fmt.Sprintf("%s.yaml", ospUbuntu),
ospName: ospUbuntu,
operatingSystem: providerconfigtypes.OperatingSystemUbuntu,
oscFile: "osc-ubuntu-aws-dualstack-IPv6+IPv4.yaml",
mdName: "ubuntu-aws",
Expand Down Expand Up @@ -246,8 +247,8 @@ func TestReconciler_Reconcile(t *testing.T) {
},
{
name: "Kubelet configuration with containerd",
ospFile: defaultOSPPathPrefix + "osp-ubuntu.yaml",
ospName: "osp-ubuntu",
ospFile: defaultOSPPathPrefix + fmt.Sprintf("%s.yaml", ospUbuntu),
ospName: ospUbuntu,
operatingSystem: providerconfigtypes.OperatingSystemUbuntu,
oscFile: "osc-kubelet-configuration-containerd.yaml",
mdName: "kubelet-configuration",
Expand Down Expand Up @@ -421,8 +422,8 @@ func TestOSCAndSecretRotation(t *testing.T) {
}{
{
name: "test updates of machineDeployment",
ospFile: defaultOSPPathPrefix + "osp-ubuntu.yaml",
ospName: "osp-ubuntu",
ospFile: defaultOSPPathPrefix + fmt.Sprintf("%s.yaml", ospUbuntu),
ospName: ospUbuntu,
operatingSystem: providerconfigtypes.OperatingSystemUbuntu,
oscFile: "osc-ubuntu-aws-containerd.yaml",
mdName: "ubuntu-aws",
Expand Down Expand Up @@ -617,8 +618,8 @@ func TestMachineDeploymentDeletion(t *testing.T) {
}{
{
name: "test the deletion of machineDeployment",
ospFile: defaultOSPPathPrefix + "osp-ubuntu.yaml",
ospName: "osp-ubuntu",
ospFile: defaultOSPPathPrefix + fmt.Sprintf("%s.yaml", ospUbuntu),
ospName: ospUbuntu,
operatingSystem: providerconfigtypes.OperatingSystemUbuntu,
oscFile: "osc-ubuntu-aws-containerd.yaml",
mdName: "ubuntu-aws",
Expand Down

0 comments on commit 2ec3edc

Please sign in to comment.