Commit Graph

13 Commits

Author SHA1 Message Date
Artur Zych ecad826127 replace context.TODO with context.Background in tests
Kubernetes-commit: ffe235d2dd3577fb71d0c9ff51b7c337eba10e76
2025-04-10 11:38:01 +02:00
Artur Zych bb2324b47b add missing header in httpstream_test.go; whitespace in imports
Kubernetes-commit: 161b44d04ede1d423fdf4a7e101f19005eab4b17
2025-04-05 00:09:52 +02:00
Artur Zych a1589230c6 add unit tests to verify the fix
Kubernetes-commit: 79150d1ecf16833524f9795d9621e5cd9acd54a4
2025-04-04 13:55:24 +02:00
Aaina26 c7defa9550 fixed the formatting
Kubernetes-commit: 42d3716d7270d10f3570e189cb476a4495111095
2025-02-04 10:53:53 +05:30
Aaina26 3fee2d405f Fixed go routine leak in kubelet tests
Kubernetes-commit: 268033a5116b93383a0cd9ec535e804313e5c948
2025-02-02 00:16:52 +05:30
novahe 670a59a8dc Fix test cases that may potentially cause a panic.
Kubernetes-commit: 9e53371ddaaeab4083fde45e43c803071238e686
2025-03-11 17:41:37 +08:00
xin.li d3edd9ebb6 fix wrong assertion on tests
Signed-off-by: xin.li <xin.li@daocloud.io>

Kubernetes-commit: bc4ae15d77beab23f321bf6547f82c04ba27c3fa
2025-02-22 12:39:01 +08:00
Patrick Ohly 74b7ed0014 remove import doc comments
The "// import <path>" comment has been superseded by Go modules.
We don't have to remove them, but doing so has some advantages:

- They are used inconsistently, which is confusing.
- We can then also remove the (currently broken) hack/update-vanity-imports.sh.
- Last but not least, it would be a first step towards avoiding the k8s.io domain.

This commit was generated with
   sed -i -e 's;^package \(.*\) // import.*;package \1;' $(git grep -l '^package.*// import' | grep -v 'vendor/')

Everything was included, except for
   package labels // import k8s.io/kubernetes/pkg/util/labels
because that package is marked as "read-only".

Kubernetes-commit: 8a908e0c0bd96a3455edf7e3b5f5af90564e65b0
2024-12-02 14:43:58 +01:00
Maciej Szulik 5b5bd82d40 Reset streams when an error happens during port-forward
Signed-off-by: Maciej Szulik <soltysh@gmail.com>

Kubernetes-commit: aa11f2461fe06fccbd494aa7a837a04cf80507f0
2024-10-23 13:30:01 +02:00
Matthieu MOREL 993d229dfb fix: enable expected-actual rule from testifylint in module `k8s.io/kubelet`
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>

Kubernetes-commit: 45faf310a58014e3820a578c109e81eff0966e0d
2024-09-27 07:47:10 +02:00
José Carlos Chávez d31406f942 chore: adds consistent vanity import to files and provides tooling for verifying and updating them. (#120642)
* chore: drops update vanity imports from script.

* chore: changes copyright year to 2024.

* chore: makes lint happy.

Kubernetes-commit: 6d6398ef9266abce3518a4c9a3d4e4d8feeffdc1
2024-02-08 15:16:08 +00:00
Sean Sullivan d96223f6f4 Refactor wsstream library from apiserver to apimachinery
Kubernetes-commit: 8f3109da7913ef17c6656893f12f0e29ceabbde0
2023-05-22 10:03:17 -07:00
Sascha Grunert 670c72fe34 Move cri/streaming to k8s.io/kubelet staging repository
Container runtimes like CRI-O and containerd reuse the code by copying
it from Kubernetes. To have a single source of truth for the streaming
server we now move the already isolated implementation to the
k8s.io/kubelet staging repository. This way runtimes can re-use the code
without copying the parts.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>

Kubernetes-commit: db9fcfeed29b860d8dd7188bc1903c4709977890
2023-05-25 11:15:34 +02:00