Commit Graph

131615 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
49cd87182c Merge pull request #125271 from tssurya/psa-probe-lifecycle-handler-host-option
Add PSA for blocking `.host` on pod probes
2025-07-23 15:16:27 -07:00
Kubernetes Prow Robot
d195722623 Merge pull request #132121 from atiratree/rs-minReadySeconds
schedule pod availability checks at the correct time in ReplicaSets
2025-07-23 14:04:28 -07:00
Kubernetes Prow Robot
041974709c Merge pull request #132106 from AndrewSirenko/vac-valid
[KEP-3751] Allow PVC VACName to go from non-nil to nil
2025-07-23 12:52:30 -07:00
Surya Seetharaman
4c87e60d0d Tests using .host field in probes must be at priviledged level
The sig-node tests have scenarios of doing probes and
lifecycle handler tests with post-start and pre-stop hooks
setting the host field to be another pod.

In baseline level such things won't be allowed because of
the PSA rules we are adding in this PR. So unsetting
the host field means it uses the podIP of self for doing
the checks and using that in the pre-stop and post-start
hooks is tricky because of the timing issues with when the
container is actually up v/s running the test.

So I have changed the tests to be privileded for them to
use the .host fields if they desire to.

See https://github.com/kubernetes/kubernetes/issues/133091
which is an issue opened to properly refactor these tests.

Signed-off-by: Surya Seetharaman <suryaseetharaman.9@gmail.com>
2025-07-23 21:17:05 +02:00
Surya Seetharaman
f94fcac868 Add new fixture testData for 1.34 PSA
This commit adds the fixture tests for the
new .host field restrictions on probe
and lifecycle handlers.

ran UPDATE_POD_SECURITY_FIXTURE_DATA=true go test -v ./test/... -run TestFixtures

Signed-off-by: Surya Seetharaman <suryaseetharaman.9@gmail.com>
2025-07-23 21:15:46 +02:00
Surya Seetharaman
fc0474d771 Copy test fixtures to 1.34 from 1.32
Signed-off-by: Surya Seetharaman <suryaseetharaman.9@gmail.com>
2025-07-23 21:15:46 +02:00
Surya Seetharaman
9540a96396 Copy test fixtures to 1.33 from 1.32
Signed-off-by: Surya Seetharaman <suryaseetharaman.9@gmail.com>
2025-07-23 21:15:46 +02:00
Surya Seetharaman
4a3ebf886c update the minimal version to fix unit/fixture tests
Signed-off-by: Surya Seetharaman <suryaseetharaman.9@gmail.com>
2025-07-23 21:15:46 +02:00
Surya Seetharaman
333b19b441 Add PSA for blocking .host field on pod probes and lifecycle
Signed-off-by: Surya Seetharaman <suryaseetharaman.9@gmail.com>
2025-07-23 21:15:45 +02:00
Kubernetes Prow Robot
6d99828b80 Merge pull request #133127 from bart0sh/PR184-DRA-skip-flaky-test-on-Windows
DRA: skip flaky test case on Windows
2025-07-23 11:42:27 -07:00
Kubernetes Prow Robot
1cead78757 Merge pull request #133147 from pohly/dra-allocator-experimental
DRA: Add experimental allocator variant
2025-07-23 10:30:35 -07:00
Kubernetes Prow Robot
c41cc0a144 Merge pull request #129837 from danwinship/aggregated-apiserver-endpointslices
Port aggregated apiserver discovery to EndpointSlices
2025-07-23 10:30:28 -07:00
Filip Křepinský
2cb48f77f0 schedule pod availability checks at the correct time in ReplicaSets 2025-07-23 18:58:57 +02:00
Kubernetes Prow Robot
7383971ab3 Merge pull request #133145 from ffromani/podres-dynamic-resources-enable-test
e2e: node: podresources: exercise with dynamicresources enabled
2025-07-23 09:22:34 -07:00
Kubernetes Prow Robot
e979287f29 Merge pull request #133117 from Phaow/bump-external-snapshotter
Bump external snapshotter for vgs tests
2025-07-23 09:22:27 -07:00
Dan Winship
33b45c8383 Update "should proxy through a service and a pod" to look at EndpointSlices 2025-07-23 11:07:29 -04:00
Dan Winship
d70e7e223c Port aggregated apiserver discovery to EndpointSlices
Co-Authored-by: Jordan Liggitt <liggitt@google.com>
2025-07-23 11:07:29 -04:00
Dan Winship
41dc2d3b02 Add utilities for getting EndpointSlices for a Service
Co-Authored-by: Jordan Liggitt <liggitt@google.com>
2025-07-23 11:07:28 -04:00
Drew Sirenko
f7109ed281 [KEP-3751] Allow PVC VACName to update to nil or empty when status.currentVAC is nil 2025-07-23 10:59:18 -04:00
Morten Torkildsen
abb1b26d50 DRA: Add experimental allocator variant 2025-07-23 16:50:23 +02:00
Kubernetes Prow Robot
49af85d86a Merge pull request #133110 from ritazh/DRAAdminAccess_upgradedowngradetest
DRAAdminAccess: add upgrade downgrade test
2025-07-23 07:08:28 -07:00
Francesco Romani
17cc5e9ecd e2e: node: podresources: exercise with dynamicresources enabled
Differently than all the other tests, the testsuite
`TestListPodResourcesUsesOnlyActivePodsV1` did not enable
the `KubeletPodResourcesDynamicResources` FG.

