Skip to content

Commit 2a66a63

Browse files
authored
Merge pull request #1955 from saschagrunert/k8s-vendor
Vendor Kubernetes v1.35.0-rc.0
2 parents 98c9007 + 99f1093 commit 2a66a63

File tree

357 files changed

+45835
-29025
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

357 files changed

+45835
-29025
lines changed

cmd/crictl/exec.go

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,28 @@ func stream(ctx context.Context, in, tty bool, transport string, parsedURL *url.
427427
return errors.New("input is not a terminal")
428428
}
429429

430-
streamOptions.TerminalSizeQueue = t.MonitorSize(t.GetSize())
430+
streamOptions.TerminalSizeQueue = &terminalSizeQueueAdapter{queue: t.MonitorSize(t.GetSize())}
431431

432432
return t.Safe(func() error { return executor.StreamWithContext(ctx, streamOptions) })
433433
}
434+
435+
// terminalSizeQueueAdapter adapts k8s.io/kubectl/pkg/util/term.TerminalSizeQueue
436+
// to k8s.io/client-go/tools/remotecommand.TerminalSizeQueue.
437+
// TODO: Remove this adapter once kubernetes/kubernetes#135587 is merged and vendored.
438+
// After the fix, both types will be aliases to the same shared type, making this unnecessary.
439+
type terminalSizeQueueAdapter struct {
440+
queue term.TerminalSizeQueue
441+
}
442+
443+
// Next returns the next terminal size in the queue.
444+
func (t *terminalSizeQueueAdapter) Next() *remoteclient.TerminalSize {
445+
size := t.queue.Next()
446+
if size == nil {
447+
return nil
448+
}
449+
450+
return &remoteclient.TerminalSize{
451+
Width: size.Width,
452+
Height: size.Height,
453+
}
454+
}

go.mod

Lines changed: 26 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module sigs.k8s.io/cri-tools
22

3-
go 1.25
3+
go 1.25.0
44

