Skip to content

Commit

Permalink
Merge pull request #53 from syseleven/K8s-9263_merge-upstream
Browse files Browse the repository at this point in the history
K8s 9263 merge with upstream v1.58
  • Loading branch information
squ94wk authored Feb 2, 2024
2 parents b2ebbe3 + 068a348 commit 9df6c46
Show file tree
Hide file tree
Showing 207 changed files with 1,911 additions and 1,883 deletions.
12 changes: 9 additions & 3 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ linters:
- asciicheck
- bidichk
- bodyclose
- deadcode
- depguard
- durationcheck
- errcheck
Expand All @@ -35,15 +34,21 @@ linters:
- promlinter
- revive
- staticcheck
- structcheck
- tenv
- unconvert
- unused
- varcheck
- wastedassign
- whitespace
disable-all: true

linters-settings:
depguard:
rules:
main:
deny:
- { pkg: io/ioutil, desc: https://go.dev/doc/go1.16#ioutil }
- { pkg: github.com/ghodss/yaml, desc: use sigs.k8s.io/yaml instead }

issues:
exclude:
- should have comment or be unexported
Expand All @@ -59,3 +64,4 @@ issues:
- 'cyclomatic complexity 34 of func `\(\*provider\)\.getConfig` is high'
- 'cyclomatic complexity 31 of func `\(\*provider\)\.Validate` is high'
- 'cyclomatic complexity 33 of func `\(\*provider\)\.Create` is high'
- 'cyclomatic complexity 32 of func `\(\*Reconciler\)\.ensureInstanceExistsForMachine` is high'
11 changes: 6 additions & 5 deletions .prow/e2e-features.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ presubmits:
preset-kubeconfig-ci: "true"
spec:
containers:
- image: quay.io/kubermatic/build:go-1.20-node-18-kind-0.18-7
- image: quay.io/kubermatic/build:go-1.21-node-18-kind-0.20-9
command:
- "./hack/ci/run-e2e-tests.sh"
args:
Expand Down Expand Up @@ -63,7 +63,7 @@ presubmits:
preset-kubeconfig-ci: "true"
spec:
containers:
- image: quay.io/kubermatic/build:go-1.20-node-18-kind-0.18-7
- image: quay.io/kubermatic/build:go-1.21-node-18-kind-0.20-9
command:
- "./hack/ci/run-e2e-tests.sh"
args:
Expand All @@ -78,7 +78,8 @@ presubmits:
memory: 7Gi

- name: pull-machine-controller-e2e-ubuntu-upgrade
always_run: true
# In-tree CCM is not supported for openstack starting from k8s 1.26. Please see https://github.com/kubermatic/machine-controller/issues/1626 for updates.
# run_if_changed: "(pkg/cloudprovider/provider/openstack/|pkg/userdata)"
decorate: true
clone_uri: "ssh://[email protected]/kubermatic/machine-controller.git"
labels:
Expand All @@ -91,7 +92,7 @@ presubmits:
preset-kubeconfig-ci: "true"
spec:
containers:
- image: quay.io/kubermatic/build:go-1.20-node-18-kind-0.18-7
- image: quay.io/kubermatic/build:go-1.21-node-18-kind-0.20-9
command:
- "./hack/ci/run-e2e-tests.sh"
args:
Expand All @@ -118,7 +119,7 @@ presubmits:
preset-kubeconfig-ci: "true"
spec:
containers:
- image: quay.io/kubermatic/build:go-1.20-node-18-kind-0.18-7
- image: quay.io/kubermatic/build:go-1.21-node-18-kind-0.20-9
command:
- "./hack/ci/run-e2e-tests.sh"
args:
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.20-node-18-kind-0.18-7
- image: quay.io/kubermatic/build:go-1.21-node-18-kind-0.20-9
command:
- /bin/bash
- -c
Expand Down Expand Up @@ -54,7 +54,7 @@ postsubmits:
preset-goproxy: "true"
spec:
containers:
- image: quay.io/kubermatic/build:go-1.20-node-18-kind-0.18-7
- image: quay.io/kubermatic/build:go-1.21-node-18-kind-0.20-9
command:
- "./hack/ci/upload-gocache.sh"
resources:
Expand Down
2 changes: 1 addition & 1 deletion .prow/provider-alibaba.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ presubmits:
preset-kubeconfig-ci: "true"
spec:
containers:
- image: quay.io/kubermatic/build:go-1.20-node-18-kind-0.18-7
- image: quay.io/kubermatic/build:go-1.21-node-18-kind-0.20-9
command:
- "./hack/ci/run-e2e-tests.sh"
args:
Expand Down
2 changes: 1 addition & 1 deletion .prow/provider-anexia.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ presubmits:
preset-kubeconfig-ci: "true"
spec:
containers:
- image: quay.io/kubermatic/build:go-1.20-node-18-kind-0.18-7
- image: quay.io/kubermatic/build:go-1.21-node-18-kind-0.20-9
command:
- "./hack/ci/run-e2e-tests.sh"
args:
Expand Down
16 changes: 8 additions & 8 deletions .prow/provider-aws.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ presubmits:
preset-kubeconfig-ci: "true"
spec:
containers:
- image: quay.io/kubermatic/build:go-1.20-node-18-kind-0.18-7
- image: quay.io/kubermatic/build:go-1.21-node-18-kind-0.20-9
command:
- "./hack/ci/run-e2e-tests.sh"
args:
Expand Down Expand Up @@ -60,7 +60,7 @@ presubmits:
preset-kubeconfig-ci: "true"
spec:
containers:
- image: quay.io/kubermatic/build:go-1.20-node-18-kind-0.18-7
- image: quay.io/kubermatic/build:go-1.21-node-18-kind-0.20-9
env:
- name: OPERATING_SYSTEM_MANAGER
value: "false"
Expand Down Expand Up @@ -93,7 +93,7 @@ presubmits:
preset-kubeconfig-ci: "true"
spec:
containers:
- image: quay.io/kubermatic/build:go-1.20-node-18-kind-0.18-7
- image: quay.io/kubermatic/build:go-1.21-node-18-kind-0.20-9
command:
- "./hack/ci/run-e2e-tests.sh"
args:
Expand Down Expand Up @@ -124,7 +124,7 @@ presubmits:
preset-kubeconfig-ci: "true"
spec:
containers:
- image: quay.io/kubermatic/build:go-1.20-node-18-kind-0.18-7
- image: quay.io/kubermatic/build:go-1.21-node-18-kind-0.20-9
command:
- "./hack/ci/run-e2e-tests.sh"
args:
Expand Down Expand Up @@ -156,7 +156,7 @@ presubmits:
preset-kubeconfig-ci: "true"
spec:
containers:
- image: quay.io/kubermatic/build:go-1.20-node-18-kind-0.18-7
- image: quay.io/kubermatic/build:go-1.21-node-18-kind-0.20-9
command:
- "./hack/ci/run-e2e-tests.sh"
args:
Expand Down Expand Up @@ -187,7 +187,7 @@ presubmits:
preset-kubeconfig-ci: "true"
spec:
containers:
- image: quay.io/kubermatic/build:go-1.20-node-18-kind-0.18-7
- image: quay.io/kubermatic/build:go-1.21-node-18-kind-0.20-9
command:
- "./hack/ci/run-e2e-tests.sh"
args:
Expand Down Expand Up @@ -218,7 +218,7 @@ presubmits:
preset-kubeconfig-ci: "true"
spec:
containers:
- image: quay.io/kubermatic/build:go-1.20-node-18-kind-0.18-7
- image: quay.io/kubermatic/build:go-1.21-node-18-kind-0.20-9
command:
- "./hack/ci/run-e2e-tests.sh"
args:
Expand Down Expand Up @@ -249,7 +249,7 @@ presubmits:
preset-kubeconfig-ci: "true"
spec:
containers:
- image: quay.io/kubermatic/build:go-1.20-node-18-kind-0.18-7
- image: quay.io/kubermatic/build:go-1.21-node-18-kind-0.20-9
command:
- "./hack/ci/run-e2e-tests.sh"
args:
Expand Down
6 changes: 3 additions & 3 deletions .prow/provider-azure.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ presubmits:
preset-kubeconfig-ci: "true"
spec:
containers:
- image: quay.io/kubermatic/build:go-1.20-node-18-kind-0.18-7
- image: quay.io/kubermatic/build:go-1.21-node-18-kind-0.20-9
command:
- "./hack/ci/run-e2e-tests.sh"
args:
Expand Down Expand Up @@ -60,7 +60,7 @@ presubmits:
preset-kubeconfig-ci: "true"
spec:
containers:
- image: quay.io/kubermatic/build:go-1.20-node-18-kind-0.18-7
- image: quay.io/kubermatic/build:go-1.21-node-18-kind-0.20-9
command:
- "./hack/ci/run-e2e-tests.sh"
args:
Expand Down Expand Up @@ -93,7 +93,7 @@ presubmits:
preset-kubeconfig-ci: "true"
spec:
containers:
- image: quay.io/kubermatic/build:go-1.20-node-18-kind-0.18-7
- image: quay.io/kubermatic/build:go-1.21-node-18-kind-0.20-9
command:
- "./hack/ci/run-e2e-tests.sh"
args:
Expand Down
2 changes: 1 addition & 1 deletion .prow/provider-digitalocean.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ presubmits:
preset-kubeconfig-ci: "true"
spec:
containers:
- image: quay.io/kubermatic/build:go-1.20-node-18-kind-0.18-7
- image: quay.io/kubermatic/build:go-1.21-node-18-kind-0.20-9
command:
- "./hack/ci/run-e2e-tests.sh"
args:
Expand Down
2 changes: 1 addition & 1 deletion .prow/provider-equinix-metal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ presubmits:
preset-kubeconfig-ci: "true"
spec:
containers:
- image: quay.io/kubermatic/build:go-1.20-node-18-kind-0.18-7
- image: quay.io/kubermatic/build:go-1.21-node-18-kind-0.20-9
command:
- "./hack/ci/run-e2e-tests.sh"
args:
Expand Down
2 changes: 1 addition & 1 deletion .prow/provider-gcp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ presubmits:
preset-kubeconfig-ci: "true"
spec:
containers:
- image: quay.io/kubermatic/build:go-1.20-node-18-kind-0.18-7
- image: quay.io/kubermatic/build:go-1.21-node-18-kind-0.20-9
command:
- "./hack/ci/run-e2e-tests.sh"
args:
Expand Down
2 changes: 1 addition & 1 deletion .prow/provider-hetzner.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ presubmits:
preset-kubeconfig-ci: "true"
spec:
containers:
- image: quay.io/kubermatic/build:go-1.20-node-18-kind-0.18-7
- image: quay.io/kubermatic/build:go-1.21-node-18-kind-0.20-9
command:
- "./hack/ci/run-e2e-tests.sh"
args:
Expand Down
2 changes: 1 addition & 1 deletion .prow/provider-kubevirt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ presubmits:
preset-kubeconfig-ci: "true"
spec:
containers:
- image: quay.io/kubermatic/build:go-1.20-node-18-kind-0.18-7
- image: quay.io/kubermatic/build:go-1.21-node-18-kind-0.20-9
command:
- "./hack/ci/run-e2e-tests.sh"
args:
Expand Down
2 changes: 1 addition & 1 deletion .prow/provider-linode.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ presubmits:
preset-kubeconfig-ci: "true"
spec:
containers:
- image: quay.io/kubermatic/build:go-1.20-node-18-kind-0.18-7
- image: quay.io/kubermatic/build:go-1.21-node-18-kind-0.20-9
command:
- "./hack/ci/run-e2e-tests.sh"
args:
Expand Down
2 changes: 1 addition & 1 deletion .prow/provider-nutanix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ presubmits:
preset-kubeconfig-ci: "true"
spec:
containers:
- image: quay.io/kubermatic/build:go-1.20-node-18-kind-0.18-7
- image: quay.io/kubermatic/build:go-1.21-node-18-kind-0.20-9
command:
- "./hack/ci/run-e2e-tests.sh"
args:
Expand Down
10 changes: 6 additions & 4 deletions .prow/provider-openstack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@

presubmits:
- name: pull-machine-controller-e2e-openstack
run_if_changed: "(pkg/cloudprovider/provider/openstack/|pkg/userdata)"
# In-tree CCM is not supported for openstack starting from k8s 1.26. Please see https://github.com/kubermatic/machine-controller/issues/1626 for updates.
# run_if_changed: "(pkg/cloudprovider/provider/openstack/|pkg/userdata)"
decorate: true
clone_uri: "ssh://[email protected]/kubermatic/machine-controller.git"
labels:
Expand All @@ -28,7 +29,7 @@ presubmits:
preset-kubeconfig-ci: "true"
spec:
containers:
- image: quay.io/kubermatic/build:go-1.20-node-18-kind-0.18-7
- image: quay.io/kubermatic/build:go-1.21-node-18-kind-0.20-9
command:
- "./hack/ci/run-e2e-tests.sh"
args:
Expand All @@ -46,7 +47,8 @@ presubmits:
memory: 7Gi

- name: pull-machine-controller-e2e-openstack-project-auth
run_if_changed: "(pkg/cloudprovider/provider/openstack/|pkg/userdata)"
# In-tree CCM is not supported for openstack starting from k8s 1.26. Please see https://github.com/kubermatic/machine-controller/issues/1626 for updates.
# run_if_changed: "(pkg/cloudprovider/provider/openstack/|pkg/userdata)"
decorate: true
clone_uri: "ssh://[email protected]/kubermatic/machine-controller.git"
labels:
Expand All @@ -60,7 +62,7 @@ presubmits:
preset-kubeconfig-ci: "true"
spec:
containers:
- image: quay.io/kubermatic/build:go-1.20-node-18-kind-0.18-7
- image: quay.io/kubermatic/build:go-1.21-node-18-kind-0.20-9
command:
- "./hack/ci/run-e2e-tests.sh"
args:
Expand Down
2 changes: 1 addition & 1 deletion .prow/provider-scaleway.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ presubmits:
preset-kubeconfig-ci: "true"
spec:
containers:
- image: quay.io/kubermatic/build:go-1.20-node-18-kind-0.18-7
- image: quay.io/kubermatic/build:go-1.21-node-18-kind-0.20-9
command:
- "./hack/ci/run-e2e-tests.sh"
args:
Expand Down
2 changes: 1 addition & 1 deletion .prow/provider-vmware-cloud-director.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ presubmits:
preset-kubeconfig-ci: "true"
spec:
containers:
- image: quay.io/kubermatic/build:go-1.20-node-18-kind-0.18-7
- image: quay.io/kubermatic/build:go-1.21-node-18-kind-0.20-9
command:
- "./hack/ci/run-e2e-tests.sh"
args:
Expand Down
8 changes: 4 additions & 4 deletions .prow/provider-vsphere.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ presubmits:
preset-kubeconfig-ci: "true"
spec:
containers:
- image: quay.io/kubermatic/build:go-1.20-node-18-kind-0.18-7
- image: quay.io/kubermatic/build:go-1.21-node-18-kind-0.20-9
command:
- "./hack/ci/run-e2e-tests.sh"
args:
Expand Down Expand Up @@ -60,7 +60,7 @@ presubmits:
preset-kubeconfig-ci: "true"
spec:
containers:
- image: quay.io/kubermatic/build:go-1.20-node-18-kind-0.18-7
- image: quay.io/kubermatic/build:go-1.21-node-18-kind-0.20-9
command:
- "./hack/ci/run-e2e-tests.sh"
args:
Expand Down Expand Up @@ -92,7 +92,7 @@ presubmits:
preset-kubeconfig-ci: "true"
spec:
containers:
- image: quay.io/kubermatic/build:go-1.20-node-18-kind-0.18-7
- image: quay.io/kubermatic/build:go-1.21-node-18-kind-0.20-9
command:
- "./hack/ci/run-e2e-tests.sh"
args:
Expand Down Expand Up @@ -124,7 +124,7 @@ presubmits:
preset-kubeconfig-ci: "true"
spec:
containers:
- image: quay.io/kubermatic/build:go-1.20-node-18-kind-0.18-7
- image: quay.io/kubermatic/build:go-1.21-node-18-kind-0.20-9
command:
- "./hack/ci/run-e2e-tests.sh"
args:
Expand Down
Loading

0 comments on commit 9df6c46

Please sign in to comment.