Commit Graph

130670 Commits

Author SHA1 Message Date
Patrick Ohly
005cef332d DRA kubelet: API clarification
It's not okay to drop a claim from the response just because it encountered no
error. We want to be sure that a DRA driver really looked at the claim.
2025-06-27 09:30:28 +02:00
Kubernetes Prow Robot
dcefe0ef41 Merge pull request #132058 from pohly/dra-kubelet-connection-monitoring
DRA kubelet: connection monitoring
2025-06-26 03:40:29 -07:00
Kubernetes Release Robot
c75d425ae2 CHANGELOG: Update directory for v1.34.0-alpha.2 release 2025-06-26 07:44:13 +00:00
Kubernetes Prow Robot
ec1803cab8 Merge pull request #132509 from yongruilin/fix-make-vet
chore: Remove vet target and associated script from Makefile and hack directory
2025-06-26 00:26:34 -07:00
Kubernetes Prow Robot
b3e438aef9 Merge pull request #132220 from BenTheElder/a-little-owners-cleanup
emeritus spiffxp and backfill OWNERS
2025-06-25 19:16:28 -07:00
Kubernetes Prow Robot
688f1ed906 Merge pull request #132521 from gavinkflam/130358-migrate-extract-comment-tags-chunk-2
cleanup: Migrate more usages of deprecated function ExtractCommentTags
2025-06-25 17:50:35 -07:00
Kubernetes Prow Robot
17c5e753b2 Merge pull request #132484 from ylink-lfs/test/kubelet_client_ut
test: code coverage increase for kubelet_client
2025-06-25 17:50:28 -07:00
Kubernetes Prow Robot
1e59323e60 Merge pull request #132065 from yuanwang04/SwapMetrics
Fix pod and container level swap metrics for CRI
2025-06-25 16:22:28 -07:00
Kubernetes Prow Robot
befc91aec1 Merge pull request #132502 from benluddy/validatingadmissionpolicy-integration-marker-flake
Fix flake caused by invalid detection of active policies in VAP integration tests
2025-06-25 14:02:35 -07:00
Kubernetes Prow Robot
3ce7034a7f Merge pull request #129373 from googs1025/feature/kubectl/autoscale
feature(kubectl): support --cpu, --memory flag to kubectl autoscale
2025-06-25 14:02:28 -07:00
Kubernetes Prow Robot
34ed1cb40f Merge pull request #132535 from natasha41575/obs-gen-ut
improve unit test coverage for pod observedGeneration
2025-06-25 11:24:29 -07:00
yongruilin
8b2eb9090e chore: Remove vet target and associated script from Makefile and hack directory 2025-06-25 17:39:14 +00:00
Natasha Sarkar
7d85134cae improve unit test coverage for pod observedGeneration 2025-06-25 17:18:07 +00:00
Kubernetes Prow Robot
c1afec6a0b Merge pull request #132357 from dims/drop-usage-of-forked-copies-of-goyaml.v2-and-goyaml.v3
Drop usage of forked copies of goyaml.v2 and goyaml.v3
2025-06-25 09:48:29 -07:00
Davanum Srinivas
c5b4b133ce switch to latest sigs.k8s.io/yaml v1.5.0 (run update-gofmt.sh as well)
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2025-06-25 11:42:12 -04:00
Kubernetes Prow Robot
7f4996ba39 Merge pull request #132517 from michaelasp/fixflake
fix: Add wait for cache sync for customresourcediscovery tests
v1.34.0-alpha.2
2025-06-25 08:26:37 -07:00
Kubernetes Prow Robot
b832d100f6 Merge pull request #132480 from pohly/kubectl-init-logging
kubectl: avoid logging during init
2025-06-25 08:26:30 -07:00
Ben Luddy
190c8c7abc Use per-policy marker names for VAP integration tests.
Writes to policy resources don't instantaneously take effect in admission. ValidatingAdmissionPolicy
integration tests determine that the policies under test have taken effect by adding a sentinel
policy rule and polling until that rule is applied to a request.

If the marker resource names are the same for each test case in a series of test cases, then
observing a policy's effect on a marker request only indicates that _any_ test policy is in effect,
but it's not necessarily the policy the current test case is waiting for. For example:

1. Test 1 creates a policy and binding.

2. The policy and binding are observed by the admission plugin and take effect.

3. Test 1 observes that a policy is in effect via marker requests.

4. Test 1 exercises the behavior under test and successfully deletes the policy and binding it
created.

5. Test 2 creates a policy and binding.

6. Test 2 observes that a policy is in effect via marker requests, but the policy in effect is still
the one created by Test 1.

7. Test 2 exercises the behavior under test, which fails because it was evaluated against Test 1's
policy.

