Commit Graph

26992 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
ef54ac803b Merge pull request #130187 from mansikulkarni96/129084
fix:  Sweep and fix stat, lstat, evalsymlink usage for go1.23 on Windows
2025-02-22 11:50:26 -08:00
Kubernetes Prow Robot
0a08529144 Merge pull request #129770 from sunnylovestiramisu/promoteGA
Promote Beta AnyVolumeDataSource to GA
2025-02-21 16:50:26 -08:00
Tim Allclair
ddd4c56893 Fix pod resize E2E tests after forbidding memory limit decrease 2025-02-21 15:46:33 -08:00
mansikulkarni96
2a32b21372 [test] handle ModeIrregular in getFilePerm for Go 1.23 2025-02-21 18:02:28 -05:00
Patrick Ohly
9492a2ca9b DRA: add dedicated integration tests
DRA had integration tests as part of test/integration/scheduler_perf (for the
scheduler plugin) and some others scattered in different
places (e.g. test/integration/resourceclaim for device status).

The new test/integration/dra is meant to become the common location for all
DRA-related integration tests. This makes it simpler to share common setup
code.
2025-02-21 20:48:04 +01:00
Kubernetes Prow Robot
354299bea0 Merge pull request #130323 from Jefftree/ssr-test-fix
Fix SelfSubjectReview test to decouple beta and GA types
2025-02-21 08:38:38 -08:00
Kubernetes Prow Robot
fa03b93d25 Merge pull request #130326 from elizabeth-dev/statefulset-framework-return-errors
test(statefulset): return errors in framework function GetPodList for upstream handling
2025-02-21 00:06:26 -08:00
Cici Huang
e1b3c8fd9b Add e2e test 2025-02-20 21:00:01 -08:00
Kubernetes Prow Robot
b2021035c7 Merge pull request #129888 from jsafrane/selinux-controller-tests
Add SELinux controller e2e tests
2025-02-20 13:46:26 -08:00
Henry Wu
4e651addd8 Add statusz endpoint for kube-scheduler 2025-02-20 13:16:06 -08:00
Elizabeth Martin Campos
a49b336e83 test(statefulset): return errors in framework function GetPodList for upstream handling
See #130159
2025-02-20 21:24:15 +01:00
Jefftree
92cc680c8a Fix SelfSubjectReview test to decouple beta and GA types from the same apiserver 2025-02-20 19:32:16 +00:00
Patrick Ohly
f9e7b15c00 ktesting: add Run
This is useful in Go unit tests because it directly replaces the corresponding
testing.T/B.Run.
2025-02-20 14:41:06 +01:00
Patrick Ohly
c2ad724e9a ktesting: add Parallel
It's useful for writing parallel unit tests.
2025-02-20 14:35:40 +01:00
Jan Safranek
bf63e0046c selinux: rename allMetrics
To indicate they're all _SELinux_ metrics
2025-02-20 12:19:07 +01:00
Kubernetes Prow Robot
0b1ef24a99 Merge pull request #130285 from LionelJouin/fix-130096
Fix DRA flaky test for ResourceClaim device status
2025-02-20 00:20:26 -08:00
Kubernetes Prow Robot
afbbdbedc2 Merge pull request #128685 from AnishShah/fix-ippr-test
[FG:InPlacePodVerticalScaling]  assert specific error occurred in tests
2025-02-19 17:06:26 -08:00
Kubernetes Prow Robot
c75960c414 Merge pull request #129497 from carlory/remove-fg-AppArmorFields
Remove general available feature-gate AppArmorFields
2025-02-19 14:38:26 -08:00
Lionel Jouin
993f3c361f Fix DRA flaky test for ResourceClaim device status
The previous Eventually loop was not properly checking if the pod was
scheduled and running. Thus, the node name could not be retrieved from
the pod specs. The plugin could not be retrieved and the UpdateStatus
was called on a nil object.
TestPod function is now used instead, so the test waits for the pod to
be scheduled. The Eventually loop to get the pod and resourceClaim is
then no longer needed.

