Commit Graph

122356 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
f106fb7449
Merge pull request #124409 from pohly/dra-scheduler-unit-test-fix
dra scheduler: fix data race in unit test
2024-04-22 04:35:34 -07:00
huweiwen
6ec421e2cf test/e2e: do not use global variable for image
We have "-kube-test-repo-list" command line flag to override the image registry. If we store it in global variable, then that overriding cannot take effect.

And this can cause puzzling bugs, e.g.: containerIsUnused() function will compare incorrect image address.
2024-04-22 19:29:39 +08:00
Stephen Kitt
54e899317e
Improve the lister function documentation
In particular, document that ListAllByNamespace delegates to ListAll
if no namespace is specified.

Signed-off-by: Stephen Kitt <skitt@redhat.com>
2024-04-22 13:15:04 +02:00
Stephen Kitt
e6f44957cd
Regenerate all listers
Signed-off-by: Stephen Kitt <skitt@redhat.com>
2024-04-22 13:15:04 +02:00
Stephen Kitt
2e9adcd14a
Generify lister-gen
This adds a generic implementation of a lister, and uses it to replace
the template code in generated listers. The corresponding templates
are no longer used and are removed.

Listers are reduced to their interfaces (non-namespaced and namespaced
if appropriate), their specific structs, and their constructors. All
method implementations are provided by the generic implementation. The
dedicated interface is preserved so that each lister can have its own
set of methods (e.g. the method returning the namespaced lister if
appropriate), and the dedicated struct is preserved to allow
expansions to be defined where necessary.

The external interface is unchanged and doesn't expose generics.

Signed-off-by: Stephen Kitt <skitt@redhat.com>
2024-04-22 13:15:04 +02:00
Stephen Kitt
44d7267bd6
Add a lister-gen expansion example
Signed-off-by: Stephen Kitt <skitt@redhat.com>
2024-04-22 13:15:03 +02:00
Daman Arora
ce41bc849f agnhost: version bump to v2.50
Signed-off-by: Daman Arora <aroradaman@gmail.com>
2024-04-22 16:35:13 +05:30
Daman Arora
1c8799f814 agnhost/connect: send and recv data from SCTP server
If the client immediately closes connection after SCTP handshake,
the server will die with EOF, adding send and recv calls in the
client to make sure server client handling loop exits gracefully.

Signed-off-by: Daman Arora <aroradaman@gmail.com>
2024-04-22 16:31:48 +05:30
Daman Arora
8cf4567f3c agnhost/netexec: handle nil pointer dereference for SCTP server
If the client immediately closes connection after SCTP handshake, the
remote-addr fetched by SCTP server can be nil, causing the server to crash.

