Commit Graph

126234 Commits

Author SHA1 Message Date
Tim Allclair
d1f1bf200c Add more comments 2024-10-24 15:51:19 -07:00
Kubernetes Prow Robot
66da447e14
Merge pull request #128317 from Jefftree/revert-componentsli-feature
Set ComponentSLIs feature as GA
2024-10-24 22:42:51 +01:00
Kubernetes Prow Robot
b7a85a9db3
Merge pull request #128262 from dom4ha/scheduler-perf
Tune PreemptionAsync and Unschedulable tests threshold and params.
2024-10-24 21:24:52 +01:00
Ben Luddy
77401d7073
Add CBOR variant of admission webhook integration test.
The existing admission webhook integration test provides good coverage of serving built-in resources
and custom resources, including subresources. Serialization concerns, including roundtrippability,
of built-in types have existing test coverage; the CBOR variant of the admission webhook integration
test additionally exercises client and server codec wiring.
2024-10-24 13:27:39 -04:00
Ben Luddy
3e1b6aaf41
Export meta internal version scheme for testing.
Codecs is already exported, but in order for tests to construct an alternate CodecFactory for meta's
internal version types, they either need to be able to reference the scheme or to construct a
parallel scheme, and a parallel scheme construction risks going out of sync with the way the
package-scoped scheme object is initialized.
2024-10-24 13:27:39 -04:00
Ben Luddy
ea13190d8b
Add test-only client feature gates for CBOR.
As with the apiserver feature gate for CBOR as a serving and storage encoding, the client feature
gates for CBOR are being initially added through a test-only feature gate instance that is not wired
to environment variables or to command-line flags and is intended only to be enabled
programmatically from integration tests. The test-only instance will be removed as part of alpha
graduation and replaced by conventional client feature gating.
2024-10-24 13:27:39 -04:00
Ben Luddy
0cad1a89b6
Wire test-only feature gate for CBOR serving.
To mitigate the risk of introducing a new protocol, integration tests for CBOR will be written using
a test-only feature gate instance that is not wired to runtime options. On alpha graduation, the
test-only feature gate instance will be replaced by a normal feature gate in the existing apiserver
feature gate instance.
2024-10-24 13:27:36 -04:00
Kubernetes Prow Robot
7b7a7968d4
Merge pull request #125314 from enj/enj/i/proto_for_core
Use protobuf for core clients
2024-10-24 18:20:54 +01:00
Ben Luddy
d638d64572
Add CBOR serializer option to disable JSON transcoding of raw types. 2024-10-24 12:30:19 -04:00
Ben Luddy
db1239d354
Add WithSerializer option to add serializers to CodecFactory. 2024-10-24 12:30:19 -04:00
Ben Luddy
66a14268c5
Use runtime.SerializerInfo in place of internal "serializerType".
CodecFactory construction uses an unexported struct type named "serializerType" to hold serializer
definitions. There are few differences between it and runtime.SerializerInfo, and they do not appear
to be used anymore. For example, serializerType includes an unused FileExtensions field, and has
distinct ContentType (singular) and AcceptContentTypes (plural) fields instead of
runtime.SerializeInfo's singular MediaType. All remaining uses of serializerType set
AcceptContentTypes to a single-entry slice whose element is equal to its ContentType field.

During construction of a CodecFactory, all serializerType values were already being mechanically
translated into runtime.SerializerInfo values.