Signed-off-by: Lionel Jouin <lionel.jouin@est.tech>
2025-02-19 20:34:38 +01:00
sunnylovestiramisu
21f899596e Promote AnyVolumeDataSource to GA 2025-02-19 17:58:09 +00:00
Kubernetes Prow Robot
f0077a3689 Merge pull request #130221 from soltysh/flake_129779
Add more log information to help debug flake #129779
2025-02-19 06:46:26 -08:00
Kubernetes Prow Robot
bff54e4020 Merge pull request #130013 from yongruilin/crd-racheting-ga
KEP-4008: promote CRDValidationRatcheting to GA
2025-02-18 18:08:25 -08:00
Kubernetes Prow Robot
0e3a247859 Merge pull request #130083 from elizabeth-dev/replace-network-e2e-replicationcontrollers-5
test(network): replace calls to e2erc.RunRC with Deployments in SIG Network tests
2025-02-18 15:06:26 -08:00
Kubernetes Prow Robot
821bc2e15e Merge pull request #130128 from adrianmoisey/bump-kep-4427-to-beta
Bump KEP-4427 : AllowRelaxedDNSSearchValidation to Beta
2025-02-18 12:10:34 -08:00
Jan Safranek
d3eb639313 selinux: add tests for SELinuxController
Squeeze them into existing kubelet metric tests. The tests would have very
similar setup + cleanup.
2025-02-18 17:44:13 +01:00
Elizabeth Martin Campos
e15fd43d81 test(network): replace calls to e2erc.RunRC with Deployments in service latency tests
See #119021
2025-02-18 17:42:00 +01:00
Elizabeth Martin Campos
cd0df9786e test(network): replace calls to e2erc.RunRC with Deployments in service proxying tests
See #119021
2025-02-18 17:41:12 +01:00
Kubernetes Prow Robot
9a2a278a20 Merge pull request #130162 from carlory/remove-cloud-provider-and-cloud-config-in-apiserver-CLI
kube-apiserver: removed the deprecated the `--cloud-provider` and `--cloud-config` CLI parameters.
2025-02-18 08:00:38 -08:00
Kubernetes Prow Robot
fc876787b8 Merge pull request #130126 from fuweid/fix-128314
proxy: should add PingPeriod for websocket translator
2025-02-18 08:00:26 -08:00
Jan Safranek
992c8e9479 selinux: explicitly specify NodeMetrics in function names
This is just refactoring / renaming.

