Commit Graph

130797 Commits

Author SHA1 Message Date
Sam Dowell
1c1f00a5f4 fix: add RV check on GC delete calls
It was possible that the object was changed between the live Get and
Delete calls while processing an attempt to delete, causing incorrect
deletion of objects by the garbage collector. A defensive
resourceVersion precondition is added to the delete call to ensure that
the object was properly classified for deletion.
2025-07-02 11:01:56 -07:00
Jordan Liggitt
84f6d742c5 Make dynamic and metadata clients plumb DeleteOptions 2025-07-02 09:50:33 -07:00
Arthur Befumo
33cd2e1ba0 Fix AuthInfo godoc for Token / TokenFile precedence (#132659)
* Fix AuthInfo godoc for Token / TokenFile precedence

* nit

* update
2025-07-02 08:55:24 -07:00
Kubernetes Prow Robot
01c03ae9cf Merge pull request #132676 from dims/bump-go.yaml.in/yaml/v3-to-v3.0.4
Bump go.yaml.in/yaml/v3 to v3.0.4
2025-07-02 07:43:25 -07:00
Davanum Srinivas
58e620cc44 Bump go.yaml.in/yaml/v3 to v3.0.4
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2025-07-02 07:37:06 -04:00
Kubernetes Prow Robot
95bff1b249 Merge pull request #132003 from tchap/kubectl-apply-cache-openapi-schema
kubectl: Cache Verifier.HasSupport calls
2025-07-02 04:03:26 -07:00
Kubernetes Prow Robot
4186edc4d1 Merge pull request #132615 from mimowo/commonize-pod-indexing
Commonize filtering of Pods by Owner with all orphans in namespace
2025-07-02 02:03:32 -07:00
Kubernetes Prow Robot
a735818b7a Merge pull request #132533 from nojnhuh/dra-orphan-claim
DRA: fix deleting orphaned ResourceClaim on startup
2025-07-02 02:03:25 -07:00
Ondra Kupka
9043afae6d kubectl: Cache Verifier.HasSupport calls
The underlying implementation decodes OpenAPI schema on every HasSupport
call. This causes these calls to be expensive and noticable when many
resources are being applied.

This patch wraps the verifier with a thread-safe cache so that when many
resources of the same kind are being checked, only the first call
includes schema decoding.

This solution is specifically limited to the kubectl codebase without
any changes required in client-go, for now, although that is where the
issue is actually originating.
2025-07-02 08:40:37 +02:00
Kubernetes Prow Robot
cc1fc3eea0 Merge pull request #132380 from gnufied/move-recovery-tests-ga
Move recovery tests ga
2025-07-01 15:21:24 -07:00
Kubernetes Prow Robot
4dbfe24404 Merge pull request #132541 from acpana/acpana/helpers-tests
tests: add more units
2025-07-01 14:15:24 -07:00
Kubernetes Prow Robot
db49c25956 Merge pull request #132654 from Jefftree/b-openapi
Bump kube-openapi
2025-07-01 12:43:30 -07:00
Kubernetes Prow Robot
d3296eac97 Merge pull request #132614 from mimowo/fix-job-controller-edge
Fix validation for Job with suspend=true,completions=0 to set Complete condition
2025-07-01 12:43:24 -07:00
Kubernetes Prow Robot
77b5304f60 Merge pull request #132638 from ylink-lfs/chore/admissionregistration_utilpointer_removal
chore: remove utilpointer usage in package pkg/apis/admissionregistration
2025-07-01 11:35:31 -07:00
Kubernetes Prow Robot
2ed72471e1 Merge pull request #131956 from pohly/dra-e2e-conformance
DRA E2E: run some tests without feature label
2025-07-01 11:35:24 -07:00
Kubernetes Prow Robot
5ba3235b1b Merge pull request #132529 from PatrickLaabs/132086-kubeapiserver
Replaced deprecated pointer pkg in pkg/kubeapiserver
2025-07-01 10:27:30 -07:00
Kubernetes Prow Robot
65c12acf7d Merge pull request #132413 from PatrickLaabs/132086
Replaced deprecated pointer pkg with new ptr pkg on src/apimachinery
2025-07-01 10:27:24 -07:00
Kubernetes Prow Robot
20141c8a92 Merge pull request #132648 from serathius/kep-5116-ga
Graduate streaming list encoding feature gates
2025-07-01 09:21:59 -07:00
Kubernetes Prow Robot
f885352d0b Merge pull request #132623 from utam0k/scheduler-perf-emulate-versino
scheduler_perf: Fix version emulation for empty featureGates map
2025-07-01 09:21:52 -07:00
Kubernetes Prow Robot
e140f056dc Merge pull request #132585 from jpbetz/drop-openapi-name-dependant-test
Drop test that checks openAPI resource that checks OpenAPI resource name
2025-07-01 09:21:45 -07:00
Kubernetes Prow Robot
2ee568260f Merge pull request #132087 from ania-borowiec/move_code_and_status
Moving Scheduler interfaces to staging: Move Code and Status from pkg/scheduler/framework to k8s.io/kube-scheduler/framework
2025-07-01 09:21:38 -07:00
Kubernetes Prow Robot
a9841ca3b3 Merge pull request #131790 from chengjoey/fix/sts-validation
fix pod template spec validation missing in sts
2025-07-01 09:21:31 -07:00
Kubernetes Prow Robot
c3b06a5366 Merge pull request #131615 from danwinship/proxy-bfr
update BoundedFrequencyRunner for kube-proxy
2025-07-01 09:21:24 -07:00
Jefftree
ec6471f63e Remove gnostic-models gopkg.in/yaml.v3 unwanted dependency 2025-07-01 15:56:40 +00:00
Jefftree
d04ee27c98 Update vendor 2025-07-01 15:23:58 +00:00
Jefftree
b41d375b88 pin kube-openapi to v0.0.0-20250628140032-d90c4fd18f59 2025-07-01 15:21:22 +00:00
Michal Wozniak
6d5e0bf2a2 review remarks 2025-07-01 16:59:19 +02:00
Kubernetes Prow Robot
b99ca3f736 Merge pull request #132498 from ffromani/e2e-serial-node-cpumanager-fix-ordered
e2e: serial: node cpumanager parity with the old suite
2025-07-01 07:15:31 -07:00
Kubernetes Prow Robot
ce06b1d934 Merge pull request #131791 from win-t/master
feat: kubectl debug: add label for debugger pod for easy cleaning up the debug pods
2025-07-01 07:15:24 -07:00
Antonio Ojea
459188ce25 Port BoundedFrequencyRunner from flowcontrol.RateLimiter to clock.Clock
Co-authored-by: Dan Winship <danwinship@redhat.com>
2025-07-01 08:54:14 -04:00
Dan Winship
eae17c21b0 Change how BoundedFrequencyRunner retries work
Rather than having a RetryAfter function, do a retry (at a fixed
interval) if the work function returns an error.

Co-authored-by: Antonio Ojea <aojea@google.com>
2025-07-01 08:54:14 -04:00
Dan Winship
c16ee887ef Remove burst syncs from BoundedFrequencyRunner
Burst syncs are theoretically useful for dealing with a single change
that results in multiple Run() calls (eg, a Service and EndpointSlice
both changing), but 2 isn't enough to cover all cases, and a better
way of dealing with this problem is to just use a smaller
minSyncPeriod.

Co-authored-by: Antonio Ojea <aojea@google.com>
2025-07-01 08:54:14 -04:00
Dan Winship
0298e04ea0 Updates to BoundedFrequencyRunner
- Use structured logging.
- Use t.Helper() in unit tests.
- Improve some comments.
- Remove an unnecessary check/panic.

Co-authored-by: Antonio Ojea <aojea@google.com>
2025-07-01 08:54:14 -04:00
Antonio Ojea
6da9d363f3 Copy BoundedFrequencyRunner to kube-proxy 2025-07-01 08:53:54 -04:00
Marek Siarkowicz
799aa8b2a8 Graduate streaming list encoding feature gates 2025-07-01 13:04:40 +02:00
Kubernetes Prow Robot
eb1b603cda Merge pull request #132472 from xiaoweim/validation-cleanup
Cleanup: Remove redundant detail messages in field.Required
2025-07-01 01:33:25 -07:00
Kubernetes Prow Robot
ffa8eb89da Merge pull request #132625 from ylink-lfs/chore/rest_delete_utilpointer_removal
chore: remove utilpointer usage in package staging/src/k8s.io/apiserver/pkg/registry/rest/delete
2025-07-01 00:25:24 -07:00
Kubernetes Prow Robot
01401c66ec Merge pull request #132640 from pacoxu/kubeadm-missing-log
kubeadm: fix missing log of health check
2025-06-30 22:46:32 -07:00
Kubernetes Prow Robot
bc9a78479f Merge pull request #132465 from yongruilin/master_vg_fix-fuzz-test
fix: versioned validation test avoid incorrect conversion
2025-06-30 20:58:29 -07:00
Paco Xu
6a25bdaac8 kubeadm: fix missing log of health check 2025-07-01 11:33:52 +08:00
Kubernetes Prow Robot
02325c22c0 Merge pull request #132633 from estesp/fix-concurrent-map-write-logline
fix: kubelet CRI portforward concurrent map write on error
2025-06-30 19:50:37 -07:00
Kubernetes Prow Robot
a876748951 Merge pull request #128767 from knrc/nested-filterlatency-tracing
Trace across start handler invocations, nesting spans
2025-06-30 19:50:30 -07:00
ylink-lfs
764a8bc8b6 chore: remove utilpointer usage in package pkg/apis/admissionregistration 2025-07-01 09:10:58 +08:00
yongruilin
a55318fe14 fix: versioned validation test avoid incorrect conversion 2025-06-30 23:11:49 +00:00
Alex Pana
4c09aa9073 review: feedback
Signed-off-by: Alex Pana <8968914+acpana@users.noreply.github.com>
2025-06-30 22:53:40 +00:00
Kubernetes Prow Robot
b3341bd4ae Merge pull request #132544 from acpana/acpana/runtime-tests
tests: runtime units
2025-06-30 15:50:30 -07:00
Alex Pana
776382daa5 review: assert
Signed-off-by: Alex Pana <8968914+acpana@users.noreply.github.com>
2025-06-30 21:19:21 +00:00
Alex Pana
43f6bd45f5 review: assert
Signed-off-by: Alex Pana <8968914+acpana@users.noreply.github.com>
2025-06-30 21:06:47 +00:00
Phil Estes
fa87098ae3 fix: kubelet CRI portforward concurrent map write on error
Changing this from value printing to just the pointer value fixes a
known issue with possible "concurrent map write" errors from the Go
runtime when this error occurs. This problem surfaces when the map
within the struct `h.conn` is iterated over, but can be modified by
other threads while this error is being logged.

Phil Estes <estesp@gmail.com>
2025-06-30 17:00:27 -04:00
Kubernetes Prow Robot
201325e869 Merge pull request #132433 from michaelasp/configurablecle
feat: make CLE timers configurable
2025-06-30 12:08:31 -07:00