Commit Graph

131104 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
111a2a0d2d Merge pull request #131850 from wongchar/odd-integer-cpu
cpumanager: uncorecache alignment for odd integer cpus
2025-07-14 00:32:23 -07:00
Kubernetes Prow Robot
30905afc24 Merge pull request #132920 from ylink-lfs/chore/maxptr_removal
chore: maxPtr utility removal with ptr.To
2025-07-13 22:24:22 -07:00
ylink-lfs
14d1bbf36f chore: maxPtr utility removal with ptr.To 2025-07-14 09:08:16 +08:00
Kubernetes Prow Robot
12dc894f80 Merge pull request #127322 from vrutkovs/tracing-set-audit-id
tracing: set audit-id on incoming requests
2025-07-13 17:58:23 -07:00
Kubernetes Prow Robot
5209b41328 Merge pull request #132889 from macsko/disable_schedulerasyncpreemption_feature_correctly_in_schedulerintegration_tests
Disable SchedulerAsyncPreemption feature correctly in integration tests
2025-07-13 13:18:22 -07:00
Kubernetes Prow Robot
4eecdc4cc6 Merge pull request #132915 from serathius/fix-test-progress-notify
Fix TestProgressNotify for etcd v3.6.2
2025-07-13 07:14:22 -07:00
Marek Siarkowicz
e383617284 Fix TestProgressNotify for etcd v3.6.2 2025-07-13 12:42:45 +02:00
Kubernetes Prow Robot
07f3e2f01b Merge pull request #132907 from PatrickLaabs/132749-boolPtrFn
chore: removed boolPtrFn helpers with ptr package implementation
2025-07-12 20:04:28 -07:00
Kubernetes Prow Robot
2b7de3ba74 Merge pull request #132469 from yongruilin/master_vg_ratcheting-list
feat(validation-gen): Enhance validation with new rules and core refactoring
2025-07-12 20:04:21 -07:00
Kubernetes Prow Robot
20114b2090 Merge pull request #132878 from ylink-lfs/chore/int32ptr_removal
chore: replace int32Ptr usage with ptr.To
2025-07-12 18:18:21 -07:00
ylink-lfs
e0f9914ef7 chore: replace int32Ptr usage with ptr.To 2025-07-13 08:12:55 +08:00
Kubernetes Prow Robot
3fc199b059 Merge pull request #132905 from ylink-lfs/chore/intptr_removal
chore: intPtr utility removal with ptr.To
2025-07-12 16:31:43 -07:00
yongruilin
cf4912eb4e chore(validation-gen): reorder imports 2025-07-12 21:18:59 +00:00
yongruilin
419e70b763 run update-codegen
Co-authored-by: Tim Hockin <thockin@google.com>
Co-authored-by: Aaron Prindle <aprindle@google.com>
Co-authored-by: Joe Betz <jpbetz@google.com>
2025-07-12 21:18:59 +00:00
Aaron Prindle
4c8f489b81 add +k8s:neq tests 2025-07-12 21:18:59 +00:00
Aaron Prindle
fc1c832c49 feat: add +k8s:neq tag which enforces field is neq to a specified comparable value 2025-07-12 21:18:59 +00:00
yongruilin
fb971325c3 feat(validation-gen): add new test cases for item validation
Co-authored-by: Aaron Prindle <aprindle@google.com>
2025-07-12 21:18:59 +00:00
yongruilin
5cc2721f6c feat(validation-gen): add k8s:item
- Added new validation functions for items in slices and maps, allowing for flexible matching and validation based on specified criteria.
- Introduced `SliceItem` function to handle item validation logic, including support for matching and validating based on unique identifiers.