The SELinux e2e tests grab node metrics so far, so mention `Node` in the
function names. Kube-controller-metrics will follow in a subsequent commit.
2025-02-18 11:48:36 +01:00
Francesco Romani
323410664c e2e: node: cpumgr: check CPU allocatable for CFS quota test
add (admittedly pretty crude) CPU allocatable check.
A more incisive refactoring is needed, but we need
to unbreak CI first, so this seems the minimal decently clean test.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2025-02-18 10:04:57 +01:00
Kubernetes Prow Robot
931ad2a9fd Merge pull request #130108 from carlory/cleanup-after-81245
remove NodeOSDistroIs from test/e2e/framework/pod
2025-02-18 00:12:12 -08:00
Maciej Szulik
a36f64e074 Add more log information to help debug flake #129779
Signed-off-by: Maciej Szulik <soltysh@gmail.com>
2025-02-17 18:13:20 +01:00
Kubernetes Prow Robot
1b79b8952a Merge pull request #129997 from carlory/HonorPVReclaimPolicy-e2e
HonorPVReclaimPolicy: add more e2e tests
2025-02-17 04:08:22 -08:00
Kubernetes Prow Robot
2527854078 Merge pull request #130178 from bart0sh/PR172-e2e-fix-websockets-conformance
e2e: fix node conformance flake
2025-02-17 02:08:33 -08:00
carlory
c48499d360 fix ci
Signed-off-by: carlory <baofa.fan@daocloud.io>
2025-02-17 11:49:24 +08:00
carlory
2382c0125b remove Removed generally available feature-gate DisableCloudProviders and DisableKubeletCloudCredentialProviders
Signed-off-by: carlory <baofa.fan@daocloud.io>
2025-02-17 09:59:59 +08:00
Kubernetes Prow Robot
1e38c86893 Merge pull request #129996 from yongruilin/fix-flag-apiserver
fix: apiserver flagz to response actual parsed flags
2025-02-16 13:56:23 -08:00
Kubernetes Prow Robot
e7b03ea0d3 Merge pull request #130080 from elizabeth-dev/replace-network-e2e-replicationcontrollers-2
test(network): replace RCs with Deployments in util function StartServeHostnameService
2025-02-16 09:44:21 -08:00
Elizabeth Martin Campos
e353086e6a test(network): replace RCs with Deployments in util function StartServeHostnameService
See #119021
2025-02-16 14:50:46 +01:00
Elizabeth Martin Campos
98d600bef9 test(network): replace RCs with Deployments in util function CreateServicePods
See #119021
2025-02-15 22:09:55 +01:00
Kubernetes Prow Robot
78f7217993 Merge pull request #130082 from elizabeth-dev/replace-network-e2e-replicationcontrollers-4
test(network): replace RCs with Deployments in util function jig.Run
2025-02-15 07:44:21 -08:00
Kubernetes Prow Robot
1d73c5d882 Merge pull request #130141 from pohly/dra-e2e-env-check
DRA E2E: fix race between container start and check
2025-02-14 21:46:20 -08:00
Kubernetes Prow Robot
8dbc6739e0 Merge pull request #130151 from marosset/windows-unit-tests-externaljwt-plugin-fixes
fixing k8s.io/kubernetes/pkg/serviceaccount/externaljwt/plugin unit tests on Windows
2025-02-14 13:44:20 -08:00
Ed Bartosh
f6090185a8 e2e: fix node conformance flake
The test `Pods should support retriving logs from the container
over websockets` flakes as it doesn't always wait until
container is running and is able to produce expected output.
Waiting for pod to be in the `Running` state is not enough
as it doesn't mean that container is running.

Waiting for container to be in `Running` state should fix
the test.
2025-02-14 20:19:17 +02:00
Adrian Moisey
6d58125111 Bump KEP-4427 : AllowRelaxedDNSSearchValidation to Beta 2025-02-14 19:39:18 +02:00
Kubernetes Prow Robot
9f2629123f Merge pull request #129940 from vinayakankugoyal/gen
cleanup: Remove unused service account creation from node_authn.go
2025-02-14 07:46:21 -08:00
Wei Fu
dc59c0246f proxy: should add PingPeriod for websocket translator
IIUC, before using the translator handler, the ping data can be delivered from
the client to the runtime side since kube-apiserver does not parse any client
data. However, with WebSocket, the server responds with a pong to the client
without forwarding the data to the runtime side. If a proxy is present, it may
close the connection due to inactivity. SPDY's PingPeriod can help address this
issue.

Signed-off-by: Wei Fu <fuweid89@gmail.com>
Co-authored-by: Antonio Ojea <aojea@google.com>
2025-02-14 10:16:18 -05:00
Francesco Romani
844c2ef39d e2e: node: cpumgr: cleanup after each test case
Our CI machines happen to have 1 fully allocatable CPU for test workloads.
This is really, really the minimal amount. But still should be sufficient for the tests to run
the tests; the CFS quota pod, however, does create a series of pods (at time of writing, 6)
and does the cleanup only at the very end the end. This means pods
requiring resources accumulate on the CI machine node.

The fix implemented here is to just clean up after each subcase.
Doing so the cpu test footprint is equal to the higher requirement (say, 1000 millicores) vs
the sum of all the subcases requirements.

Doing like this doesn't change the test behavior, and make it possible
to run it on very barebones machines.
2025-02-14 15:45:36 +01:00
Michal Wozniak
f5e86dfea6 Deflake the PodReplacementPolicyFeatureToggling Job integration test 2025-02-14 12:32:51 +01:00