diff --git a/.go-version b/.go-version index dd43a143f0217..c7c3f3333e15d 100644 --- a/.go-version +++ b/.go-version @@ -1 +1 @@ -1.26.1 +1.26.2 diff --git a/go.mod b/go.mod index c8caf595e8525..69751d968e0d0 100644 --- a/go.mod +++ b/go.mod @@ -6,7 +6,7 @@ module k8s.io/kubernetes -go 1.26.1 +go 1.26.2 godebug default=go1.26 diff --git a/go.work b/go.work index 531ce61d89234..1285029279c3d 100644 --- a/go.work +++ b/go.work @@ -1,6 +1,6 @@ // This is a generated file. Do not edit directly. -go 1.26.1 +go 1.26.2 godebug default=go1.26 diff --git a/staging/src/k8s.io/kubectl/go.mod b/staging/src/k8s.io/kubectl/go.mod index df2f6f22dc15a..50617ff6201a0 100644 --- a/staging/src/k8s.io/kubectl/go.mod +++ b/staging/src/k8s.io/kubectl/go.mod @@ -2,9 +2,9 @@ module k8s.io/kubectl -go 1.25.7 +go 1.26.2 -godebug default=go1.25 +godebug default=go1.26 require ( github.com/MakeNowJust/heredoc v1.0.0 diff --git a/staging/src/k8s.io/kubectl/pkg/describe/describe_test.go b/staging/src/k8s.io/kubectl/pkg/describe/describe_test.go index 8003354f52cf4..0b5561062501f 100644 --- a/staging/src/k8s.io/kubectl/pkg/describe/describe_test.go +++ b/staging/src/k8s.io/kubectl/pkg/describe/describe_test.go @@ -1228,10 +1228,10 @@ func TestDescribeResources(t *testing.T) { describeResources(testCase.resources, writer, LEVEL_1) output := out.String() gotElements := make(map[string]int) - for key, val := range testCase.expectedElements { + for key := range testCase.expectedElements { count := strings.Count(output, key) if count == 0 { - t.Errorf("expected to find %q in output: %q", val, output) + t.Errorf("expected to find %q in output: %q", key, output) continue } gotElements[key] = count