Moving to an exported type for serializer definitions makes it easier to expose an option to allow
callers to register their own serializer definitions, which in turn makes it possible to
conditionally include new serializers at runtime (especially behind feature gates).
2024-10-24 12:30:19 -04:00
Tim Allclair
321eff34f7 Rework allocated resources handling 2024-10-24 09:27:40 -07:00
Kubernetes Prow Robot
fc9330eb65
Merge pull request #128311 from huww98/mount-warn
mount-utils: fix warning message of fs mismatch
2024-10-24 17:15:04 +01:00
Kubernetes Prow Robot
0f549a9286
Merge pull request #128213 from aaron-prindle/fix-127336
chore: remove sig/api-machinery from OWNERS files that sig/etcd owns
2024-10-24 17:14:53 +01:00
googs1025
e854086d74 chore(printers): add unit test coverage for printers part 2024-10-24 22:43:55 +08:00
Kubernetes Prow Robot
721d66780b
Merge pull request #128305 from adrianmoisey/cidr_release_on_node_delete
Ensure that a node's CIDR isn't released until the node is deleted
2024-10-24 15:21:05 +01:00
Kubernetes Prow Robot
0a62f0fd7b
Merge pull request #128139 from Jefftree/revert-allowservicelb
Revert removal of feature AllowServiceLBStatusOnNonLB and LockToDefault first
2024-10-24 15:20:54 +01:00
Kubernetes Prow Robot
8c7160205d
Merge pull request #127922 from PiotrProkop/topology-manager-policy-options-e2e
add e2e tests for prefer-closest-numa-nodes TopologyManagerPolicyOption
2024-10-24 14:17:03 +01:00
Kubernetes Prow Robot
cadb1508a9
Merge pull request #125258 from serathius/etcd-kubernetes-interface
Etcd kubernetes interface
2024-10-24 14:16:52 +01:00
Jefftree
b8e3ef7fbf update feature yaml 2024-10-24 13:09:04 +00:00
Jefftree
868ec5a637 Move ComponentSLIs to versioned features and mark as GA 2024-10-24 13:08:23 +00:00
Jefftree
a0977f0673 Revert "Remove GA feature gate ComponentSLIs"
This reverts commit f1af84620b.
2024-10-24 13:00:04 +00:00
Adrian Moisey
4d2f3ed8e6
Ensure that a node's CIDR isn't released until the node is deleted
Fixes https://github.com/kubernetes/kubernetes/issues/127792