Generating a per-policy name for the marker resource in each test resolves the timing issue. In the
example, step (6) will not proceed until the admission plugin has observed the policy and binding
created in (5).
2025-06-25 11:17:20 -04:00
googs1025
6795d5366f feature(kubectl): support mem-percent,cpu-value,cpu-average-value,mem-value,mem-average-value flag to kubectl autoscale
Signed-off-by: googs1025 <googs1025@gmail.com>
2025-06-25 22:44:47 +08:00
Kubernetes Prow Robot
1d932bd6cc Merge pull request #132504 from jpbetz/name-formats
Introduce OpenAPI format support for k8s-short-name and k8s-long-name
2025-06-25 06:46:38 -07:00
Kubernetes Prow Robot
56fd09057a Merge pull request #132485 from saschagrunert/lifecycle-test-improvement
Improve containers lifecycle test output parsing
2025-06-25 06:46:31 -07:00
Lukasz Szaszkiewicz
b8b3984874 client-go/reflector: stop exposing UseWatchList (#132453)
* client-go/reflector: stop exposing UseWatchList

* apiserver/cacher: stop setting reflector.UseWatchList

* test/integration/watchlist: fix TestReflectorWatchListFallback
2025-06-25 04:04:29 -07:00
Kubernetes Prow Robot
587aa60686 Merge pull request #132483 from serathius/active-poll
Activly poll for namespace termination instead of sleeping
2025-06-25 02:58:35 -07:00
Kubernetes Prow Robot
49bff137a7 Merge pull request #132374 from PatrickLaabs/132358
Fixed large resourceversion and limit for storages
2025-06-25 02:58:28 -07:00
Kubernetes Prow Robot
8eda367f27 Merge pull request #132497 from p0lyn0mial/upstream-watchlist-etcd-cacher
apiserver/storage/cacher/listwatcher: error when the WatchList FG is disabled
2025-06-25 01:04:28 -07:00
Sascha Grunert
0028ea8e99 Improve containers lifecycle test output parsing
This should fix the following test when running it with CRI-O:

```
[It] [sig-node] [Feature:SidecarContainers] [Serial] Containers
Lifecycle when A node running restartable init containers reboots should
restart the containers in right order with the proper phase after the
node reboot
```

The issue is that we have prefixed "unable to retrieve container logs
for …" outputs in the message to be parsed. We now skip that part and
leave the current behavior untouched.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2025-06-25 08:51:29 +02:00
Lukasz Szaszkiewicz
7e0d71fc14 apiserver/storage/cacher/listwatcher: error when the WatchList FG is disabled 2025-06-25 08:51:20 +02:00
ylink-lfs
ec6ea2213e test: code coverage increase for kubelet_client 2025-06-25 13:39:12 +08:00
Gavin Lam
cb4014fb75 cleanup: Migrate more usages of deprecated function ExtractCommentTags
Signed-off-by: Gavin Lam <gavin.oss@tutamail.com>
2025-06-24 22:25:41 -04:00
Michael Aspinwall
35ecb00f1c fix: Add wait for cache sync for customresourcediscovery tests 2025-06-24 22:19:35 +00:00
Kubernetes Prow Robot
ec80dcaf38 Merge pull request #132467 from sdowell/ssa-terminating
fix: prevent SSA from creating CR while CRD terminating
2025-06-24 12:08:27 -07:00
Marek Siarkowicz
d6d186ece0 Activly poll for namespace termination instead of sleeping 2025-06-24 20:56:44 +02:00
Joe Betz
e1daa69de8 Add printer column validation tests 2025-06-24 14:52:37 -04:00
Joe Betz
369e6a25a2 Introduce k8s-short-name and k8s-long-name to the OpenAPI formats supported by CRDs 2025-06-24 14:52:27 -04:00
Sam Dowell
6f1295ae9d fix: prevent SSA from creating CR while CRD terminating
This change adds consistent validation for server side apply to prevent
new CustomResources from being creating while its
CustomResourceDefinition is in the terminating state.
2025-06-24 11:04:25 -07:00
Kubernetes Prow Robot
8d2a5a2c9c Merge pull request #132499 from liggitt/unwanted-json-patch-v5
Add json-patch v4 compatibility test
2025-06-24 09:54:35 -07:00
Kubernetes Prow Robot
5b1af0c8c2 Merge pull request #127655 from guozheng-shen/remove-usage
remove 'endpointsleases' and 'configmapsleases' from usage
2025-06-24 09:54:28 -07:00
Kubernetes Prow Robot
80474f7b4a Merge pull request #132470 from michaelasp/fixInvalidObj
fix: Improve error messaging on updating a deleted object
2025-06-24 08:24:36 -07:00
Kubernetes Prow Robot
c379296bd1 Merge pull request #132255 from likakuli/feat-nothingfastreturn
feat: optimize ListAll and ListAllByNamespace to return directly when nothing to select
2025-06-24 08:24:29 -07:00
Kubernetes Prow Robot
885db534ca Merge pull request #132376 from tico88612/cleanup/message-count-map
apimachinery/pkg/util/errors: deprecated MessageCountMap
2025-06-24 07:04:35 -07:00
Kubernetes Prow Robot
49c20d6f44 Merge pull request #132173 from dejanzele/feat/promote-job-pod-replacement-policy-ga
KEP-3939: Job Pod Replacement Policy; promote to GA
2025-06-24 07:04:28 -07:00
Joe Betz
dc323756ce Bump to latest kube-openapi 2025-06-24 09:24:27 -04:00
Jordan Liggitt
d180fe28ad Add json-patch v4 compatibility test 2025-06-24 09:23:39 -04:00
Stephen Kitt
2ca4ffe653 Add evanphx/json-patch/v5 to unwanted dependencies
This comes up periodically; bumping to v5 introduces issues with
replace operations in JSON patches. k/k relies on non-RFC-compliant
operations which v5 no longer allows.

Signed-off-by: Stephen Kitt <skitt@redhat.com>
2025-06-24 09:18:04 -04:00
likakuli
5a7e04b6cc feat: optimize ListAll and ListAllByNamespace to return directly when nothing to select
Signed-off-by: likakuli <1154584512@qq.com>
2025-06-24 21:12:56 +08:00
Kubernetes Prow Robot
ae15bc5613 Merge pull request #132479 from p0lyn0mial/upstream-watchlist-cacher-listwatcher
apiserver/cacher: properly wire listwatch options to the listwatcher
2025-06-24 03:48:29 -07:00
Lukasz Szaszkiewicz
dce69afade apiserver/cacher: properly wire listwatch options to the listwatcher 2025-06-24 11:39:44 +02:00
Patrick Ohly
0276769c2c kubectl: avoid logging during init
LoadTranslations gets called during the init phase:

     0  0x0000000005926c56 in k8s.io/kubectl/pkg/util/i18n.LoadTranslations
        at ./staging/src/k8s.io/kubectl/pkg/util/i18n/i18n.go:146
     1  0x0000000005926727 in k8s.io/kubectl/pkg/util/i18n.init.func1
        at ./staging/src/k8s.io/kubectl/pkg/util/i18n/i18n.go:60
     2  0x000000000592780f in k8s.io/kubectl/pkg/util/i18n.lazyLoadTranslations.func1
        at ./staging/src/k8s.io/kubectl/pkg/util/i18n/i18n.go:191
     3  0x0000000001b876e8 in sync.(*Once).doSlow
        at /nvme/gopath/go-1.24.0/src/sync/once.go:78
     4  0x0000000001b8753e in sync.(*Once).Do
        at /nvme/gopath/go-1.24.0/src/sync/once.go:69
     5  0x0000000005927565 in k8s.io/kubectl/pkg/util/i18n.lazyLoadTranslations
        at ./staging/src/k8s.io/kubectl/pkg/util/i18n/i18n.go:187
     6  0x00000000059275cd in k8s.io/kubectl/pkg/util/i18n.T
        at ./staging/src/k8s.io/kubectl/pkg/util/i18n/i18n.go:201
     7  0x000000000599fb6d in k8s.io/kubectl/pkg/cmd/apiresources.init
        at <autogenerated>:1
     8  0x0000000001b41bf4 in runtime.doInit1
        at /nvme/gopath/go-1.24.0/src/runtime/proc.go:7350
     9  0x0000000001b6bf8a in runtime.doInit
        at /nvme/gopath/go-1.24.0/src/runtime/proc.go:7317
    10  0x0000000001b33910 in runtime.main
        at /nvme/gopath/go-1.24.0/src/runtime/proc.go:254
    11  0x0000000001b72881 in runtime.goexit
        at /nvme/gopath/go-1.24.0/src/runtime/asm_amd64.s:1700

During init, klog verbosity is either zero (making the log call redundant
because it doesn't print anything) or some other init function reconfigures
logging, in which case the output is potentially confusing because it is not
guaranteed that logging is reconfigured before the log call is invoked.

In other scenarios, flag parsing might switch from klog text format to
something else entirely, which then leads to a mixture of text and e.g. JSON
output. In general, code running during init should not log.
2025-06-24 11:07:47 +02:00
Ed Bartosh
6040344a65 kubelet: DRA: fix TestRegistrationHandler
Using the same socket path for different test cases caused
test failure on windows:
listen unix C:\Users\azureuser\AppData\Local\Temp\TestRegistrationHandler3881105518\001/dra-plugin-a.sock:
bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.

Creating unique socket path for every test case should fix it.
2025-06-24 10:42:46 +02:00
Ed Bartosh
cc7893a42c kubelet: DRA: fix unit test failure
Fixed race condition caused by removing already removed
socket directory.
2025-06-24 10:42:45 +02:00