This was just an oversight, because the test doesn't care
about the DynamicResources data, so the enablement was forgot.

We add the setting to make the tests consistent.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2025-07-23 15:38:34 +02:00
Kubernetes Prow Robot
9148694d4b Merge pull request #133140 from KobayashiD27/fix-integ-dra-testFilterTimeout
DRA Updated to not directly change the global variable `claim`
2025-07-23 04:58:33 -07:00
Kubernetes Prow Robot
0d5921171a Merge pull request #133105 from togettoyou/scheduler_perf_132495
KEP-5229: Run Unschedulable scheduler_perf test case with SchedulerAsyncAPICalls feature gate enabled
2025-07-23 04:58:27 -07:00
Kubernetes Prow Robot
00e3c2b27c Merge pull request #133141 from pohly/dra-e2e-cleanup
DRA E2E cleanup
2025-07-23 02:50:27 -07:00
Ed Bartosh
c2a06e7912 DRA: skip flaky test case on Windows
Added a skipOnWindows flag to DynamicResources scheduler test case
to skip test that relies on nanosecond timer precision.
Windows timer granularity is much coarser than Linux, which causes
the test to fail often.
2025-07-23 11:06:11 +03:00
Kubernetes Prow Robot
6e8cc32c51 Merge pull request #132970 from wongchar/grad-uncore-beta
cpumanager: graduate prefer-align-cpus-by-uncorecache to beta
2025-07-23 01:00:28 -07:00
Patrick Ohly
f6061605fb DRA E2E: run multi-node control plane tests also with two nodes
The tests should work also with only two nodes, which is the minimum required
for conformance testing.
2025-07-23 09:12:46 +02:00
Patrick Ohly
f0e2920898 DRA E2E: simplify "control plane" test names
There's no need to clarify how many nodes are used in the test because the
overall test names are still unique without that (verified with go test -v
./test/e2e -args -list-tests | grep -w DRA | wc -l).
2025-07-23 09:10:45 +02:00
Patrick Ohly
603751ee80 DRA E2E: remove redundant test
"must be possible for the driver to update the ResourceClaim.Status.Devices
once allocated" was also run as kubelet test although it only checks the
control plane.

Before:
    [sig-node] [DRA] [FeatureGate:DynamicResourceAllocation] [Beta] [Feature:OffByDefault] control plane with single node [ConformanceCandidate] must be possible for the driver to update the ResourceClaim.Status.Devices once allocated [FeatureGate:DRAResourceClaimDeviceStatus] [Beta]
    [sig-node] [DRA] [FeatureGate:DynamicResourceAllocation] [Beta] [Feature:OffByDefault] kubelet [Feature:DynamicResourceAllocation] on single node must be possible for the driver to update the ResourceClaim.Status.Devices once allocated [FeatureGate:DRAResourceClaimDeviceStatus] [Beta]

After:
    [sig-node] [DRA] [FeatureGate:DynamicResourceAllocation] [Beta] [Feature:OffByDefault] control plane with single node [ConformanceCandidate] must be possible for the driver to update the ResourceClaim.Status.Devices once allocated [FeatureGate:DRAResourceClaimDeviceStatus] [Beta]
