Commit Graph

129141 Commits

Author SHA1 Message Date
Dan Winship
0ee6b0dbfa Add "multi-node" TrafficDistribution test
The existing TrafficDistribution test didn't really distinguish "same
zone" from "same node". Add another test that makes sure there are at
least 2 nodes in each zone so it can do that.

(Keep the original test as well to avoid losing coverage in CI systems
with single-schedulable-node-per-zone clusters.)
2025-03-24 18:47:37 -04:00
Dan Winship
7956b37f62 Add test for trafficDistribution: PreferSameZone
(Identical to the PreferClose test.)
2025-03-24 18:47:36 -04:00
Dan Winship
23aff5dabd Split out the pieces of the TrafficDistribution test 2025-03-24 18:47:34 -04:00
Dan Winship
10cd54bee4 Streamling the node/zone-picking logic 2025-03-24 18:47:12 -04:00
Dan Winship
bc81a860b0 Abstract the logic of the TrafficDistribution test
Split the logic of creating the clients and the servers apart from the
logic of checking which clients connect to which servers. Add some
extra complexity to support additional use cases (like multiple
endpoints on the same node).
2025-03-24 18:47:10 -04:00
Dan Winship
b1a0fea4c6 Remove a level of indentation in the TrafficDistribution e2e
(No other changes to the code)
2025-03-24 18:46:50 -04:00
Dan Winship
8f7bb964de TrafficDistribution e2e cleanups
Remove endpointSlicesHaveSameZoneHints check. We are testing that
connections end up at the right endpoints. We don't need to validate
_why_ they go to the right endpoints, which is already tested by other
tests anyway. (Also, validating the hints becomes more complicated in
the same-node case, where there may or may not also be same-zone hints
depending on cluster configuration.)

Remove DeferCleanup calls; we don't need to delete anything manually
because namespaced resources will automatically be deleted when the
test case's namespace is deleted.

