Skip to content

Commit d6a0679

Browse files
authored
Update dependencies for Kubernetes 1.34 (#349)
1 parent 5946e7f commit d6a0679

10 files changed

Lines changed: 177 additions & 134 deletions

File tree

‎.github/workflows/ci.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ jobs:
1313
run:
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v4
17-
- uses: actions/setup-go@v5
16+
- uses: actions/checkout@v5
17+
- uses: actions/setup-go@v6
1818
with:
1919
go-version-file: go.mod
2020
- name: Ensure go.mod is already tidied

‎.github/workflows/release.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ jobs:
88
run:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v4
12-
- uses: actions/setup-go@v5
11+
- uses: actions/checkout@v5
12+
- uses: actions/setup-go@v6
1313
with:
1414
go-version-file: go.mod
1515
- name: Login to GitHub Container Registry

‎.golangci.yml‎

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,21 @@
1+
version: "2"
12
run:
23
timeout: 5m
34
linters:
4-
disable-all: true
5+
default: none
56
enable:
67
- errcheck
7-
- gofmt
8-
- gosimple
98
- govet
109
- ineffassign
1110
- staticcheck
12-
- typecheck
1311
- unused
12+
exclusions:
13+
generated: lax
14+
presets:
15+
- comments
16+
- common-false-positives
17+
- legacy
18+
- std-error-handling
19+
formatters:
20+
enable:
21+
- gofmt

‎Makefile‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ build:
55
go build -o dist/stern .
66

77
TOOLS_BIN_DIR := $(CURDIR)/hack/tools/bin
8-
GORELEASER_VERSION ?= v2.5.1
8+
GORELEASER_VERSION ?= v2.12.0
99
GORELEASER := $(TOOLS_BIN_DIR)/goreleaser
10-
GOLANGCI_LINT_VERSION ?= v1.63.4
10+
GOLANGCI_LINT_VERSION ?= v2.4.0
1111
GOLANGCI_LINT := $(TOOLS_BIN_DIR)/golangci-lint
12-
VALIDATE_KREW_MAIFEST_VERSION ?= v0.4.4
12+
VALIDATE_KREW_MAIFEST_VERSION ?= v0.4.5
1313
VALIDATE_KREW_MAIFEST := $(TOOLS_BIN_DIR)/validate-krew-manifest
1414
GORELEASER_FILTER_VERSION ?= v0.3.0
1515
GORELEASER_FILTER := $(TOOLS_BIN_DIR)/goreleaser-filter
@@ -18,7 +18,7 @@ $(GORELEASER):
1818
GOBIN=$(TOOLS_BIN_DIR) go install github.com/goreleaser/goreleaser/v2@$(GORELEASER_VERSION)
1919

2020
$(GOLANGCI_LINT):
21-
GOBIN=$(TOOLS_BIN_DIR) go install github.com/golangci/golangci-lint/cmd/golangci-lint@$(GOLANGCI_LINT_VERSION)
21+
GOBIN=$(TOOLS_BIN_DIR) go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@$(GOLANGCI_LINT_VERSION)
2222

2323
$(VALIDATE_KREW_MAIFEST):
2424
GOBIN=$(TOOLS_BIN_DIR) go install sigs.k8s.io/krew/cmd/validate-krew-manifest@$(VALIDATE_KREW_MAIFEST_VERSION)

‎cmd/cmd.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ func (o *options) addKubernetesFlags(fs *pflag.FlagSet) {
476476
o.configFlags.AddFlags(flagset)
477477
flagset.VisitAll(func(f *pflag.Flag) {
478478
// Hide Kubernetes flags except some
479-
if !(f.Name == "kubeconfig" || f.Name == "context") {
479+
if f.Name != "kubeconfig" && f.Name != "context" {
480480
f.Hidden = true
481481
}
482482

‎cmd/flag_completion.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func runCompletion(shell string, cmd *cobra.Command, out io.Writer) error {
4747
case "fish":
4848
err = cmd.GenFishCompletion(out, true)
4949
default:
50-
err = fmt.Errorf("Unsupported shell type: %q", shell)
50+
err = fmt.Errorf("unsupported shell type: %q", shell)
5151
}
5252

5353
return err

‎go.mod‎

Lines changed: 48 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,52 @@
11
module github.com/stern/stern
22

3-
go 1.23.5
3+
go 1.25.0
44

55
require (
66
github.com/AlecAivazis/survey/v2 v2.3.7
77
github.com/fatih/color v1.18.0
88
github.com/mitchellh/go-homedir v1.1.0
99
github.com/pkg/errors v0.9.1
10-
github.com/spf13/cast v1.7.1
11-
github.com/spf13/cobra v1.8.1
12-
github.com/spf13/pflag v1.0.5
13-
golang.org/x/sync v0.10.0
14-
golang.org/x/time v0.9.0
10+
github.com/spf13/cast v1.9.2
11+
github.com/spf13/cobra v1.10.1
12+
github.com/spf13/pflag v1.0.10
13+
golang.org/x/sync v0.16.0
14+
golang.org/x/time v0.12.0
1515
gopkg.in/yaml.v3 v3.0.1
16-
k8s.io/api v0.32.1
17-
k8s.io/apimachinery v0.32.1
18-
k8s.io/cli-runtime v0.32.1
19-
k8s.io/client-go v0.32.1
16+
k8s.io/api v0.34.0
17+
k8s.io/apimachinery v0.34.0
18+
k8s.io/cli-runtime v0.34.0
19+
k8s.io/client-go v0.34.0
2020
k8s.io/klog/v2 v2.130.1
21-
k8s.io/utils v0.0.0-20241210054802-24370beab758
21+
k8s.io/utils v0.0.0-20250820121507-0af2bda4dd1d
2222
)
2323

2424
require (
2525
github.com/Azure/go-ansiterm v0.0.0-20250102033503-faa5f7b0171c // indirect
2626
github.com/blang/semver/v4 v4.0.0 // indirect
2727
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
28-
github.com/emicklei/go-restful/v3 v3.12.1 // indirect
29-
github.com/fxamacker/cbor/v2 v2.7.0 // indirect
28+
github.com/emicklei/go-restful/v3 v3.13.0 // indirect
29+
github.com/fxamacker/cbor/v2 v2.9.0 // indirect
3030
github.com/go-errors/errors v1.5.1 // indirect
31-
github.com/go-logr/logr v1.4.2 // indirect
32-
github.com/go-openapi/jsonpointer v0.21.0 // indirect
33-
github.com/go-openapi/jsonreference v0.21.0 // indirect
34-
github.com/go-openapi/swag v0.23.0 // indirect
31+
github.com/go-logr/logr v1.4.3 // indirect
32+
github.com/go-openapi/jsonpointer v0.22.0 // indirect
33+
github.com/go-openapi/jsonreference v0.21.1 // indirect
34+
github.com/go-openapi/swag v0.24.1 // indirect
35+
github.com/go-openapi/swag/cmdutils v0.24.0 // indirect
36+
github.com/go-openapi/swag/conv v0.24.0 // indirect
37+
github.com/go-openapi/swag/fileutils v0.24.0 // indirect
38+
github.com/go-openapi/swag/jsonname v0.24.0 // indirect
39+
github.com/go-openapi/swag/jsonutils v0.24.0 // indirect
40+
github.com/go-openapi/swag/loading v0.24.0 // indirect
41+
github.com/go-openapi/swag/mangling v0.24.0 // indirect
42+
github.com/go-openapi/swag/netutils v0.24.0 // indirect
43+
github.com/go-openapi/swag/stringutils v0.24.0 // indirect
44+
github.com/go-openapi/swag/typeutils v0.24.0 // indirect
45+
github.com/go-openapi/swag/yamlutils v0.24.0 // indirect
3546
github.com/gogo/protobuf v1.3.2 // indirect
36-
github.com/golang/protobuf v1.5.4 // indirect
3747
github.com/google/btree v1.1.3 // indirect
38-
github.com/google/gnostic-models v0.6.9 // indirect
39-
github.com/google/go-cmp v0.6.0 // indirect
40-
github.com/google/gofuzz v1.2.0 // indirect
41-
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect
48+
github.com/google/gnostic-models v0.7.0 // indirect
49+
github.com/google/go-cmp v0.7.0 // indirect
4250
github.com/google/uuid v1.6.0 // indirect
4351
github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79 // indirect
4452
github.com/inconshreveable/mousetrap v1.1.0 // indirect
@@ -52,24 +60,28 @@ require (
5260
github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d // indirect
5361
github.com/moby/term v0.5.2 // indirect
5462
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
55-
github.com/modern-go/reflect2 v1.0.2 // indirect
63+
github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee // indirect
5664
github.com/monochromegane/go-gitignore v0.0.0-20200626010858-205db1a8cc00 // indirect
5765
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
5866
github.com/peterbourgon/diskv v2.0.1+incompatible // indirect
67+
github.com/pmezard/go-difflib v1.0.0 // indirect
5968
github.com/x448/float16 v0.8.4 // indirect
6069
github.com/xlab/treeprint v1.2.0 // indirect
61-
golang.org/x/net v0.34.0 // indirect
62-
golang.org/x/oauth2 v0.25.0 // indirect
63-
golang.org/x/sys v0.29.0 // indirect
64-
golang.org/x/term v0.28.0 // indirect
65-
golang.org/x/text v0.21.0 // indirect
66-
google.golang.org/protobuf v1.36.3 // indirect
67-
gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect
70+
go.yaml.in/yaml/v2 v2.4.2 // indirect
71+
go.yaml.in/yaml/v3 v3.0.4 // indirect
72+
golang.org/x/net v0.43.0 // indirect
73+
golang.org/x/oauth2 v0.30.0 // indirect
74+
golang.org/x/sys v0.35.0 // indirect
75+
golang.org/x/term v0.34.0 // indirect
76+
golang.org/x/text v0.28.0 // indirect
77+
google.golang.org/protobuf v1.36.8 // indirect
78+
gopkg.in/evanphx/json-patch.v4 v4.13.0 // indirect
6879
gopkg.in/inf.v0 v0.9.1 // indirect
69-
k8s.io/kube-openapi v0.0.0-20241212222426-2c72e554b1e7 // indirect
70-
sigs.k8s.io/json v0.0.0-20241014173422-cfa47c3a1cc8 // indirect
71-
sigs.k8s.io/kustomize/api v0.19.0 // indirect
72-
sigs.k8s.io/kustomize/kyaml v0.19.0 // indirect
73-
sigs.k8s.io/structured-merge-diff/v4 v4.5.0 // indirect
74-
sigs.k8s.io/yaml v1.4.0 // indirect
80+
k8s.io/kube-openapi v0.0.0-20250905212525-66792eed8611 // indirect
81+
sigs.k8s.io/json v0.0.0-20250730193827-2d320260d730 // indirect
82+
sigs.k8s.io/kustomize/api v0.20.1 // indirect
83+
sigs.k8s.io/kustomize/kyaml v0.20.1 // indirect
84+
sigs.k8s.io/randfill v1.0.0 // indirect
85+
sigs.k8s.io/structured-merge-diff/v6 v6.3.0 // indirect
86+
sigs.k8s.io/yaml v1.6.0 // indirect
7587
)

0 commit comments

Comments
 (0)