Commit Graph

126260 Commits

Author SHA1 Message Date
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
Patrick Ohly
5e514f5fcb DRA CEL: fix error checking in unit test
Not getting an expected error wasn't checked.
2024-10-23 21:24:45 +02:00
Patrick Ohly
7995b6f182 DRA CEL: add test case for runtime cost limit check
At the moment, the cost also gets checked at runtime. This test case
ensures that this check is really active.
2024-10-23 21:24:45 +02:00
Patrick Ohly
f548fc2264 DRA API: implement CEL cost limit
The main purpose is to protect against denial-of-service attacks.  Scheduling
time depends a lot on unpredictable factors and expected scheduling time also
varies, so no attempt is made to limit the overall time spent on evaluating CEL
expressions per claim.
2024-10-23 21:24:45 +02:00
Ed Bartosh
2ac5dfe379 e2e_node: check container metrics conditionally
When PodAndContainerStatsFromCRI FG is enabled, Kubelet tries to get
list of metrics from the CRI runtime using CRI API 'ListMetricDescriptors'.

As this API is not implemented in neither CRI-O nor Containerd versions
used in the test-infra, ResourceMetrics test case fails to gather
certain container metrics.

Excluding container metrics from the expected list of metrics if
PodAndContainerStatsFromCRI is enabled should solve the issue.
2024-10-23 21:08:36 +03:00
Aldo Culquicondor
5fab6175b7 Remove alculquicondor from job approvers
Change-Id: I2b1514ff70108602a589522cbb63dcdc88849313
2024-10-23 17:58:55 +00:00
Hemant Kumar
3c1576d47c Add e2e for fsGroupChangePolicy for RWOP volume types 2024-10-23 13:47:15 -04:00
Kubernetes Prow Robot
352056f09d
Merge pull request #127757 from torredil/scheduler-bugfix-5123
scheduler: Improve CSILimits plugin accuracy by using VolumeAttachments
2024-10-23 18:12:52 +01:00
carlory
c7e384f9ff kubelet: fix a bug where kubelet drops the QOSClass field of the Pod's status when it rejects a Pod
Co-authored-by: Sergey Kanzhelev <S.Kanzhelev@live.com>
2024-10-24 01:01:04 +08:00
Monis Khan
e4d10cfb1b
Add test to confirm default content type used by core client
Signed-off-by: Monis Khan <mok@microsoft.com>
2024-10-23 11:35:32 -04:00
Monis Khan
6595fa4026
Fix tests that assume core clients use JSON
Signed-off-by: Monis Khan <mok@microsoft.com>
2024-10-23 11:35:30 -04:00
Monis Khan
032e7f1556
Generated
Signed-off-by: Monis Khan <mok@microsoft.com>
2024-10-23 11:35:28 -04:00
Monis Khan
c2ae465355
Use protobuf for core clients
Signed-off-by: Monis Khan <mok@microsoft.com>
2024-10-23 10:56:34 -04:00
Monis Khan
fe1eda0649
client-go/rest: move content type wiring from client to request
Signed-off-by: Monis Khan <mok@microsoft.com>
2024-10-23 10:56:32 -04:00
zhifei92
80a0096ee2 fix: Add a thread-safe logBuffer for the watchdog unit test. 2024-10-23 22:30:32 +08:00
Kubernetes Prow Robot
66e3401225
Merge pull request #128264 from mimowo/promote-pod-failure-tests
Promote the Job pod failure policy to Conformance
2024-10-23 14:23:00 +01:00
Kubernetes Prow Robot
9b9831baca
Merge pull request #127926 from Nordix/esotsal/topology_manager_in_local_up_cluster
Configure topology manager policy in local-up-cluster
2024-10-23 14:22:53 +01:00
dom4ha
b3c4fe48e9 Tune PreemptionAsync and Unschedulable tests threshold and params. 2024-10-23 12:24:10 +00:00
Kubernetes Release Robot
86ec185db4 CHANGELOG: Update directory for v1.31.2 release 2024-10-23 12:18:32 +00:00
Kubernetes Prow Robot
035e272cb1
Merge pull request #127341 from mjudeikis/mjudeikis/deprecate.ch.fully
Fully deprecate StopCh
2024-10-23 12:30:52 +01:00
Sotiris Salloumis
4e0581ee21 Configure topology manager option in local-up-cluster
This commit allows the configuration of topology manager
option with the use of environment variable, following
same approach as done for configuring cpumanager policy
options.
2024-10-23 13:11:10 +02:00
Kubernetes Prow Robot
5ffb0528dd
Merge pull request #126214 from 20202200/20202200-patch-1
Fix a spelling error of hash in the description of the build script
2024-10-23 11:00:52 +01:00
Kubernetes Prow Robot
c6669ea7d6
Merge pull request #127155 from ffromani/alignment-metrics
node: metrics: add resource alignment metrics
2024-10-23 09:54:58 +01:00
Kubernetes Prow Robot
403fcab520
Merge pull request #127036 from oscgu/chore/rm-ioutil-1
chore(cmd): rm ioutil
2024-10-23 09:54:52 +01:00
Kubernetes Prow Robot
ae53151cb4
Merge pull request #127044 from oscgu/chore/rm-ioutil-8
chore(staging/cloud-provider): rm ioutil
2024-10-23 08:30:59 +01:00
Kubernetes Prow Robot
743f5a1a02
Merge pull request #127038 from oscgu/chore/rm-ioutil-3
chore(client): rm ioutil
2024-10-23 08:30:52 +01:00
Kubernetes Prow Robot
2002023a4e
Merge pull request #127656 from jdtuhui/testifylint/formatter@test/utils
fix: enable formatter rule from testifylint in module test/utils
2024-10-23 07:26:52 +01:00
Francesco Romani
c025861e0c node: metrics: add resource alignment metrics
In order to improve the observability of the resource management
in kubelet, cpu allocation and NUMA alignment, we add more metrics
to report if resource alignment is in effect.

The more precise reporting would probably be using pod status,
but this would require more invasive and riskier changes,
and possibly extra interactions to the APIServer.

We start adding metrics to report if containers got their
compute resources aligned.
If metrics are growing, the assingment is working as expected;
If metrics stay consistent, perhaps at zero, no resource
alignment is done.

Extra fixes brought by this work
- retroactively add labels for existing tests
- running metrics test demands precision accounting to avoid flakes;
  ensure the node state is restored pristine between each test, to
  minimize the aforementioned risk of flakes.
- The test pod command line was wrong, with this the pod could not
  reach Running state. That gone unnoticed so far because
  no test using this utility function actually needed a pod
  in running state.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2024-10-23 08:05:38 +02:00
Kubernetes Release Robot
fdc48b929d CHANGELOG: Update directory for v1.30.6 release 2024-10-23 04:40:14 +00:00
Kubernetes Release Robot
17ecef580c CHANGELOG: Update directory for v1.29.10 release 2024-10-23 04:37:31 +00:00