Skip to content

Commit 9b603b8

Browse files
DespireCI/CD pipeline
and
CI/CD pipeline
authored
chore: update dependencies & longhorn to 1.8.1 (#1709)
General dependencies update across the repository. Updates longhorn to 1.8.1. Closes #1707 This was tested by creating a deployment with pvc with loghorn 1.7.0 (the current version) Upgrade to longhorn 1.8.1, all pods were deployed successfully, perform additional operation on the cluster without issues. The hash of the replicas were the same after the upgrade. Further longhorn also specifies in the release that 1.8.x is backwards compatible with 1.7.x https://github.com/longhorn/longhorn/releases/tag/v1.8.1 For volumes created with the old instance one can follow: https://longhorn.io/kb/troubleshooting-some-old-instance-manager-pods-are-still-running-after-upgrade/ It's possible to set via the Longhorn UI `Settings > Concurrent Automatic Engine Upgrade Per Node Limit` to a value higher than 0 to upgrade old volumes to the newly deployed manager Old engine-image pods will be terminated after ~60 minutes of not being used (after all volumes are upgraded to the newest longhorn version) Updates go to 1.24. Updates go dependencies --------- Co-authored-by: CI/CD pipeline <CI/[email protected]>
1 parent e9d4811 commit 9b603b8

File tree

24 files changed

+380
-224
lines changed

24 files changed

+380
-224
lines changed

.github/workflows/CI-pipeline.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ jobs:
8181
- name: Install golang
8282
uses: actions/setup-go@v5
8383
with:
84-
go-version: "1.23.1"
84+
go-version: "1.24.1"
8585

8686
- name: Run Go tests
8787
run: go test -short ./...
@@ -99,15 +99,15 @@ jobs:
9999
- name: Install golang
100100
uses: actions/setup-go@v5
101101
with:
102-
go-version: "1.23.1"
102+
go-version: "1.24.1"
103103

104104
- name: golangci-lint
105-
uses: golangci/golangci-lint-action@v6
105+
uses: golangci/golangci-lint-action@v7
106106
with:
107107
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
108108
# It's highly recommended installing a specific version of golangci-lint from
109109
# https://github.com/golangci/golangci-lint/releases
110-
version: v1.60.3
110+
version: v2.0.2
111111

112112
# Optional: working directory, useful for monorepos
113113
# working-directory: somedir

.golangci.yml

+40-36
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,54 @@
1-
# Refer to golangci-lint's example config file for more options and information:
2-
# https://github.com/golangci/golangci-lint/blob/master/.golangci.example.yml
3-
# https://golangci-lint.run/usage/configuration/#config-file
4-
5-
run:
6-
timeout: 10m
7-
1+
version: "2"
82
linters:
9-
disable-all: true
3+
default: none
104
enable:
115
- asciicheck
126
- bidichk
13-
- gofmt
14-
- govet
15-
- unconvert
16-
- staticcheck
17-
- ineffassign
18-
- unparam
19-
- gomodguard
7+
- bodyclose
8+
- dogsled
9+
- durationcheck
2010
- errcheck
2111
- errname
2212
- errorlint
23-
- gosimple
24-
- typecheck
25-
- unused
26-
- bodyclose
27-
- durationcheck
2813
- goconst
29-
- tenv
30-
- wastedassign
31-
- whitespace
14+
- gomodguard
3215
- goprintffuncname
16+
- govet
17+
- ineffassign
3318
- misspell
3419
- noctx
3520
- predeclared
36-
- dogsled
21+
- staticcheck
22+
- unconvert
23+
- unparam
24+
- unused
25+
- wastedassign
26+
- whitespace
27+
settings:
28+
govet:
29+
disable:
30+
- fieldalignment
31+
- shadow
32+
enable-all: true
33+
exclusions:
34+
generated: lax
35+
presets:
36+
- comments
37+
- common-false-positives
38+
- legacy
39+
- std-error-handling
40+
paths:
41+
- third_party$
42+
- builtin$
43+
- examples$
3744
issues:
3845
max-same-issues: 50
39-
40-
linters-settings:
41-
govet:
42-
# Enable all analyzers.
43-
# Default: false
44-
enable-all: true
45-
# Disable analyzers by name.
46-
# Run `go tool vet help` to see all analyzers.
47-
# Default: []
48-
disable:
49-
- fieldalignment # too strict
50-
- shadow # too strict
46+
formatters:
47+
enable:
48+
- gofmt
49+
exclusions:
50+
generated: lax
51+
paths:
52+
- third_party$
53+
- builtin$
54+
- examples$

go.mod

+27-24
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,47 @@
11
module github.com/berops/claudie
22

3-
go 1.23.0
3+
go 1.24.1
44

55
require (
6-
cloud.google.com/go/compute v1.34.1
6+
cloud.google.com/go/compute v1.36.0
77
github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.8.2
88
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute v1.0.0
99
github.com/aws/aws-sdk-go-v2 v1.36.3
10-
github.com/aws/aws-sdk-go-v2/config v1.29.9
10+
github.com/aws/aws-sdk-go-v2/config v1.29.12
1111
github.com/aws/aws-sdk-go-v2/feature/dynamodb/attributevalue v1.18.8
1212
github.com/aws/aws-sdk-go-v2/service/dynamodb v1.42.0
13-
github.com/aws/aws-sdk-go-v2/service/ec2 v1.210.0
13+
github.com/aws/aws-sdk-go-v2/service/ec2 v1.210.1
1414
github.com/aws/aws-sdk-go-v2/service/s3 v1.78.2
15-
github.com/aws/smithy-go v1.22.2
15+
github.com/aws/smithy-go v1.22.3
1616
github.com/docker/distribution v2.8.3+incompatible
1717
github.com/go-git/go-git/v5 v5.14.0
1818
github.com/go-logr/logr v1.4.2
1919
github.com/go-logr/zerologr v1.2.3
20-
github.com/go-playground/validator/v10 v10.25.0
20+
github.com/go-playground/validator/v10 v10.26.0
2121
github.com/google/go-cmp v0.7.0
2222
github.com/google/uuid v1.6.0
2323
github.com/grpc-ecosystem/go-grpc-middleware v1.4.0
2424
github.com/hetznercloud/hcloud-go v1.59.2
25-
github.com/oracle/oci-go-sdk/v65 v65.86.0
25+
github.com/oracle/oci-go-sdk/v65 v65.88.0
2626
github.com/prometheus/client_golang v1.21.1
27-
github.com/rs/zerolog v1.33.0
27+
github.com/rs/zerolog v1.34.0
2828
github.com/stretchr/testify v1.10.0
2929
github.com/tidwall/gjson v1.18.0
3030
github.com/tidwall/sjson v1.2.5
3131
go.mongodb.org/mongo-driver v1.17.3
3232
golang.org/x/crypto v0.36.0
3333
golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56
34-
golang.org/x/net v0.37.0
34+
golang.org/x/net v0.38.0
3535
golang.org/x/sync v0.12.0
36-
google.golang.org/api v0.224.0
36+
google.golang.org/api v0.227.0
3737
google.golang.org/grpc v1.71.0
38-
google.golang.org/protobuf v1.36.5
38+
google.golang.org/protobuf v1.36.6
3939
gopkg.in/yaml.v3 v3.0.1
4040
k8s.io/api v0.32.3
4141
k8s.io/apimachinery v0.32.3
4242
k8s.io/autoscaler/cluster-autoscaler v0.0.0-20230523093230-982c82176cde
4343
k8s.io/client-go v0.32.3
44-
sigs.k8s.io/controller-runtime v0.20.3
44+
sigs.k8s.io/controller-runtime v0.20.4
4545
)
4646

4747
require (
@@ -55,7 +55,7 @@ require (
5555
github.com/Microsoft/go-winio v0.6.2 // indirect
5656
github.com/ProtonMail/go-crypto v1.1.5 // indirect
5757
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.10 // indirect
58-
github.com/aws/aws-sdk-go-v2/credentials v1.17.62 // indirect
58+
github.com/aws/aws-sdk-go-v2/credentials v1.17.65 // indirect
5959
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.30 // indirect
6060
github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.34 // indirect
6161
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.34 // indirect
@@ -67,8 +67,8 @@ require (
6767
github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.10.15 // indirect
6868
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.15 // indirect
6969
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.18.15 // indirect
70-
github.com/aws/aws-sdk-go-v2/service/sso v1.25.1 // indirect
71-
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.29.1 // indirect
70+
github.com/aws/aws-sdk-go-v2/service/sso v1.25.2 // indirect
71+
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.30.0 // indirect
7272
github.com/aws/aws-sdk-go-v2/service/sts v1.33.17 // indirect
7373
github.com/beorn7/perks v1.0.1 // indirect
7474
github.com/cespare/xxhash/v2 v2.3.0 // indirect
@@ -92,15 +92,15 @@ require (
9292
github.com/go-playground/universal-translator v0.18.1 // indirect
9393
github.com/gofrs/flock v0.8.1 // indirect
9494
github.com/gogo/protobuf v1.3.2 // indirect
95-
github.com/golang-jwt/jwt/v5 v5.2.1 // indirect
95+
github.com/golang-jwt/jwt/v5 v5.2.2 // indirect
9696
github.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8 // indirect
9797
github.com/golang/protobuf v1.5.4 // indirect
9898
github.com/golang/snappy v0.0.4 // indirect
9999
github.com/google/btree v1.1.3 // indirect
100100
github.com/google/gnostic-models v0.6.8 // indirect
101101
github.com/google/gofuzz v1.2.0 // indirect
102102
github.com/google/s2a-go v0.1.9 // indirect
103-
github.com/googleapis/enterprise-certificate-proxy v0.3.5 // indirect
103+
github.com/googleapis/enterprise-certificate-proxy v0.3.6 // indirect
104104
github.com/googleapis/gax-go/v2 v2.14.1 // indirect
105105
github.com/gorilla/mux v1.8.1 // indirect
106106
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
@@ -141,19 +141,20 @@ require (
141141
github.com/youmark/pkcs8 v0.0.0-20240726163527-a2c0da244d78 // indirect
142142
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
143143
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.59.0 // indirect
144-
go.opentelemetry.io/otel v1.34.0 // indirect
145-
go.opentelemetry.io/otel/metric v1.34.0 // indirect
146-
go.opentelemetry.io/otel/trace v1.34.0 // indirect
147-
golang.org/x/oauth2 v0.27.0 // indirect
144+
go.opentelemetry.io/otel v1.35.0 // indirect
145+
go.opentelemetry.io/otel/metric v1.35.0 // indirect
146+
go.opentelemetry.io/otel/trace v1.35.0 // indirect
147+
golang.org/x/mod v0.22.0 // indirect
148+
golang.org/x/oauth2 v0.28.0 // indirect
148149
golang.org/x/sys v0.31.0 // indirect
149150
golang.org/x/term v0.30.0 // indirect
150151
golang.org/x/text v0.23.0 // indirect
151-
golang.org/x/time v0.10.0 // indirect
152+
golang.org/x/time v0.11.0 // indirect
152153
golang.org/x/tools v0.29.0 // indirect
153154
gomodules.xyz/jsonpatch/v2 v2.4.0 // indirect
154155
google.golang.org/genproto v0.0.0-20250303144028-a0af3efb3deb // indirect
155-
google.golang.org/genproto/googleapis/api v0.0.0-20250303144028-a0af3efb3deb // indirect
156-
google.golang.org/genproto/googleapis/rpc v0.0.0-20250227231956-55c901821b1e // indirect
156+
google.golang.org/genproto/googleapis/api v0.0.0-20250313205543-e70fdf4c4cb4 // indirect
157+
google.golang.org/genproto/googleapis/rpc v0.0.0-20250313205543-e70fdf4c4cb4 // indirect
157158
gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect
158159
gopkg.in/inf.v0 v0.9.1 // indirect
159160
gopkg.in/warnings.v0 v0.1.2 // indirect
@@ -177,3 +178,5 @@ replace k8s.io/kubectl => k8s.io/kubectl v0.27.0-alpha.1
177178
replace k8s.io/legacy-cloud-providers => k8s.io/legacy-cloud-providers v0.27.0-alpha.1
178179

179180
replace k8s.io/cri-api => k8s.io/cri-api v0.27.0-alpha.1
181+
182+
tool golang.org/x/tools/cmd/stringer

0 commit comments

Comments
 (0)