Fixes bug where a node's PodCIDR was released when the node was given a
delete time stamp, but was hanging around due to a finalizer.
2024-10-24 13:19:34 +02:00
Kubernetes Prow Robot
a8a086fe0a
Merge pull request #128309 from mimowo/job-rollback-test-promotion
Rollback promotion of Job e2e test for pod failure policy using exit code
2024-10-24 12:00:52 +01:00
PiotrProkop
a6eb3281cc add e2e tests for prefer-closest-numa-nodes TopologyManagerPolicyOption suboptimal allocation
Signed-off-by: PiotrProkop <pprokop@nvidia.com>
2024-10-24 11:45:39 +02:00
胡玮文
ed43fc467d mount-utils: fix warning message of fs mismatch 2024-10-24 16:48:51 +08:00
Michal Wozniak
d521e44187 Rollback promotion of Job e2e test for pod failure policy using exit code 2024-10-24 10:30:56 +02:00
Marek Siarkowicz
a16a364324 Migrate GetList to Kubernetes client 2024-10-24 10:23:54 +02:00
Marek Siarkowicz
e192ac31a4 Migrate Count to Kubernetes client 2024-10-24 10:23:54 +02:00
Marek Siarkowicz
2fcd321c42 Migrate Delete and GuaranteedUpdate to Kubernetes client 2024-10-24 10:23:52 +02:00
Marek Siarkowicz
53ca81da29 Migrate Create to Kubernetes client 2024-10-24 10:17:13 +02:00
Marek Siarkowicz
092a6d1e0d Migrate Get to Kubernetes client 2024-10-24 10:15:00 +02:00
Marek Siarkowicz
066c1c05d7 Update recorders to wrap kubernetes.Client 2024-10-24 10:14:11 +02:00
Marek Siarkowicz
249ad2a613 Add etcd kubernetes interface package to vendor 2024-10-24 10:09:26 +02:00
Kubernetes Prow Robot
e526a27118
Merge pull request #116388 from mxpv/shutdown
Clean/refactor node shutdown manager
2024-10-24 08:34:53 +01:00
Kubernetes Prow Robot
aa8f2878a5
Merge pull request #117943 from lowang-bh/lessFunCall
improve: reduce function calling number
2024-10-24 04:52:52 +01:00
Kubernetes Prow Robot
1af81c223d
Merge pull request #128197 from aojea/extract_provider_flags
disable cloud-provider code from kube-controller-manager
2024-10-24 03:34:59 +01:00
Kubernetes Prow Robot
122fa7c188
Merge pull request #128127 from macsko/add_macsko_to_sig_scheduling_reviewers
Add macsko to SIG Scheduling reviewers
2024-10-24 03:34:52 +01:00
Maksym Pavlenko
449f86b0ba Refactor node shutdown manager
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2024-10-23 17:36:22 -07:00
Kubernetes Prow Robot
753b6fe40b
Merge pull request #128292 from bart0sh/PR162-dont-check-container-metrics-if-PodAndContainerStatsFromCRI-enabled
e2e_node: check container metrics conditionally
2024-10-24 01:02:58 +01:00
Kubernetes Prow Robot
5b61f60846
Merge pull request #128290 from zhifei92/fix-flake-test
Add a thread-safe logBuffer for the watchdog unit test.
2024-10-24 01:02:51 +01:00
Kubernetes Prow Robot
050a4a13b9
Merge pull request #128291 from alculquicondor/rm-alculquicondor-job
Remove alculquicondor from job approvers
2024-10-23 23:59:01 +01:00
Kubernetes Prow Robot
71093a09c1
Merge pull request #128244 from gnufied/fix-fsgroup-behaviour
Apply fsGroup when accessMode is ReadWriteOncePod
2024-10-23 23:58:52 +01:00
Kubernetes Prow Robot
c73aeaf5b5
Merge pull request #128234 from aroradaman/kube-proxy-multi-listen
kube-proxy: use netutils.MultiListen for healthz and metrics server
2024-10-23 21:00:59 +01:00
Kubernetes Prow Robot
d7e5ff87e0
Merge pull request #128083 from carlory/fix-126662-kubelet
kubelet: fix a bug where kubelet wrongly drops the QOSClass field of the Pod's s status when it rejects a Pod
2024-10-23 21:00:53 +01:00
Patrick Ohly
d53cb79cec DRA cel: enforce runtime limit by default again
As pointed out during code review, the CEL cost estimates are not considered
perfectly reliable. Therefore it is better to also do runtime checks.

Some downstream users might decide to allow CEL expressions to run
longer. Therefore the cost limit is now part of an Options struct.
kube-scheduler uses the default cost limit defined in the resource.k8s.io API,
which is the same cost limit that also the apiserver uses during validation.
2024-10-23 21:24:45 +02:00
Patrick Ohly
021c9fb92f DRA CEL: add benchmark
Expression evaluation in all scenarios gets benchmarked where compilation
works. A pending optimization in another PR caches compiled expressions, so the
time for compilation will become less important. What matters is the actual
evaluation.
2024-10-23 21:24:45 +02:00
Patrick Ohly
425f694fe6 DRA CEL: log actual cost
This may be useful for validating the cost estimate.
2024-10-23 21:24:45 +02:00
Patrick Ohly
7b0071d71b DRA CEL: disable runtime cost check
In DRA, the cost check is done only at validation time.  At runtime, any
expression that passed validation gets executed without interrupting it. The
advantage is that it becomes easier to change the limit because stored
expression do not suddenly fail after an up- or downgrade. The limit could
even become a configuration parameter of the apiserver because that is the only
place where the limit gets checked
2024-10-23 21:24:45 +02:00
Patrick Ohly
39f2592863 DRA CEL: avoid redundant cel.CostTracking
It's already called by the base environment.
2024-10-23 21:24:45 +02:00