Co-authored-by: Aaron Prindle <aprindle@google.com>
2025-07-12 21:18:57 +00:00
yongruilin
af05aa61d9 feat: Add validation ratcheting for subfields tag 2025-07-12 21:16:48 +00:00
yongruilin
daef13ecc3 chore: improve error rendering and add unit tests for ErrorMatcher 2025-07-12 21:16:48 +00:00
yongruilin
f40ee6f996 feat(validation-gen): add new test cases for validation of slices and maps 2025-07-12 21:16:48 +00:00
yongruilin
b059bb5514 feat(validation-gen): enhance validation functions for slices and maps
- Introduced MatchFunc type for flexible comparison in EachSliceVal and EachMapVal.
- Support ratcheting for list(eachSliceVal)
- Support ratcheting for map(eachMapVal)
- Added new test cases for various comparable and non-comparable structures.
- Improved error handling and validation checks in the validation generation process.

Co-authored-by: Tim Hockin <thockin@google.com>
Co-authored-by: Aaron Prindle <aprindle@google.com>
2025-07-12 21:16:48 +00:00
yongruilin
0b1fa64a92 refactor(validation-gen): streamline type validation logic
- Consolidated type validation checks into a new  function for improved readability and maintainability.
- Updated the  method to utilize the new validation function, simplifying error handling for unsupported types.
- Removed redundant code related to pointer and map validations, enhancing clarity in the validation process.
- Adjusted test cases in  to reflect changes in type handling and ensure consistency with the new validation logic.

Co-authored-by: Tim Hockin <thockin@google.com>
Co-authored-by: Aaron Prindle <aprindle@google.com>
Co-authored-by: Joe Betz <jpbetz@google.com>
2025-07-12 21:16:48 +00:00
yongruilin
7ad89e1997 feat(validation-gen): add FieldValidator
- Added FieldValidator interface to allow validation on field definitions.
- Implemented registration and initialization for field validators in the registry.
- Updated validation extraction logic to process field validators after tag and type validators.
- Improved error handling and validation checks in the validation generation process.

Co-authored-by: Tim Hockin <thockin@google.com>
2025-07-12 21:16:47 +00:00
Kubernetes Prow Robot
37a7addd0c Merge pull request #132264 from HirazawaUi/promote-to-conformance
Promote RelaxedEnvironmentVariableValidation test to Conformance #132219
2025-07-12 11:31:28 -07:00
Kubernetes Prow Robot
8ad953df46 Merge pull request #132748 from HirazawaUi/remove-unused-file
kubelet: remove unused package
2025-07-12 06:53:28 -07:00
Kubernetes Prow Robot
d4ac5efd9d Merge pull request #132896 from cpanato/update-go124-main
Bump dependencies, images and versions used to Go 1.24.5 and distroless iptables
2025-07-12 05:35:35 -07:00
Kubernetes Prow Robot
566d6acb70 Merge pull request #131759 from carlory/clean-volumehost
Remove unused GetHostIP method
2025-07-12 05:35:28 -07:00
PatrickLaabs
ba45e37b24 chore: removed boolPtrFn helpers with ptr package implementation 2025-07-12 11:35:07 +02:00
ylink-lfs
5971802fdd chore: intPtr removal with ptr.To 2025-07-12 16:44:39 +08:00
Kubernetes Prow Robot
34df3b5776 Merge pull request #132019 from danwinship/endpointslice-only-conformance
Promote two EndpointSlice e2e tests to Conformance
2025-07-11 18:15:27 -07:00
Kubernetes Prow Robot
d68aecabee Merge pull request #132894 from tallclair/stats-provider
Remove unuse runtimeCache parameter from stats.Provider
2025-07-11 14:19:34 -07:00
Kubernetes Prow Robot
0872760763 Merge pull request #130837 from aroradaman/kube-proxy-node-manager
Kube proxy node manager
2025-07-11 14:19:27 -07:00
Kubernetes Prow Robot
7a31dd60e5 Merge pull request #132796 from AnishShah/preemption
increase the verbosity of kubelet preemption log
2025-07-11 12:49:34 -07:00
Kubernetes Prow Robot
153c1b5c23 Merge pull request #132079 from cici37/mapMetrics
Add metrics for MutatingAdmissionPolicy
2025-07-11 12:49:27 -07:00
Carlos Panato
a06b3d356c Bump dependencies, images and versions used to Go 1.24.5 and distroless iptables
Signed-off-by: Carlos Panato <ctadeu@gmail.com>
2025-07-11 20:30:39 +02:00
Kubernetes Prow Robot
e44ddbf1da Merge pull request #132876 from serathius/watchcache-compact
Compact watch cache based on last observed etcd compaction
2025-07-11 11:25:28 -07:00
Tim Allclair
5eab2b7a6e Remove unuse runtimeCache parameter from stats.Provider 2025-07-11 10:59:20 -07:00
Daman Arora
46e2c22fd7 kube-proxy: merge OnNodeAdd and OnNodeUpdate into OnNodeChange
For kube-proxy, node addition and node update is semantically
considered as similar event, we have exactly same handler
logic for these two events resulting in duplicate code and
unit tests.
This merges the `NodeHandler` interface methods OnNodeAdd and
OnNodeUpdate into OnNodeChange along with the implementation
of the interface.