2025-07-23 09:10:45 +02:00
Kubernetes Prow Robot
92ddde52d2 Merge pull request #133136 from yongruilin/crd-format-warning
feat: Add warnings for unrecognized formats in CRDs
2025-07-22 21:14:26 -07:00
Kobayashi,Daisuke
61bd5789be Updated to not directly change the global variable claim 2025-07-23 03:44:48 +00:00
Kubernetes Prow Robot
20734be1fc Merge pull request #133137 from ivanvc/bump-etcd-image-to-3.6.3
Build etcd v3.6.3 image
2025-07-22 19:04:42 -07:00
Kubernetes Prow Robot
c1bccaedaa Merge pull request #133135 from SergeyKanzhelev/debug_redact
added debug_redact to cri api secrets
2025-07-22 19:04:34 -07:00
Kubernetes Prow Robot
3e3f43f4b8 Merge pull request #132537 from lalitc375/hpa-validation
add validation logic for APIVersion fields of HPA
2025-07-22 19:04:27 -07:00
Kubernetes Prow Robot
c5ffd67cd2 Merge pull request #133130 from ylink-lfs/chore/residual_boolptr_removal
chore: residual boolptr and intptr removal with ptr.To
2025-07-22 17:56:33 -07:00
Kubernetes Prow Robot
4676341457 Merge pull request #133065 from natasha41575/dedupe-resize-test
dedupe fetching allocatable and available resources in node test
2025-07-22 17:56:27 -07:00
Ivan Valdes
db9b9b5a42 Build etcd v3.6.3 image 2025-07-22 16:48:31 -07:00
yongruilin
179551a7cb feat: Implement warnings for unrecognized formats in CRDs
Added functionality to the WarningsOnCreate and WarningsOnUpdate methods to return warnings for unrecognized formats in CRDs. Introduced helper functions to identify unrecognized formats in both top-level and version-specific schemas. Updated unit tests to cover various scenarios for format recognition.
2025-07-22 23:24:32 +00:00
yongruilin
437a2ad693 feat: Add func to export the supportedVersionedFormats
Implemented GetUnrecognizedFormats to identify unrecognized formats in schemas based on compatibility version. Added unit tests to validate various scenarios, including recognized and unrecognized formats across different versions.
2025-07-22 23:23:55 +00:00
Kubernetes Prow Robot
dd5e3483fb Merge pull request #133104 from aman4433/chore/replace-float64ptr-with-ptrTo
chore: replace float64Ptr with ptr.To helper
2025-07-22 16:16:27 -07:00
Sergey Kanzhelev
d943239c57 added debug_redact to cri api secrets 2025-07-22 22:11:23 +00:00
Kubernetes Prow Robot
c2be2cac02 Merge pull request #133124 from p0lyn0mial/upstream-fake-dynamic-client-opts-watch
client-go/dynamic/fake: sets opts.Watch true
2025-07-22 15:06:33 -07:00
Kubernetes Prow Robot
3e211097c7 Merge pull request #132810 from PatrickLaabs/132790-2
chore: removing redundant type conversion
2025-07-22 15:06:26 -07:00
Kubernetes Prow Robot
aee92cd6c3 Merge pull request #132968 from wongchar/uncore-e2e-beta
cpumanager: expand test coverage for prefer-align-cpus-by-uncore-cache
2025-07-22 13:40:50 -07:00
Lalit Chauhan
f6aee63690 add validation logic for APIVersion fields of HPA
New validation logic follows the API ratcheting principle,  will not be executed for already stored invalid if the corresponding fields or item in array is not modified. Please enter the commit message for your changes. Lines starting
2025-07-22 20:40:48 +00:00
Bing Hongtao
6f3b6b91f0 KEP-3721: Support for env files (#132626)
* Add FileKeyRef field and struct to the Pod API

* Add the implementation code in the kubelet.

* Add validation code

* Add basic functionality e2e tests

* add codes for drop disabled pod fields

* update go.mod
2025-07-22 13:40:42 -07:00
Kubernetes Prow Robot
08362f0650 Merge pull request #132429 from torredil/kep4876-beta
Promote sig-storage feature `MutableCSINodeAllocatableCount` to Beta
2025-07-22 13:40:34 -07:00
Kubernetes Prow Robot
c1136abd3b Merge pull request #132354 from toVersus/test/plr-scheduler-metrics
[PodLevelResources] Verify scheduler resource metrics account for Pod Level Resources
2025-07-22 13:40:27 -07:00
Kubernetes Prow Robot
2c9bb9e27b Merge pull request #133107 from pohly/dra-e2e-conformance-candidates
DRA E2E: revisit conformance classification of tests
2025-07-22 12:32:35 -07:00