Skip to content

Commit

Permalink
Update dependencies and golang config (#7035)
Browse files Browse the repository at this point in the history
* Update dependencies and golang config

Signed-off-by: Waleed Malik <[email protected]>

* Update to latest build image

Signed-off-by: Waleed Malik <[email protected]>

* Refactored code

Signed-off-by: Waleed Malik <[email protected]>

---------

Signed-off-by: Waleed Malik <[email protected]>
  • Loading branch information
ahmedwaleedmalik authored Dec 4, 2024
1 parent 81bb2e5 commit 43d85fa
Show file tree
Hide file tree
Showing 21 changed files with 413 additions and 391 deletions.
8 changes: 4 additions & 4 deletions .prow/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ presubmits:
preset-goproxy: "true"
spec:
containers:
- image: quay.io/kubermatic/build:go-1.23-node-20-kind-0.24-4
- image: quay.io/kubermatic/build:go-1.23-node-20-kind-0.25-5
command:
- "./hack/ci/run-api-e2e.sh"
env:
Expand Down Expand Up @@ -60,7 +60,7 @@ presubmits:
preset-goproxy: "true"
spec:
containers:
- image: quay.io/kubermatic/build:go-1.23-node-20-4
- image: quay.io/kubermatic/build:go-1.23-node-20-5
command:
- make
args:
Expand All @@ -81,7 +81,7 @@ presubmits:
preset-goproxy: "true"
spec:
containers:
- image: quay.io/kubermatic/build:go-1.23-node-20-4
- image: quay.io/kubermatic/build:go-1.23-node-20-5
command:
- make
- api-lint
Expand All @@ -101,7 +101,7 @@ presubmits:
preset-goproxy: "true"
spec:
containers:
- image: quay.io/kubermatic/build:go-1.23-node-20-4
- image: quay.io/kubermatic/build:go-1.23-node-20-5
command:
- make
- api-verify
Expand Down
2 changes: 1 addition & 1 deletion .prow/common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ presubmits:
preset-goproxy: "true"
spec:
containers:
- image: quay.io/kubermatic/build:go-1.23-node-20-kind-0.24-4
- image: quay.io/kubermatic/build:go-1.23-node-20-kind-0.25-5
command:
- ./hack/ci/verify.sh
resources:
Expand Down
6 changes: 3 additions & 3 deletions .prow/frontend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ presubmits:
preset-goproxy: "true"
spec:
containers:
- image: quay.io/kubermatic/build:go-1.23-node-20-kind-0.24-4
- image: quay.io/kubermatic/build:go-1.23-node-20-kind-0.25-5
command:
- make
- web-check-dependencies
Expand All @@ -231,7 +231,7 @@ presubmits:
preset-goproxy: "true"
spec:
containers:
- image: quay.io/kubermatic/build:go-1.23-node-20-4
- image: quay.io/kubermatic/build:go-1.23-node-20-5
command:
- make
- web-lint
Expand All @@ -251,7 +251,7 @@ presubmits:
preset-goproxy: "true"
spec:
containers:
- image: quay.io/kubermatic/build:go-1.23-node-20-kind-0.24-4
- image: quay.io/kubermatic/build:go-1.23-node-20-kind-0.25-5
command:
- make
- web-check
Expand Down
2 changes: 1 addition & 1 deletion hack/verify-spelling.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.23-node-20-4 containerize ./hack/verify-spelling.sh
CONTAINERIZE_IMAGE=quay.io/kubermatic/build:go-1.23-node-20-5 containerize ./hack/verify-spelling.sh

echodate "Running codespell..."

Expand Down
6 changes: 0 additions & 6 deletions modules/api/.golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,8 @@ linters:
issues:
exclude:
# gocyclo
- cyclomatic complexity [0-9]+ of func `DefaultConfiguration` is high
- cyclomatic complexity [0-9]+ of func `initTestEndpoint` is high
- cyclomatic complexity [0-9]+ of func `\(\*Provider\)\.InitializeCloudProvider` is high
- cyclomatic complexity [0-9]+ of func `GetAPIV2NodeCloudSpec` is high
- cyclomatic complexity [0-9]+ of func `validateOpenStackCloudSpec` is high
# gocritic
- singleCaseSwitch # in most cases this is the beginning of a lookup table and should be kept an obvious table
# govet
- loop variable tc captured by func literal
# TODO (sig-api): fix the following issues
- cfg.EndpointResolverWithOptions is deprecated
Expand Down
2 changes: 0 additions & 2 deletions modules/api/.wwhrd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,3 @@ exceptions:
- github.com/hashicorp/hcl/json/scanner # MPL-2.0
- github.com/hashicorp/hcl/json/token # MPL-2.0
- github.com/hashicorp/go-cleanhttp # MPL-2.0
- github.com/yvasiyarov/go-metrics # BSD-2-Clause-Views required for https://github.com/distribution/distribution (used by Helm)
- github.com/bugsnag/osext # Zlib required for https://github.com/distribution/distribution (used by Helm)
20 changes: 9 additions & 11 deletions modules/api/cmd/kubermatic-api/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -30458,6 +30458,11 @@
"type": "object",
"title": "DatacenterSpecKubevirt describes a kubevirt datacenter.",
"properties": {
"ccmZoneAndRegionEnabled": {
"description": "Optional: indicates if region and zone labels from the cloud provider should be fetched.",
"type": "boolean",
"x-go-name": "CCMZoneAndRegionEnabled"
},
"customNetworkPolicies": {
"description": "Optional: CustomNetworkPolicies allows to add some extra custom NetworkPolicies, that are deployed\nin the dedicated infra KubeVirt cluster. They are added to the defaults.",
"type": "array",
Expand Down Expand Up @@ -37890,6 +37895,10 @@
"type": "string",
"x-go-name": "Name"
},
"networkPolicyEnabled": {
"type": "boolean",
"x-go-name": "NetworkPolicyEnabled"
},
"vpcs": {
"type": "array",
"items": {
Expand Down Expand Up @@ -38858,17 +38867,6 @@
},
"phase": {
"$ref": "#/definitions/SeedPhase"
},
"providers": {
"type": "object",
"additionalProperties": {
"type": "object",
"additionalProperties": {
"type": "integer",
"format": "int64"
}
},
"x-go-name": "DatacentersByProvider"
}
},
"x-go-package": "k8c.io/dashboard/v2/pkg/api/v2"
Expand Down
Loading

0 comments on commit 43d85fa

Please sign in to comment.