Commit Graph

129895 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
3ec10da031 Merge pull request #131608 from omerap12/migrate-ExtractCommentTags-conversion
Migrate ExtractCommentTags to ExtractFunctionStyleCommentTags
2025-05-13 07:03:27 -07:00
Kubernetes Prow Robot
c6311d5836 Merge pull request #130927 from mortent/PartitionableDeviceE2eTests
E2e tests for Partitionable Devices
2025-05-13 07:03:21 -07:00
Kubernetes Prow Robot
fd15e3fd55 Merge pull request #131697 from adrianmoisey/add-adrian-as-reviewer
Self nominate adrianmoisey as sig-network reviewer
2025-05-12 17:53:23 -07:00
Kubernetes Prow Robot
b8d9c12d1b Merge pull request #131330 from aojea/servicecidr_fixes
servicecidr: only patch status if necessary
2025-05-12 17:53:16 -07:00
Kubernetes Prow Robot
1a0eeb90e4 Merge pull request #131715 from thockin/kk_yaml_decoder_nits
Account consumed newlines properly in YAML decoder
2025-05-12 16:01:15 -07:00
Kubernetes Prow Robot
832be9538e Merge pull request #131725 from dims/avoid-encoding-in-log-response-object-when-we-dont-need-it
Avoid encoding in LogResponseObject when we are not going to use it
2025-05-12 12:15:15 -07:00
Davanum Srinivas
721947a570 Update staging/src/k8s.io/apiserver/pkg/audit/request_log_test.go
Co-authored-by: Tim Allclair <timallclair@gmail.com>
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2025-05-12 14:11:19 -04:00
Davanum Srinivas
153233c677 review from tallclair
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2025-05-12 12:59:58 -04:00
Kubernetes Prow Robot
0e64c6443f Merge pull request #131727 from danwinship/labeldocs
Fix comments on ginkgo label functions
2025-05-12 09:29:16 -07:00
Davanum Srinivas
e418ee3a92 Avoid encoding in LogResponseObject when we are not going to use it
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2025-05-12 12:11:38 -04:00
Morten Torkildsen
26c198dc20 Some fixes 2025-05-12 16:08:15 +00:00
Morten Torkildsen
0b915a538f Cleanup after rebase 2025-05-12 16:02:11 +00:00
Morten Torkildsen
a6586aa610 Addressed comments 2025-05-12 16:01:01 +00:00
Morten Torkildsen
e262cccf23 Cleanup after rebase 2025-05-12 16:00:07 +00:00
Morten Torkildsen
8610404358 Add e2e tests for Partitionable Devices 2025-05-12 16:00:04 +00:00
Morten Torkildsen
ece35e5882 Update DRA e2e test framework to allow publishing advanced ResourceSlices 2025-05-12 15:56:24 +00:00
Dan Winship
a437a269f1 Fix comments on ginkgo label functions 2025-05-12 11:22:18 -04:00
Kubernetes Prow Robot
48fcf418ce Merge pull request #131691 from pohly/dra-e2e-labeling
DRA E2E: revise test labeling
2025-05-12 05:43:16 -07:00
Patrick Ohly
85734ac6b3 DRA E2E: don't run prioritized list tests twice
For some reasons all tests in `prioritizedListTests` were registered and thus
run twice.

While at it we can simplify the test names: the "with <feature text>" part is
redundant because we also have the automatically injected
`[FeatureGate:<feature gate name>]`.
2025-05-12 10:48:19 +02:00
Tim Hockin
cfe7d04243 Account consumed newlines properly in YAML decoder
This isn't a significant functional bug in that the StreamDecoder is
still offset to account for it (which is why we never saw it before).
But it's a trap for future use-cases.

Also move one LOC to match a parallel-shaped block above.
2025-05-11 16:22:52 -07:00
Kubernetes Prow Robot
627ce4946c Merge pull request #131689 from carlory/remove-expectNoError
use framework.ExpectNoError instead
2025-05-11 05:01:14 -07:00
carlory
d5a56739ce use framework.ExpectNoError instead
Co-authored-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: carlory <baofa.fan@daocloud.io>
2025-05-11 13:12:29 +08:00
Kubernetes Prow Robot
d3dfded28e Merge pull request #131469 from aojea/service_cidr_default_controller
Service cidr default controller
2025-05-10 07:19:14 -07:00
Kubernetes Prow Robot
60b77eb444 Merge pull request #131709 from SataQiu/kubeadm-bump-etcd-20250510
kubeadm: bump supported etcd version
2025-05-10 06:15:14 -07:00
Antonio Ojea
699ec0a538 Remove wrong comment 2025-05-10 13:15:12 +02:00
SataQiu
ea6b4ea7e9 kubeadm: bump supported etcd version 2025-05-10 16:16:04 +08:00
Kubernetes Prow Robot
e94babb2aa Merge pull request #131694 from dims/eliminate-audit-context-set-event-level
Eliminate AuditContext`s SetEventLevel
2025-05-09 17:51:19 -07:00
Kubernetes Prow Robot
2fed387a90 Merge pull request #131702 from tigrato/master
Panic in `NewYAMLToJSONDecoder`
2025-05-09 15:41:18 -07:00
Tiago Silva
d1fb42a400 fix: fixes a possible panic in NewYAMLToJSONDecoder
This PR fixes a possible panic caused by decoding a JSON document
followed by a YAML document that is shorter than the first json
document.

This can cause a panic because the stream already consumed the JSON
data. When we fallback to YAML reader, the YAML starts with a zero
offset while the stream consumed data is non-zero. This could lead into
consuming negative bytes because `d.yaml.InputOffset() -
d.stream.Consumed()` is negative which will cause a panic.

Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>
2025-05-09 22:26:33 +01:00
Kubernetes Prow Robot
c6658c933e Merge pull request #130274 from ffromani/e2e-node-cpumanager-rewrite
e2e: node: rewrite cpumanager tests
2025-05-09 13:37:21 -07:00
Kubernetes Prow Robot
fa10ea63a6 Merge pull request #127050 from omerap12/podautoscaler-ExternalPerpodMetricReplicas-intmax
HPA: Fix int overflow in GetExternalPerPodMetricReplicas
2025-05-09 13:37:14 -07:00
Kubernetes Prow Robot
7017be7b08 Merge pull request #131686 from carlory/fix-105581
Move test cases from mounted_volume_resize into testsuites/volume_expand.go
2025-05-09 11:59:20 -07:00
Kubernetes Prow Robot
ba14d26c04 Merge pull request #131650 from omerap12/hpa-reviewers
Add hpa reviewers
2025-05-09 11:59:14 -07:00
Davanum Srinivas
960a4939f2 Eliminate AuditContext`s SetEventLevel
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
Co-Authored-By: Jordan Liggitt <liggitt@google.com>

