Commit Graph

23655 Commits

Author SHA1 Message Date
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
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
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
PatrickLaabs
ba45e37b24 chore: removed boolPtrFn helpers with ptr package implementation 2025-07-12 11:35:07 +02: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
Marek Siarkowicz
bfeaae3310 Compact watch cache based on last observed etcd compaction 2025-07-11 18:25:46 +02: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
Anish Ramasekar
45dfb46448 Add TokenRequestServiceAccountUIDValidation feature gate with UID validation
This change introduces the TokenRequestServiceAccountUIDValidation feature
gate and implements feature-gated service account UID validation for the
TokenRequest API. When enabled, the API validates that the service account
UID in token requests matches the actual service account UID, preventing
token requests for recreated service accounts with the same name but
different UIDs.

Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
2025-07-10 23:20:23 -05:00
Cici Huang
f2de8897e7 Add metrics for mutation
Signed-off-by: Cici Huang <cicih@google.com>
2025-07-10 12:13:40 -07:00
Marek Siarkowicz
03e32bd260 Expose compaction revision from compactor 2025-07-10 16:01:02 +02:00
Marek Siarkowicz
5e3ea8e279 Add test for compactor 2025-07-10 16:00:12 +02:00
Kubernetes Prow Robot
bb415b6933 Merge pull request #132823 from yongruilin/master_vg_enum
feat(validation-gen): add k8s:enum validators
2025-07-09 17:53:35 -07:00
Kubernetes Prow Robot
93bb3858f3 Merge pull request #132845 from ylink-lfs/chore/int64ptr_removal
chore: replace int64ptr with ptr.To
2025-07-09 10:11:34 -07:00
Kubernetes Prow Robot
da7058e92c Merge pull request #132813 from serathius/compact-test
Add testing compaction in storage List tests
2025-07-09 10:11:26 -07:00
ylink-lfs
26f54e5c0e chore: replace int64ptr with ptr.To 2025-07-09 21:35:45 +08:00
Kubernetes Prow Robot
3b12bcd546 Merge pull request #132777 from PatrickLaabs/132086-pkg-plugin
chore: depr. pointer pkg replacement for pkg/security and plugin/pkg
2025-07-08 20:01:26 -07:00
Kubernetes Prow Robot
1d392729b5 Merge pull request #132775 from ash2k/use-sets-type
Use `sets.Set` instead of a local impl
2025-07-08 14:33:33 -07:00
Kubernetes Prow Robot
0370a809f3 Merge pull request #132819 from ylink-lfs/chore/uint64ptr_usage_removal
chore: remove residual uint64ptr usage with k8s.io/util/ptr
2025-07-08 11:45:33 -07:00
yongruilin
89344dc239 feat(validation-gen): add k8s:enum validator 2025-07-08 18:38:04 +00:00
yongruilin
345641f106 feat(validation-gen): add Enum validator function 2025-07-08 18:38:04 +00:00
Kubernetes Prow Robot
4142fb530c Merge pull request #132715 from googs1025/fix/flaky_patch
fix: TestPatchResourceTimeout flaky test
2025-07-08 09:03:34 -07:00
Kubernetes Prow Robot
3aa0bb9725 Merge pull request #132772 from saschagrunert/protoc-jwt
Convert `externaljwt` from gogo to protoc
2025-07-08 07:53:27 -07:00
ylink-lfs
30a3bfdbcb chore: remove residual uint64ptr usage with ptr package 2025-07-08 22:20:16 +08:00
Kubernetes Prow Robot
2dfb3e4ffd Merge pull request #131203 from xuzhenglun/fix-ws-race
make sure all streams are created before start demux websocket
2025-07-08 06:45:26 -07:00
googs1025
83584d13c4 fix: TestPatchResourceTimeout flaky test
Signed-off-by: googs1025 <googs1025@gmail.com>
2025-07-08 20:27:34 +08:00
xuzhenglun
3379d5ac4b make sure all streams are created before starting demux websocket 2025-07-08 18:33:21 +08:00
Marek Siarkowicz
c53b41e98c Add testing compaction in storage List tests 2025-07-08 11:41:36 +02:00
PatrickLaabs
c530b02257 chore: depr. pointer pkg replacement for pkg/security and plugin/pkg 2025-07-08 11:22:07 +02:00
Kubernetes Prow Robot
3d13f39f24 Merge pull request #132788 from ylink-lfs/chore/strptr_removal
chore: remove strPtr usage with ptr.To
2025-07-08 00:35:36 -07:00
Sascha Grunert
841886df76 Convert externaljwt from gogo to protoc
Use standard protoc for the `externaljwt` package instead of gogo.

Part of https://github.com/kubernetes/kubernetes/issues/96564

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2025-07-08 08:08:30 +02:00
Kubernetes Prow Robot
7948fec34b Merge pull request #132792 from ylink-lfs/chore/typo_invaILd
chore: typo 'invaILd' occurrence replacement
2025-07-07 21:45:25 -07:00
Kubernetes Prow Robot
5f34f9233b Merge pull request #132794 from PatrickLaabs/132749-boolptr
chore: replacement of boolPtr helper functions to ptr packge
2025-07-07 20:13:26 -07:00
ylink-lfs
830a088d1b chore: remove strPtr usage with ptr.To instead 2025-07-08 09:03:38 +08:00