Skip to content

Commit 9b603b8

Browse files
DespireCI/CD pipeline
andauthored
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/CD-pipeline@users.noreply.github.com>
1 parent e9d4811 commit 9b603b8

24 files changed

Lines changed: 380 additions & 224 deletions

File tree

.github/workflows/CI-pipeline.yml

Lines changed: 4 additions & 4 deletions
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

Lines changed: 40 additions & 36 deletions
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

Lines changed: 27 additions & 24 deletions
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)