Commit Graph

126990 Commits

Author SHA1 Message Date
Davanum Srinivas
199b7bdd1f
Add go-spew to unwanted dependencies we track
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2024-11-06 17:41:56 -05:00
Jordan Liggitt
4850b31bda
Revert "Add random interval to nodeStatusReport interval every time after an actual node status change"
This reverts commit d6e17ad808.
2024-11-06 17:12:13 -05:00
Kubernetes Prow Robot
9ba42a54a6
Merge pull request #128521 from carlory/framework-job
improve the code in test/e2e/framework/job/wait.go
2024-11-06 22:07:36 +00:00
Kubernetes Prow Robot
fa0979c15f
Merge pull request #124074 from carlory/clean-100001
fix description for PersistentVolumeSource and VolumeSource
2024-11-06 22:07:29 +00:00
Kevin Hannon
350b0d2b93
Revert "Graduate PodLifecycleSleepAction to GA" 2024-11-06 16:29:19 -05:00
Anish Shah
207842d3e0 drop InPlacePodVerticalScaling support in windows 2024-11-06 12:57:55 -08:00
Joe Betz
dc5e2f3fa2 Wrap unversioned CEL library initializer calls with guard 2024-11-06 15:53:27 -05:00
Joe Betz
3d4a5dac4e Add cost testing for two variable comprehensions 2024-11-06 15:53:27 -05:00
Joe Betz
b0180a9a37 hack/pin-dependency.sh github.com/google/cel-go v0.22.0 2024-11-06 15:53:17 -05:00
Ben Luddy
f37b41e79c
Regenerate OpenAPI specs. 2024-11-06 15:42:49 -05:00
Ben Luddy
439d2f7b40
Wire serving codecs to CBOR feature gate.
Integration testing has to this point relied on patching serving codecs for built-in APIs. The
test-only patching is removed and replaced by feature gated checks at runtime.
2024-11-06 15:41:39 -05:00
Kubernetes Prow Robot
e2bf630940
Merge pull request #128598 from AnishShah/fix-ippr-test
[FG:InPlacePodVerticalScaling] fix InPlacePodVerticalScaling e2e tests
2024-11-06 20:10:48 +00:00
Kubernetes Prow Robot
48c65d1870
Merge pull request #128576 from bart0sh/PR166-refactor-kubelet-stop-and-restart
e2e_node: refactor Kubelet stopping and restarting
2024-11-06 20:10:40 +00:00
Kubernetes Prow Robot
099449954e
Merge pull request #128556 from AnishShah/kubelet-reject-metric
Introduce a metric to track kubelet admission failure.
2024-11-06 20:10:33 +00:00
Kubernetes Prow Robot
7a1f8aaa52
Merge pull request #128554 from ritazh/webhookmatchcondition-doc-comment
Add WebhookMatchCondition doc comment
2024-11-06 20:10:25 +00:00
Kubernetes Prow Robot
a885e446d6
Merge pull request #128501 from benluddy/watch-cbor-seq
KEP-4222: Use cbor-seq content-type for CBOR watch responses.
2024-11-06 20:10:17 +00:00
Kubernetes Prow Robot
0edef5aa91
Merge pull request #128447 from bart0sh/PR164-migrate-cadvisor-to-contextual-logging
kubelet: Migrate CAdvisor to contextual logging
2024-11-06 20:10:10 +00:00
Kubernetes Prow Robot
198ec57f86
Merge pull request #128394 from mengqiy/spreadkubeletlaod
add randomness to nodeStatusReportFrequency for kubelet
2024-11-06 20:10:02 +00:00
Kubernetes Prow Robot
432a9af0fb
Merge pull request #128380 from pohly/log-TODO-logcheck
apiserver: avoid TODO in public docs
2024-11-06 20:09:53 +00:00
Kubernetes Prow Robot
dfba334a33
Merge pull request #128242 from jsafrane/selinux-controller
1710: Add SELinux warning controller
2024-11-06 20:09:44 +00:00
Kubernetes Prow Robot
983dd07760
Merge pull request #128031 from HirazawaUi/kep-4656
[Kubeadm] KEP-4656: Add kubelet instance configuration to configure CRI socket for each node
2024-11-06 20:09:37 +00:00
Kubernetes Prow Robot
96250d4411
Merge pull request #124918 from SergeyKanzhelev/commentIgnoringBadStatuses
added a comment that statuses lists are not being validated
2024-11-06 20:09:29 +00:00
Tim Allclair
7fce6f2317 More comments around PLEG WatchConditions 2024-11-06 11:05:24 -08:00
Tim Allclair
35bd1e6831 Emit a pod event when WatchConditions are completed 2024-11-06 11:05:24 -08:00
Tim Allclair
da9c2c553b Set pod watch conditions for resize 2024-11-06 11:05:24 -08:00
Tim Allclair
f4d36dd402 Add WatchCondition concept to the PLEG 2024-11-06 11:05:23 -08:00
Tim Allclair
07a9ab87bc Simplify PLEG relist loops 2024-11-06 11:05:23 -08:00
Kubernetes Prow Robot
2caf4eddd8
Merge pull request #128615 from pacoxu/update-openapi-spec-v1.32.0-beta
update openapi spec after v1.32 beta release
2024-11-06 18:59:29 +00:00
Anish Ramasekar
e93d5d5425
Enforce sa token node audience restriction when ServiceAccountNodeAudienceRestriction=true
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
2024-11-06 09:51:40 -08:00
Anish Ramasekar
51f7475b6a
Add ServiceAccountNodeAudienceRestriction feature gate
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
2024-11-06 09:51:36 -08:00
Kevin Conner
e7e1fb7234 Fix error check
Signed-off-by: Kevin Conner <kev.conner@gmail.com>
2024-11-06 09:21:09 -08:00
Paco Xu
cef3930337 update openapi spec after v1.32 beta release 2024-11-07 00:36:55 +08:00
Patrick Ohly
446f20aa3e DRA API: add maximum length of opaque parameters
This had been left out unintentionally earlier. Because theoretically there
might now be existing objects with parameters that are larger than whatever
limit gets enforced now, the limit only gets checked when parameters get
created or modified.