Set event level during context init

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2025-05-09 14:26:13 -04:00
Kubernetes Prow Robot
9c128f1a4b Merge pull request #131685 from joshjms/build-etcd-image-3.6.0-rc.5
Build etcd v3.6.0-rc.5 image
2025-05-09 10:09:22 -07:00
Kubernetes Prow Robot
ad1cd4f138 Merge pull request #131682 from thockin/kk_recursive_bug
Fix broken recursion in validation-gen
2025-05-09 10:09:15 -07:00
Kubernetes Prow Robot
1b4c5b3f86 Merge pull request #131643 from pohly/dra-e2e-flakes
DRA: E2E test flake and failure fixes
2025-05-09 08:33:17 -07:00
Adrian Moisey
c39705281c Self nominate adrianmoisey as sig-network reviewer 2025-05-09 16:11:30 +02:00
Kubernetes Prow Robot
43be8301ed Merge pull request #131680 from karlkfi/karl-test-http-context
test: Pass test context to http requests
2025-05-09 04:15:14 -07:00
Patrick Ohly
b09d034a57 DRA E2E: revise test labeling
We only need one special "DynamicResourceAllocation" feature for the optional
node support of DRA (plugin registration, CDI support in the container
runtime). For individual features, the automatic labeling through
WithFeatureGate is sufficient.

To find DRA-related tests in a label filter, instead of plain-text "DRA" a
"DRA" label now gets added.

This change depends on an update of the DRA jobs.
2025-05-09 11:33:04 +02:00
Francesco Romani
13bd0b4ee8 e2e: node: rewrite the sidecar related tests
rewrite the tests porting to the new layout and utilities.
We may add more cases and better integration in the future.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2025-05-09 11:07:05 +02:00
Francesco Romani
f4265638be e2e: node: factor out reservedCPUs
now that we have a minimal BeforeEach (and let's keep it this way)
we can factor out the reservedCPUs setting, since it's the same
code for each testcase.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2025-05-09 11:07:04 +02:00
Francesco Romani
a8c8b0987d e2e: node: dissolve skipIfNotEnoughAllocatableCPUs
reuse existing building blocks at the cost of
a tiny, non-nested BeforeEach (which is still OK)
and some targeted duplication.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2025-05-09 11:07:04 +02:00
Francesco Romani
32d4724ab8 e2e: node: add comment about reserved CPU
Let's have a single general comment instead of
copypasting the same text all around the tests.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2025-05-09 11:07:04 +02:00
Francesco Romani
daf2fc7100 e2e: node: rewrite multi-pod tests
rewrite tests which check with multiple pods.
We may extend the coverage later on.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2025-05-09 11:07:04 +02:00
Francesco Romani
ccc662c228 e2e: node: initial multi-container tests
rewrite tests which exercise multiple container within the
same pod. Preserve the existing testcases, add more.

Note basic coverage for mixed pods - some containers requiring
exclusive CPUs, some not, was already added with the initial batch.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2025-05-09 11:07:04 +02:00
Francesco Romani
2419d9ccc5 e2e: node: rewrite: multi-cpus single-container pods
We have tests which cover the case on which a pod
with a single container require multiple CPUs;
rewrite them preserving the testcases and actually
adding coverage.

Add and use stricter checks along the way.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2025-05-09 11:07:04 +02:00
Francesco Romani
e4726719a7 e2e: node: rewrite more compatibility tests
Complete the rewrite the policy option compatibility tests,
rewriting the tests which check compatibility
between the `full-pcpus-only` and `distribute-cpus-across-numa`.

All testcases are preserved.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2025-05-09 11:07:04 +02:00
Francesco Romani
74fda8c700 e2e: node: rewrite compatibility tests
Rewrite the policy option compatibility tests.
We start with the tests which check the compatibility
between the `full-pcpus-only` and `strict-cpu-reservation`
tests, because the former is the only GA option
at time of writing.

All testcases are preserved.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2025-05-09 11:07:04 +02:00
Francesco Romani
dd3f9b6074 e2e: node: rewrite CFS quota tests
Rewrite the e2e cpumanager tests about CFS quota management.
All testcases are preserved.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2025-05-09 11:07:04 +02:00