Signed-off-by: Daman Arora <aroradaman@gmail.com>
2024-04-22 16:31:48 +05:30
Kubernetes Prow Robot
8946348636
Merge pull request #123900 from rmiki/task/123899
[ja]fix typo in "kubectl config delete-context -h"
2024-04-22 02:33:06 -07:00
Kubernetes Prow Robot
cb3bd5bc41
Merge pull request #124205 from mkarrmann/wait-for-pods-e2e-cleanup-111092
chore/refactor(e2e tests): Solidify Contract for and Cleanup WaitForPodsRunningReady
2024-04-22 01:24:24 -07:00
Kubernetes Prow Robot
4d9b50bcb1
Merge pull request #123927 from p0lyn0mial/upstream-cacher-decrease-watcher-draining-no-bookmark-after
apiserver/storage/cacher: decrease running time of TestCacheWatcherDrainingNoBookmarkAfterResourceVersionReceived
2024-04-22 01:24:10 -07:00
Ziqi Zhao
be4535bd34 convert k8s.io/kubernetes/pkg/proxy to contextual logging, part 1
Signed-off-by: Ziqi Zhao <zhaoziqi9146@gmail.com>
2024-04-22 13:08:41 +08:00
Kubernetes Prow Robot
c1924df0a8
Merge pull request #124421 from danwinship/pod-host-ips-test
Fix up pod hostIPs e2e
2024-04-21 20:09:33 -07:00
Kubernetes Prow Robot
5514277007
Merge pull request #124422 from danwinship/windows-hybrid-e2e-tags
Fix networking feature tags in Windows hybrid network e2e
2024-04-21 18:39:39 -07:00
Kubernetes Prow Robot
74877bb43b
Merge pull request #124417 from thockin/remove_gate_DefaultHostNetworkHostPortsInPodTemplates
Remove gate DefaultHostNetworkHostPortsInPodTemplates
2024-04-21 18:39:33 -07:00
Kubernetes Prow Robot
a6bfb92407
Merge pull request #124104 from SergeyKanzhelev/grpcTls
allow agnhost to set TLS gRPC
2024-04-21 18:39:24 -07:00
Kubernetes Prow Robot
01b2e12cc4
Merge pull request #124423 from danwinship/network-e2e-features
document (and fixup) sig-network e2e features
2024-04-21 16:25:27 -07:00
Kubernetes Prow Robot
37ca0377d5
Merge pull request #124117 from aojea/netpol
allow to use kube-network-policies on CI
2024-04-21 07:26:57 -07:00
Alvaro Aleman
ab4e555ab1 Use typed queue in Customresource Discovery Controller 2024-04-21 13:40:03 +02:00
Alvaro Aleman
0c7370bb85 Workqueue: Add generic versions that are properly typed
This change adds a generic version of the various workqueue types while
retaining compatibility for the existing exported symbols and constructors.
The generic variants are prefixed with `Typed` and the existing ones are
marked as deprecated to nudge people to transition without breaking
them.
2024-04-21 13:40:03 +02:00
Antonio Ojea
e636a63e85 allow to use kube-network-policies on CI 2024-04-21 10:01:31 +00:00
Patrick Ohly
00ceebef57 hack: add apidiff.sh
apidiff can be invoked for a single internal package or iterate over
everything, including staging. The base to compare against can be specified via
-r (similar to verify-golangci-lint.sh), with the default the base revision on
master (similar to -a in verify-golangci-lint.sh).
2024-04-20 22:02:26 +02:00
Dan Winship
52e88157b8 Document sig-network e2e features 2024-04-20 11:37:53 -04:00
Dan Winship
4a1058daa1 Fix networking feature tags in Windows hybrid network e2e 2024-04-20 11:24:50 -04:00
Dan Winship
01c7378531 Fix up pod hostIPs e2e
- The feature is GA so there's no feature gate so it doesn't need any
  special label now.

- The test is not dual-stack-specific, so it shouldn't claim to be.

- It asserted node-IP-assigning behavior that is not guaranteed to
  work on all clouds. (Among other things: that there are no "extra"
  InternalIPs, and that there are InternalIPs of every supported IP
  family, rather than there only being ExternalIPs of some families.)