This is similar to the validation of CEL expressions and for consistency, the
same 10 Ki limit as for those is chosen.

Because the limit is not enforced for stored parameters, it can be increased in
the future, with the caveat that users who need larger parameters then depend
on the newer Kubernetes release with a higher limit. Lowering the limit is
harder because creating deployments that worked in older Kubernetes will not
work anymore with newer Kubernetes.
2024-11-06 17:29:51 +01:00
Lubomir I. Ivanov
ae910f3621 remove myself from test/OWNERS 2024-11-06 17:16:40 +02:00
Kubernetes Release Robot
62bdf5d87c CHANGELOG: Update directory for v1.32.0-beta.0 release 2024-11-06 14:51:32 +00:00
Jian Zeng
d9687a8c3a
feat(apiserver): set stream param in LogLocation
Signed-off-by: Jian Zeng <anonymousknight96@gmail.com>
2024-11-06 22:42:18 +08:00
HirazawaUi
d3ea4d3d9a Implement kubeadm reset 2024-11-06 21:43:09 +08:00
HirazawaUi
c47eaa88b1 Implement kubeadm upgrade 2024-11-06 21:43:05 +08:00
Jian Zeng
b9228836e1
feat: update validation helpers
Signed-off-by: Jian Zeng <anonymousknight96@gmail.com>
2024-11-06 21:27:12 +08:00
Ben Luddy
504f14998e
Use application/cbor-seq media type in streaming CBOR responses.
The media type application/cbor describes exactly one encoded item. As a new (to Kubernetes) format
with no existing clients, streaming/watch responses will use the application/cbor-seq media
type. CBOR watch responses conform to the specification of CBOR Sequences and are encoded as the
concatenation of zero or more items with no additional framing.
2024-11-06 08:23:18 -05:00
Kubernetes Prow Robot
e273349f3a
Merge pull request #127511 from pohly/dra-1.32-api
DRA 1.32 API: promotion to beta
2024-11-06 13:13:29 +00:00
Jian Zeng
389ab72725
feat: add feature gate
Signed-off-by: Jian Zeng <anonymousknight96@gmail.com>
2024-11-06 20:17:30 +08:00
Jian Zeng
7660ce9a7e
feat: update conversion helpers
Signed-off-by: Jian Zeng <anonymousknight96@gmail.com>
2024-11-06 20:17:29 +08:00
Jian Zeng
82c6296a95
feat(api): add field stream to PodLogOptions
Signed-off-by: Jian Zeng <anonymousknight96@gmail.com>
2024-11-06 20:17:29 +08:00
Jan Safranek
df88b1a771 Add all RBAC rules for the SELinux controller
The SELinuxWarningController does not necessarily need permissions to read
the objects, because it gets them through a shared informer instantiated by
KCM itself, but let's list the permissions for completeness.
2024-11-06 13:06:52 +01:00
Patrick Ohly
d6bad27b7d DRA apiserver: allow DRAAdminAccess feature without DynamicResourceAllocation
This makes a configuration with --feature-gates=AllAlpha=true valid
again. Without this change, that flag enabled DRAAdminAccess without
DynamicResourceAllocation being enabled (default off!) and the kube-apiserver
refused to start.

While DRAAdminAccess isn't usable without DynamicResourceAllocation, it's also
not really wrong to allow it - it simply won't matter.
2024-11-06 13:03:20 +01:00
Patrick Ohly
a1b8e9d3a7 DRA kubelet: increase plugin test coverage
Deleting slices was not covered to begin with and the recent registration
changes also could have been covered better. Now coverage is at 91%.
2024-11-06 13:03:20 +01:00
Patrick Ohly
1193ff1271 DRA driver: optionally support kubelet 1.31
Supporting the alpha gRPC interface isn't enough anymore to be compatible
with kubelet 1.31: the "supported versions" must contain version numbers,
otherwise the older kubelet refuses to register the driver.

With this change, a DRA driver can decide to support both kubelet 1.31 and
kubelet 1.32 by registering *only* the alpha gRPC interface (NodeV1alpha4(true)
and NodeV1beta1(false) as options for Start).

The default is to provide both interfaces and using the registration mechanism
for 1.32, which makes DRA drivers compatible only with Kubernetes >= 1.32.
2024-11-06 13:03:20 +01:00
Patrick Ohly
2c23fe1b82 DRA kubelet: list supported gRPC services during registration
Listing supported gRPC services (e.g. drav1alpha3.Node, drav1beta1.DRAPlugin)
during registration enables the kubelet to determine in advance which methods
it can call.

Versioning by Kubernetes release makes less sense because it doesn't say
anything about which gRPC service is supported. New ones might get added and
obsolete ones removed. Some services might be optional.

In the past, this versioning support wasn't really used. At least one version
had to be provided and kubelet tried to use the plugin with the highest
version. This version comparison gets dropped. In the unlikely situation
that different plugins register under the same name, the most recent one is
used.

Because advertising gRPC services is a new convention, plugins only reporting
some version are treated as providing the old alpha gRPC service.
2024-11-06 13:03:20 +01:00
Patrick Ohly
437be1e651 DRA kubelet: rename gRPC server from Node to DRAPlugin in v1beta1
The version bump is an opportunity to pick a name that is a bit more
descriptive. It matches the "DevicePlugin" service name.
2024-11-06 13:03:20 +01:00