yongruilin
2d7dd9164f
Refactor: Centralize declarative validation and migration logic
...
The boilerplate for running declarative validation was duplicated across multiple resource strategies. This included feature gate checks, metric identifier generation, error comparison, and conditional merging logic, which made the code verbose and difficult to maintain.
This commit introduces a new helper function, `rest.ValidateDeclarativelyWithMigrationChecks`, to encapsulate this common logic. All relevant strategies have been refactored to use this new function, resulting in cleaner and more concise code.
2025-09-26 17:22:46 +00:00
Kubernetes Prow Robot
4f72f0fdbf
Merge pull request #134113 from jpbetz/resource-claim-status-pool
...
Enable Declarative Validation Pool status field of ResourceClaim
2025-09-26 09:16:18 -07:00
Kubernetes Prow Robot
aecc114b37
Merge pull request #134275 from humblec/fix
...
Fix error messages in volume path handler
2025-09-26 07:42:19 -07:00
Kubernetes Prow Robot
f97ee63b5d
Merge pull request #134254 from dims/make-containerd-download-more-robust
...
containerd download should be more robust to remove flakiness
2025-09-26 03:04:19 -07:00
Kubernetes Prow Robot
f884da7ff9
Merge pull request #134277 from lalitc375/devex
...
Improve developer experience for DV tests
2025-09-25 21:12:16 -07:00
Kubernetes Prow Robot
9a3dce00ae
Merge pull request #134271 from Jefftree/scheme-nil
...
Add nil scheme check in GetReference
2025-09-25 14:54:15 -07:00
Kubernetes Prow Robot
bab29b5b62
Merge pull request #134274 from neolit123/1.35-fix-discovery-client-lb
...
kubeadm: use JoinHostPort for Waiter functions
2025-09-25 12:26:15 -07:00
Joe Betz
7efc77f493
Apply feedback
2025-09-25 14:51:52 -04:00
Lalit Chauhan
3015e58e40
Improve tests devex for DV tests.
2025-09-25 17:29:30 +00:00
Lubomir I. Ivanov
bd075eb98c
kubeadm: use JoinHostPort in WaitControlPlaneClient
...
Using naive string concat with ":" does not work for IPv6.
Apply the fix to WaitForKubelet as well.
2025-09-25 19:11:10 +02:00
Humble Devassy Chirammal
ad8f91fb0f
Fix error messages in volume path handler
...
Signed-off-by: Humble Devassy Chirammal <humble.devassy@gmail.com >
2025-09-25 22:37:03 +05:30
Davanum Srinivas
6031ff29c1
make containerd download more robust
2025-09-25 12:17:34 -04:00
Kubernetes Prow Robot
243d8c000e
Merge pull request #133190 from aman4433/kube-proxy-statusz-endpoints
...
kube-proxy: list available endpoints in /statusz
2025-09-25 07:28:23 -07:00
Jefftree
051b29bde3
Add nil scheme check in GetReference
2025-09-25 14:28:17 +00:00
Kubernetes Prow Robot
2003bd0ced
Merge pull request #134265 from neolit123/1.35-fix-discovery-client-lb
...
kubeadm: ensure waiting for apiserver uses a local client
2025-09-25 06:36:20 -07:00
Lubomir I. Ivanov
0010d3992a
kubeadm: ensure waiting for apiserver uses a local client
...
When waiting for the kube-apiserver to report 'ok'
in the 'init' and 'join' phase 'wait-control-plane', a client
constructed from the 'admin.conf' is used. In the case of the
kube-apiserver, the discovery client is used so that
anonymous-auth works. But if 'admin.conf' is used as is,
it would point to the CPE and not the LAE.
Implement a new method WaitControlPlaneClient() for both
init.go and join.go that patches the 'Server' field in the
loaded v1.Config to point to the LAE, before constructing
a client set and using it in the kube-apiserver waiter.
2025-09-25 14:43:45 +02:00
Kubernetes Prow Robot
0969bb173c
Merge pull request #134260 from cpanato/update-rules
...
update publishing rules for 1.33/1.34 to set go1.24.7
2025-09-25 04:22:17 -07:00
Carlos Panato
a96ac3a276
update publishing rules for 1.33/1.34 to set go1.24.7
...
Signed-off-by: Carlos Panato <ctadeu@gmail.com >
2025-09-25 09:55:13 +02:00
Kubernetes Prow Robot
0e014fc8dd
Merge pull request #134192 from hoteye/fix-context-usage-in-discovery
...
Fix context usage in kubeadm discovery file
2025-09-25 00:40:24 -07:00
Kubernetes Prow Robot
29bb3a5d07
Merge pull request #133841 from yangjunmyfm192085/fixcmdtest
...
[failing-test] fix kubectl exec command in cmd test
2025-09-24 13:02:15 -07:00
Aman Shrivastava
409ad3944f
added unit test for /statusz endpoints
2025-09-24 21:34:08 +05:30
Kubernetes Prow Robot
c0b9ab3351
Merge pull request #134245 from macsko/revert_pr_133213
...
Revert "fix: handle corner cases in the async preemption"
2025-09-24 08:34:18 -07:00
Joe Betz
dbe4143de6
generate
2025-09-24 10:00:17 -04:00
Joe Betz
7019a088c3
Add declarative validation tests for ResourceClaim status
2025-09-24 10:00:17 -04:00
Joe Betz
8606fa03dc
Add declarative validation of ResourceClaim status pool field
2025-09-24 10:00:17 -04:00
Joe Betz
e8f243dac2
Add output tests
2025-09-24 10:00:17 -04:00
Joe Betz
83cf635818
Add k8s-long-name-segments format
...
# Conflicts:
# staging/src/k8s.io/apimachinery/pkg/api/validate/strfmt_test.go
# staging/src/k8s.io/code-generator/cmd/validation-gen/validators/format.go
2025-09-24 10:00:16 -04:00
Joe Betz
697113f5f0
Add utility function to errors to allow format composition
2025-09-24 10:00:16 -04:00
Kubernetes Prow Robot
f24a967c42
Merge pull request #134155 from serathius/gzip-benchmark
...
Improve BenchmarkSerializeObject benchmark
2025-09-24 06:34:18 -07:00
Marek Siarkowicz
273912fb7f
Improve BenchmarkSerializeObject benchmark
...
Use sub-benchmarks with "Key=Value" naming convention to used by https://pkg.go.dev/golang.org/x/perf/cmd/benchstat .
Use ReportMetric to report response size instead of writing it to logs.
2025-09-24 14:34:34 +02:00
Kubernetes Prow Robot
ad4a8a7e8a
Merge pull request #134225 from jsafrane/fix-selinux-test-event
...
Fix SELinux e2e tests waiting for "container created" event
2025-09-24 05:18:18 -07:00
Maciej Skoczeń
d2e6be440c
Revert "Merge pull request #133213 from sanposhiho/second-trial-conor"
...
This reverts commit a2bf45b081 , reversing
changes made to 2b2ea27250 .
2025-09-24 11:05:16 +00:00
Kubernetes Prow Robot
2fc2c0a38d
Merge pull request #134199 from arkadeepsen/update-image-tag
...
Promote regression-issue-74839 to 1.4
2025-09-23 19:56:13 -07:00
Kubernetes Prow Robot
1eb2c4182d
Merge pull request #134102 from mayank-agrwl/namespace-nodelifecycle-contextual
...
Replace HandleError with HandleErrorWithContext
2025-09-23 18:50:17 -07:00
Kubernetes Prow Robot
1a04a958fb
Merge pull request #134228 from liggitt/proto-gogo-poc
...
gogo protobuf dependency cleanup
2025-09-23 16:46:20 -07:00
Kubernetes Prow Robot
c4ecd6b129
Merge pull request #134221 from danwinship/strict-lint-cleanup
...
Remove some unused bits of verify-golangci-lint.sh
2025-09-23 16:46:13 -07:00
Kubernetes Prow Robot
08489ee0d8
Merge pull request #134062 from rbiamru/add-nodeconformance-labels
...
test/e2e/node: add [NodeConformance] label to ConfigMap update test
2025-09-23 15:48:13 -07:00
Kubernetes Prow Robot
0aeda7ba37
Merge pull request #125140 from huww98/sets-slices-sort
...
util/sets: simplify List() by using slices.Sort
2025-09-23 14:40:13 -07:00
Kubernetes Prow Robot
56e078d689
Merge pull request #134138 from aditigupta96/refactor-cloud-provider-waitfornamedcachesync
...
refactor(cloud-provider): Use WaitForNamedCacheSyncWithContext
2025-09-23 13:00:15 -07:00
Jordan Liggitt
a87068c685
Clean up gogo dependency tracking
2025-09-23 13:59:37 -04:00
Jordan Liggitt
b7567b980b
Remove non-generated use of gogo dependencies
2025-09-23 13:44:21 -04:00
Jordan Liggitt
840aa4722e
Drop unnecessary gogo dependencies
2025-09-23 13:44:20 -04:00
Kubernetes Prow Robot
31a00e37ed
Merge pull request #134223 from cpanato/updates-go-images
...
update kube-cross image
2025-09-23 09:46:14 -07:00
Jan Safranek
7930c2db4c
Fix SELinux e2e tests waiting for "container created" event
...
A recent PR has changed the content of "Started container" event to "Container started".
Instead of checking the exact event message, check the event source
("kubelet") and reason ("Started"), that should uniquely identify the
event.
2025-09-23 18:08:50 +02:00
Carlos Panato
48d5664430
update kube-cross image
...
Signed-off-by: Carlos Panato <ctadeu@gmail.com >
2025-09-23 15:25:21 +02:00
Dan Winship
ac35a0a99a
Remove some unused bits of verify-golangci-lint.sh
...
The "strict" option was removed but was still referenced.
2025-09-23 08:39:49 -04:00
Kubernetes Prow Robot
9f40c6f62c
Merge pull request #134137 from aditigupta96/refactor-core-waitfornamedcachesync
...
refactor: Use WaitForNamedCacheSyncWithContext in core components
2025-09-23 01:32:16 -07:00
Kubernetes Prow Robot
1b5fb46b72
Merge pull request #134209 from Jefftree/gengo-bmp
...
Bump gengo
2025-09-22 14:26:12 -07:00
Jefftree
37592a026b
bump gengo
2025-09-22 18:54:58 +00:00
Kubernetes Prow Robot
1aec2eb003
Merge pull request #134156 from JoelSpeed/enable-ssa-tags
...
Enable SSATags linter to enforce +listType on lists in APIs
2025-09-22 09:50:17 -07:00