2024-04-20 10:31:29 -04:00
Dan Winship
a1c1ef31df Remove unnecessary e2e feature.UDP
[Feature:UDP] was probably added in the past by analogy to
[Feature:SCTP], but is unnecessary since UDP support has always been
required.
2024-04-20 10:02:59 -04:00
jwcesign
f0aa62bc96 upgrade: upgrade dependencies github.com/prometheus/common to the newest version
Signed-off-by: jwcesign <jwcesign@gmail.com>
2024-04-20 09:53:16 +08:00
Kubernetes Prow Robot
7f68d014e5
Merge pull request #123749 from iholder101/swap_log/only_once_avoid_spam
[KEP2400] Avoid logging that swap cgroup controller is missing for every container
2024-04-19 17:00:46 -07:00
Kubernetes Prow Robot
caaa924def
Merge pull request #124416 from soltysh/update_sig_cli
Update sig-cli leads
2024-04-19 15:31:13 -07:00
Kubernetes Prow Robot
bad0f06520
Merge pull request #124156 from bells17/support-mac-os-verify-file-size
[hack/verify-file-sizes.sh] Support Mac OS X
2024-04-19 15:31:04 -07:00
Kubernetes Prow Robot
534d7cbc1a
Merge pull request #123905 from aojea/field_selector
Field selector for Services based on ClusterIP and Type
2024-04-19 15:30:55 -07:00
Tim Hockin
a2fb1b51ac
Remove DefaultHostNetworkHostPortsInPodTemplates gate
This behavior was deprecated in 1.28.
2024-04-19 15:24:15 -07:00
Sergey Kanzhelev
e9424f34ed allow agnhost to set TLS gRPC 2024-04-19 21:25:10 +00:00
Kubernetes Prow Robot
5a71f37805
Merge pull request #124316 from pohly/dra-kubelet-remove-v1alpha2
DRA: remove support for v1alpha2 kubelet gRPC API
2024-04-19 14:18:52 -07:00
Kubernetes Prow Robot
fd8239ce8f
Merge pull request #120696 from pohly/slog
slog support
2024-04-19 14:18:46 -07:00
bells17
70499e375e Changed to use "wc -c" to ensure the command works on both Linux and Mac OS X with a single implementation 2024-04-20 04:39:50 +09:00
Kubernetes Prow Robot
d1b2490c80
Merge pull request #119589 from carlory/fix-kubectl-1439
fix unusable secret manifest for type docker-registry
2024-04-19 11:44:48 -07:00
Kubernetes Prow Robot
3d58fe5a7b
Merge pull request #123970 from carlory/rm-volumelimit-interface
remove VolumePluginWithAttachLimits interface
2024-04-19 10:36:11 -07:00
Maciej Szulik
88ea2a1db0
Update sig-cli leads 2024-04-19 19:03:36 +02:00
Patrick Ohly
77341f7595 DRA: remove support for v1alpha2 kubelet API
The v1alpha2 API is several releases old. No current drivers should still
depend on it.
2024-04-19 18:27:05 +02:00
Maciej Szulik
7ec6762eb3
Promote Filip as sig-apps approver 2024-04-19 18:08:00 +02:00
Patrick Ohly
a66d2163f9 dra scheduler: fix data race in unit test
Clearing some irrelevant fields in objects caused a flaky data race alert
because in some cases, the objects were pointers into a shared cache. A better
solution is to treat the objects as read-only and ignore the irrelevant fields.
2024-04-19 17:14:13 +02:00
Kubernetes Prow Robot
f39ece24b2
Merge pull request #124393 from carlory/kubeadm-3045-1
Graduate the flag for structural output --experimental-output to just --output
2024-04-19 06:32:49 -07:00
Kubernetes Prow Robot
5e229a02d3
Merge pull request #124185 from aojea/e2e_stress_remotecommand
e2e test to execute 1000 times in a container with concurrency 10
2024-04-19 05:17:57 -07:00
Kubernetes Prow Robot
69b648a1d7
Merge pull request #124223 from chenk008/fix_apf_countTracker
Fix: EtcdOptions.StorageObjectCountTracker is nil, APF estimator got ObjectCountNotFoundErr
2024-04-19 01:56:35 -07:00
carlory
a23e278d15 Graduate the flag for structural output --experimental-output to just --output 2024-04-19 16:22:45 +08:00
Michal Wozniak
dccb775d6e Make e2e node tests more resiliant by ensuring the SIGTERM trap is registered 2024-04-19 09:05:36 +02:00
chenk008
c5d0e59d45
Update pkg/controlplane/apiserver/config_test.go
Co-authored-by: Paco Xu <paco.xu@daocloud.io>
2024-04-19 11:11:21 +08:00
Kubernetes Prow Robot
bf07ef3950
Merge pull request #124383 from danwinship/nftables-proxy-to-beta
KEP-3866 kube-proxy nftables to beta
2024-04-18 17:42:20 -07:00