Skip to content

Commit 411f511

Browse files
authored
chore(go): update to 1.25 (#93)
* chore(go): update to 1.25 Signed-off-by: Toni Tauro <toni.tauro@secretz.io> * fix(go): NewClientSet instead of NewSimpleClientSet Signed-off-by: Toni Tauro <toni.tauro@secretz.io> --------- Signed-off-by: Toni Tauro <toni.tauro@secretz.io>
1 parent 9d4b07c commit 411f511

8 files changed

Lines changed: 61 additions & 90 deletions

File tree

.github/workflows/tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
strategy:
5454
fail-fast: false
5555
matrix:
56-
kind-k8s-version: [1.32.8, 1.33.4, 1.34.0]
56+
kind-k8s-version: [1.33.7, 1.34.3, 1.35.0]
5757
runs-on: ubuntu-latest
5858
steps:
5959
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1

.go-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.24.7
1+
1.25.0

go.mod

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/openbao/openbao-csi-provider
22

3-
go 1.24.7
3+
go 1.25.0
44

55
require (
66
github.com/hashicorp/go-hclog v1.6.3
@@ -9,11 +9,11 @@ require (
99
github.com/stretchr/testify v1.11.1
1010
google.golang.org/grpc v1.77.0
1111
gopkg.in/yaml.v3 v3.0.1
12-
k8s.io/api v0.34.2
13-
k8s.io/apimachinery v0.34.2
14-
k8s.io/client-go v0.34.2
15-
k8s.io/utils v0.0.0-20250604170112-4c0f3b243397
16-
sigs.k8s.io/secrets-store-csi-driver v1.5.4
12+
k8s.io/api v0.35.0
13+
k8s.io/apimachinery v0.35.0
14+
k8s.io/client-go v0.35.0
15+
k8s.io/utils v0.0.0-20251002143259-bc988d571ff4
16+
sigs.k8s.io/secrets-store-csi-driver v1.5.5
1717
)
1818

1919
require (
@@ -28,7 +28,6 @@ require (
2828
github.com/go-openapi/jsonreference v0.20.2 // indirect
2929
github.com/go-openapi/swag v0.23.0 // indirect
3030
github.com/go-viper/mapstructure/v2 v2.4.0 // indirect
31-
github.com/gogo/protobuf v1.3.2 // indirect
3231
github.com/google/gnostic-models v0.7.0 // indirect
3332
github.com/google/uuid v1.6.0 // indirect
3433
github.com/hashicorp/errwrap v1.1.0 // indirect
@@ -48,25 +47,24 @@ require (
4847
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
4948
github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee // indirect
5049
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
51-
github.com/pkg/errors v0.9.1 // indirect
5250
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
5351
github.com/ryanuber/go-glob v1.0.0 // indirect
5452
github.com/x448/float16 v0.8.4 // indirect
55-
go.yaml.in/yaml/v2 v2.4.2 // indirect
53+
go.yaml.in/yaml/v2 v2.4.3 // indirect
5654
go.yaml.in/yaml/v3 v3.0.4 // indirect
5755
golang.org/x/net v0.47.0 // indirect
5856
golang.org/x/oauth2 v0.32.0 // indirect
59-
golang.org/x/sys v0.38.0 // indirect
60-
golang.org/x/term v0.37.0 // indirect
61-
golang.org/x/text v0.31.0 // indirect
57+
golang.org/x/sys v0.39.0 // indirect
58+
golang.org/x/term v0.38.0 // indirect
59+
golang.org/x/text v0.32.0 // indirect
6260
golang.org/x/time v0.14.0 // indirect
6361
google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1 // indirect
6462
google.golang.org/protobuf v1.36.10 // indirect
65-
gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect
63+
gopkg.in/evanphx/json-patch.v4 v4.13.0 // indirect
6664
gopkg.in/inf.v0 v0.9.1 // indirect
6765
k8s.io/klog/v2 v2.130.1 // indirect
68-
k8s.io/kube-openapi v0.0.0-20250710124328-f3f2b991d03b // indirect
69-
sigs.k8s.io/json v0.0.0-20241014173422-cfa47c3a1cc8 // indirect
66+
k8s.io/kube-openapi v0.0.0-20250910181357-589584f1c912 // indirect
67+
sigs.k8s.io/json v0.0.0-20250730193827-2d320260d730 // indirect
7068
sigs.k8s.io/randfill v1.0.0 // indirect
7169
sigs.k8s.io/structured-merge-diff/v6 v6.3.0 // indirect
7270
sigs.k8s.io/yaml v1.6.0 // indirect

go.sum

Lines changed: 42 additions & 69 deletions
Large diffs are not rendered by default.

internal/client/client_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ func TestRequestSecret_OnlyAuthenticatesOnce(t *testing.T) {
122122
}
123123
defer mockOpenbaoServer.Close()
124124

125-
k8sClient := fake.NewSimpleClientset(
125+
k8sClient := fake.NewClientset(
126126
&corev1.ServiceAccount{},
127127
)
128128
authMethod := auth.NewKubernetesJWTAuth(hclog.Default(), k8sClient, config.Parameters{}, "")

internal/hmac/hmac_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ var secretSpec = &corev1.Secret{
3434
}
3535

3636
func setup(t *testing.T) (*HMACGenerator, *fake.Clientset) {
37-
client := fake.NewSimpleClientset()
37+
client := fake.NewClientset()
3838
return NewHMACGenerator(client, secretSpec), client
3939
}
4040

internal/provider/provider_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ func TestHandleMountRequest(t *testing.T) {
227227
}
228228
defer mockOpenbaoServer.Close()
229229

230-
k8sClient := fake.NewSimpleClientset(
230+
k8sClient := fake.NewClientset(
231231
&corev1.ServiceAccount{},
232232
)
233233
authMethod := auth.NewKubernetesJWTAuth(hclog.Default(), k8sClient, spcConfig.Parameters, "")

tools/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/openbao/openbao-csi-provider/tools
22

3-
go 1.24
3+
go 1.25.0
44

55
require (
66
github.com/golangci/golangci-lint/v2 v2.1.6

0 commit comments

Comments
 (0)