Signed-off-by: Daman Arora <aroradaman@gmail.com>
2025-07-11 23:06:44 +05:30
Daman Arora
fa9e466945 kube-proxy: merge NodeEligibleHandler with NodeManager
ProxyHealthServer now consumes NodeManager to get the latest
updated node object for determining node eligibility.

Signed-off-by: Daman Arora <aroradaman@gmail.com>
2025-07-11 23:06:44 +05:30
Daman Arora
c6735d9b3b kube-proxy: merge NodePodCIDRHandler with NodeManager
NodeManager, if configured with to watch for PodCIDR watch, watches
for changes in PodCIDRs and crashes kube-proxy if a change is
detected in PodCIDRs.

Signed-off-by: Daman Arora <aroradaman@gmail.com>
2025-07-11 23:06:44 +05:30
Marek Siarkowicz
bfeaae3310 Compact watch cache based on last observed etcd compaction 2025-07-11 18:25:46 +02:00
Daman Arora
c43104cbea kube-proxy: add NodeManager to manage life-cycle based on NodeIPs
NodeManager initialises node informers, waits for cache sync and polls for
node object to retrieve NodeIPs, handle node events and crashes kube-proxy
when change in NodeIPs is detected.

Signed-off-by: Daman Arora <aroradaman@gmail.com>
2025-07-11 21:48:52 +05:30
Daman Arora
af7abde0e5 kube-proxy: add NodeTopologyConfig for tracking topology labels
This simplifies how the proxier receives update for change in node
labels. Instead of passing the complete Node object we just pass
the proxy relevant topology labels extracted from the complete list
of labels, and the downstream event handlers will only be notified
when there are changes in topology labels.

Signed-off-by: Daman Arora <aroradaman@gmail.com>
2025-07-11 21:05:19 +05:30
Charles Wong
98c4514eae add e2e_node tests for uncore alignment 2025-07-11 10:32:01 -05:00
Charles Wong
70191dd21c fix uncore cache alignment for odd integer cpus 2025-07-11 10:32:00 -05:00
Maciej Skoczeń
9df4c35a60 Disable SchedulerAsyncPreemption feature correctly in integration tests 2025-07-11 12:28:50 +00:00
Kubernetes Prow Robot
9822e51403 Merge pull request #132864 from bzsuni/bz/etcd/image/build/3.6.2
Build etcd image v3.6.2
2025-07-11 04:13:28 -07:00
bzsuni
b1a35c640e Build etcd image v3.6.2
Signed-off-by: bzsuni <bingzhe.sun@daocloud.io>
2025-07-11 05:36:16 +00:00
Kubernetes Prow Robot
2bdcad7419 Merge pull request #132803 from aramase/aramase/f/token_request_uid_check
Make kubelet token cache UID-aware to prevent stale tokens after service account recreation
2025-07-10 22:25:27 -07:00