Remove a setting of pod.NodeName that was redundant with
e2epod.SetNodeSelection().
2025-03-24 18:46:28 -04:00
Dan Winship
2670462eb0 Remove TopologyHints and TrafficDistribution feature flags
The features are always enabled, so the tests don't need to be
conditional.
2025-03-20 15:06:33 -04:00
Kubernetes Prow Robot
b4c6895d0b
Merge pull request #130930 from siyuanfoundation/help
chore: update emulation version help msg.
2025-03-19 17:54:58 -07:00
Kubernetes Prow Robot
63bd581695
Merge pull request #130908 from BenTheElder/test-labels-match
Implement WithFeatureGate label proposal
2025-03-19 17:54:51 -07:00
Kubernetes Prow Robot
1704c52a2e
Merge pull request #130726 from rata/userns-e2e-kubelet-mappings
Userns: Add e2e tests for custom kubelet mappings, skip on windows and minor improvements
2025-03-19 17:54:43 -07:00
Kubernetes Prow Robot
6ec6faad61
Merge pull request #130681 from saschagrunert/image-volume-subpath-e2e
[KEP-4639] Image volume subpath e2e
2025-03-19 17:54:36 -07:00
Kubernetes Prow Robot
26b1d3424a
Merge pull request #129893 from simonfogliato/kubelet-log-permissions
Use uncompressed kubelet log file permissions when compressed.
2025-03-19 17:54:30 -07:00
Kubernetes Prow Robot
648620da0e
Merge pull request #130541 from swatisehgal/distribute-across-numa-beta-graduation
node: cpu-mgr: Graduation of `distribute-cpus-across-numa` policy option to Beta
2025-03-19 16:12:33 -07:00
Benjamin Elder
798ce5bde2 e2e framework: add BetaDefaultOff feature gate testcase 2025-03-19 15:36:47 -07:00
Benjamin Elder
507621e0da implement WithFeatureGate label proposal
Ginkgo label changes:
- Feature:Alpha => Alpha
- Feature:Beta => Beta
- Feature:OffByDefault mirrored to labels from test name
- BetaOffByDefault label added
2025-03-19 15:19:28 -07:00
Kubernetes Prow Robot
67bdb110b4
Merge pull request #130121 from yongruilin/featuregate-unversion-clean
[compatibility version] clean using unversioned featuregate
2025-03-19 14:34:30 -07:00
Siyuan Zhang
0ec6566c68 chore: update emulation version help msg.
Signed-off-by: Siyuan Zhang <sizhang@google.com>
2025-03-19 13:07:19 -07:00
yongruilin
a2c739f3d5 chore: [e2e/framework] Updates test feature gates to versioned feature gates 2025-03-19 20:02:55 +00:00
yongruilin
7b5cbbb961 chore: Remove unused unversioned feature gate map by consolidating feature gate files 2025-03-19 20:02:53 +00:00
Kubernetes Prow Robot
664d405816
Merge pull request #130876 from rzlink/feature
[KEP-5100] WinDSR to Beta
2025-03-19 13:00:55 -07:00
Kubernetes Prow Robot
68ba091fca
Merge pull request #130844 from danwinship/improved-traffic-distribution
KEP-3015 PreferSameZone/PreferSameNode traffic distribution
2025-03-19 13:00:48 -07:00
Kubernetes Prow Robot
5c4071cc1d
Merge pull request #130649 from natasha41575/pod-conditions-scheduler
[FG:PodObservedGenerationTracking] scheduler sets observedGeneration on pod conditions
2025-03-19 13:00:40 -07:00
Kubernetes Prow Robot
ab3cec0701
Merge pull request #130447 from pohly/dra-device-taints
device taints and tolerations (KEP 5055)
2025-03-19 13:00:32 -07:00
Sascha Grunert
d7ed3f1c9b
Add image volume subpath e2e tests
Adding new test cases for subpath handling for image volumes.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2025-03-19 20:15:32 +01:00
Kubernetes Prow Robot
1039822a74
Merge pull request #130491 from swatisehgal/cpu-allocation-numa-spread-metric
Add metrics to capture CPU allocation spread across NUMA nodes
2025-03-19 11:52:40 -07:00
Kubernetes Prow Robot
076c7b0b65
Merge pull request #130079 from yongruilin/compatibility-remove-reset
[compatibility version] Avoid resetting config when adding flags
2025-03-19 11:52:33 -07:00
Swati Sehgal
ba09a97341 node: cpu-mgr: Graduation of distribute-cpus-across-numa to Beta
Signed-off-by: Swati Sehgal <swsehgal@redhat.com>
2025-03-19 18:36:01 +00:00
Kubernetes Prow Robot
f9b27edf39
Merge pull request #130925 from serathius/watchcache-snapshotter-interface
Create Snapshotter interface to fake the implementation
2025-03-19 10:19:38 -07:00
Kubernetes Prow Robot
593906d607
Merge pull request #130924 from serathius/watchcache-delegate-precedense
Change precedence order for continue and legacy exact match
2025-03-19 10:19:30 -07:00
Kubernetes Prow Robot
32260dfa7b
Merge pull request #130922 from serathius/watchcache-delegate-state
Extend shouldDelegateList testing incorportating state of cacher
2025-03-19 10:19:23 -07:00
Kubernetes Prow Robot
e5558a81c9
Merge pull request #130899 from serathius/watchcache-error
Implement watchcache returning error from etcd that caused cache reinitialization
2025-03-19 10:19:13 -07:00
Kubernetes Prow Robot
fba63656c9
Merge pull request #130498 from swatisehgal/distribute-across-numa-e2e-tests
node: cpumgr: e2e: Tests for `distribute-cpus-across-numa` policy option
2025-03-19 10:19:06 -07:00
Kubernetes Prow Robot
dc6f70c12d
Merge pull request #130290 from nokia/4540-strict-cpu-reservation-beta
KEP-4540: strict-cpu-reservation beta
2025-03-19 10:18:58 -07:00
Kubernetes Prow Robot
2b79593ece
Merge pull request #130225 from ritazh/dra-admin-access-namespace
DRA: AdminAccess validate based on namespace label
2025-03-19 10:18:50 -07:00
Kubernetes Prow Robot
990b02bf39
Merge pull request #130033 from ardaguclu/completion-use-restclientgetter
Add completion in kubectl debug
2025-03-19 10:18:40 -07:00
Kubernetes Prow Robot
4467dd3d6c
Merge pull request #130028 from AkihiroSuda/subids-per-pod
kubelet: config: add userNamespaces.idsPerPod
2025-03-19 10:18:33 -07:00
yongruilin
dab8758a59 chore: avoid resetting config of emulation verison and featuregates when adding flags
This change introduces improvements to the component compatibility registry:
- Modify the kube-scheduler test server to create a separate ComponentGlobalsRegistry
- Update the compatibility registry to handle multiple flag configurations
- Enhance test cases to support emulation version mapping between components
2025-03-19 16:31:13 +00:00
Kubernetes Prow Robot
f1c634f93e
Merge pull request #130463 from sanposhiho/ga-mlk
feat: graduate MatchLabelKeysInPodAffinity to GA
2025-03-19 09:06:31 -07:00
Natasha Sarkar
1889e0cad6 scheduler sets observedGeneration in pod conditions 2025-03-19 15:45:41 +00:00
Kensei Nakada
10c6a4258f feat: graduate MatchLabelKeysInPodAffinity to GA 2025-03-19 23:06:04 +09:00
Swati Sehgal
327ebcffc8 node: cpumgr: e2e: Define constants and use them instead of literals
Signed-off-by: Swati Sehgal <swsehgal@redhat.com>
2025-03-19 13:19:20 +00:00
Swati Sehgal
c90f0539c8 node: cpumgr: e2e: Tests for distribute-cpus-across-numa policy option
Signed-off-by: Swati Sehgal <swsehgal@redhat.com>
2025-03-19 13:19:03 +00:00
Swati Sehgal
b6a3ac47de node: cpumgr: e2e: tests for NUMA allocation spread metrics
Signed-off-by: Swati Sehgal <swsehgal@redhat.com>
2025-03-19 13:13:56 +00:00
Marek Siarkowicz
3edeb60c08 Create Snapshotter interface to fake the implementation 2025-03-19 14:08:21 +01:00
Marek Siarkowicz
7da942ca74 Change precedence order for continue and legacy exact match
This doesn't matter for shouldDelegateList, but matters when picking
source of RV. RV from continue takes precedence.
2025-03-19 14:06:34 +01:00
Dan Winship
88f8e6697d Implement PreferSameNode traffic distribution in kube-proxy 2025-03-19 08:46:17 -04:00
Dan Winship
c85083589c Clarify hostname vs node name in kube-proxy
Various parts of kube-proxy passed around a "hostname", but it is
actually the name of the *node* kube-proxy is running on, which is not
100% guaranteed to be exactly the same as the hostname. Rename it
everywhere to make it clearer that (a) it is definitely safe to use
that name to refer to the Node, (b) it is not necessarily safe to use
that name with DNS, etc.
2025-03-19 08:46:15 -04:00
Dan Winship
ff640c3679 Minor updates to kube-proxy topology code
Clarify the comments around terminating endpoints.

Remove stale references to the ProxyTerminatingEndpoints feature gate
in the unit tests.
2025-03-19 08:39:13 -04:00
Dan Winship
19952a2b7b Implement the EndpointSlice controller side of PreferSameZone/PreferSameNode 2025-03-19 08:39:13 -04:00