55
require (
66
github.com/distribution/reference v0.6.0
@@ -9,7 +9,7 @@ require (
99
github.com/google/uuid v1.6.0
1010
github.com/invopop/jsonschema v0.13.0
1111
github.com/moby/term v0.5.2
12-
github.com/onsi/ginkgo/v2 v2.25.1
12+
github.com/onsi/ginkgo/v2 v2.27.2
1313
github.com/onsi/gomega v1.38.2
1414
github.com/opencontainers/go-digest v1.0.0
1515
github.com/opencontainers/selinux v1.13.0
@@ -19,19 +19,19 @@ require (
1919
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.37.0
2020
go.opentelemetry.io/otel/sdk v1.37.0
2121
go.opentelemetry.io/otel/trace v1.37.0
22-
golang.org/x/sys v0.35.0
23-
golang.org/x/term v0.34.0
24-
golang.org/x/text v0.28.0
22+
golang.org/x/sys v0.37.0
23+
golang.org/x/term v0.36.0
24+
golang.org/x/text v0.29.0
2525
google.golang.org/grpc v1.75.0
2626
google.golang.org/protobuf v1.36.8
27-
k8s.io/api v0.34.1
28-
k8s.io/apimachinery v0.34.1
29-
k8s.io/client-go v0.34.1
30-
k8s.io/cri-api v0.34.1
31-
k8s.io/cri-client v0.34.1
27+
k8s.io/api v0.35.0-rc.0
28+
k8s.io/apimachinery v0.35.0-rc.0
29+
k8s.io/client-go v0.35.0-rc.0
30+
k8s.io/cri-api v0.35.0-rc.0
31+
k8s.io/cri-client v0.35.0-rc.0
3232
k8s.io/klog/v2 v2.130.1
33-
k8s.io/kubectl v0.34.1
34-
k8s.io/kubelet v0.34.1
33+
k8s.io/kubectl v0.35.0-rc.0
34+
k8s.io/kubelet v0.35.0-rc.0
3535
sigs.k8s.io/yaml v1.6.0
3636
)
3737

@@ -55,7 +55,6 @@ require (
5555
github.com/go-logr/logr v1.4.3 // indirect
5656
github.com/go-logr/stdr v1.2.2 // indirect
5757
github.com/go-task/slim-sprig/v3 v3.0.0 // indirect
58-
github.com/gogo/protobuf v1.3.2 // indirect
5958
github.com/google/go-cmp v0.7.0 // indirect
6059
github.com/google/pprof v0.0.0-20250820193118-f64d9cf942d6 // indirect
6160
github.com/gorilla/websocket v1.5.4-0.20250319132907-e064f32e3674 // indirect
@@ -69,36 +68,38 @@ require (
6968
github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee // indirect
7069
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
7170
github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f // indirect
72-
github.com/prometheus/client_golang v1.22.0 // indirect
73-
github.com/prometheus/client_model v0.6.1 // indirect
74-
github.com/prometheus/common v0.62.0 // indirect
75-
github.com/prometheus/procfs v0.15.1 // indirect
71+
github.com/prometheus/client_golang v1.23.2 // indirect
72+
github.com/prometheus/client_model v0.6.2 // indirect
73+
github.com/prometheus/common v0.66.1 // indirect
74+
github.com/prometheus/procfs v0.16.1 // indirect
7675
github.com/russross/blackfriday/v2 v2.1.0 // indirect
77-
github.com/spf13/pflag v1.0.6 // indirect
76+
github.com/spf13/pflag v1.0.9 // indirect
7877
github.com/wk8/go-ordered-map/v2 v2.1.8 // indirect
7978
github.com/x448/float16 v0.8.4 // indirect
8079
github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1 // indirect
8180
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
8281
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.60.0 // indirect
83-
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.58.0 // indirect
82+
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.61.0 // indirect
8483
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.37.0 // indirect
8584
go.opentelemetry.io/otel/metric v1.37.0 // indirect
8685
go.opentelemetry.io/proto/otlp v1.7.0 // indirect
87-
go.uber.org/automaxprocs v1.6.0 // indirect
88-
go.yaml.in/yaml/v2 v2.4.2 // indirect
86+
go.yaml.in/yaml/v2 v2.4.3 // indirect
8987
go.yaml.in/yaml/v3 v3.0.4 // indirect
88+
golang.org/x/mod v0.28.0 // indirect
9089
golang.org/x/net v0.43.0 // indirect
9190
golang.org/x/oauth2 v0.30.0 // indirect
91+
golang.org/x/sync v0.17.0 // indirect
9292
golang.org/x/time v0.9.0 // indirect
9393
golang.org/x/tools v0.36.0 // indirect
9494
google.golang.org/genproto/googleapis/api v0.0.0-20250707201910-8d1bb00bc6a7 // indirect
9595
google.golang.org/genproto/googleapis/rpc v0.0.0-20250707201910-8d1bb00bc6a7 // indirect
9696
gopkg.in/inf.v0 v0.9.1 // indirect
9797
gopkg.in/yaml.v3 v3.0.1 // indirect
98-
k8s.io/cli-runtime v0.34.1 // indirect
99-
k8s.io/component-base v0.34.1 // indirect
100-
k8s.io/utils v0.0.0-20250604170112-4c0f3b243397 // indirect
101-
sigs.k8s.io/json v0.0.0-20241014173422-cfa47c3a1cc8 // indirect
98+
k8s.io/cli-runtime v0.35.0-rc.0 // indirect
99+
k8s.io/component-base v0.35.0-rc.0 // indirect
100+
k8s.io/kube-openapi v0.0.0-20250910181357-589584f1c912 // indirect
101+
k8s.io/utils v0.0.0-20251002143259-bc988d571ff4 // indirect
102+
sigs.k8s.io/json v0.0.0-20250730193827-2d320260d730 // indirect
102103
sigs.k8s.io/randfill v1.0.0 // indirect
103104
sigs.k8s.io/structured-merge-diff/v6 v6.3.0 // indirect
104105
)

0 commit comments

Comments
 (0)