Commit Graph

358 Commits

Author SHA1 Message Date
Lubomir I. Ivanov
804708df53 /test: use a different image for hostname override e2e tests
As discovered in ticket 134737 `hostname` is buggy on busybox
due to the musl backend that it uses. something in the /etc/hosts
that k8s generates trips its parser and it doesn't work properly
in the ipv6 tests.

To workaround that use an image that has a glibc backend,
so that the hostname command works.
2025-10-22 15:07:01 +02:00
Kubernetes Prow Robot
cba95d3e42 Merge pull request #132601 from toVersus/test/more-pod-level-resources
[PodLevelResources] Add more comprehensive test cases to kubelet
2025-10-20 14:26:36 -07:00
Kubernetes Prow Robot
e34f01402f Merge pull request #134703 from pohly/e2e-fix-test-name-uniqueness
e2e: find and fix reuse of test names
2025-10-18 15:38:07 -07:00
Kubernetes Prow Robot
76f5a1c8c2 Merge pull request #134635 from vivzbansal/execprobe1
Locked the (generally available) feature gate `ExecProbeTimeout` to true.
2025-10-17 18:06:40 -07:00
Vivek Bansal
af17392630 Setting the default feature-gate ExecProbeTimeout value to TRUE 2025-10-17 18:38:05 +00:00
Patrick Ohly
d0a2a0d22e e2e: find and fix reuse of test names
This reports and fixes for test/e2e:

    ERROR: E2E suite initialization was faulty, these errors must be fixed:
    ERROR: apimachinery/mutatingadmissionpolicy.go:184: full test name is not unique: "[sig-api-machinery] MutatingAdmissionPolicy [Privileged:ClusterAdmin] [Feature:MutatingAdmissionPolicy] [FeatureGate:MutatingAdmissionPolicy] [Beta] [Feature:OffByDefault] should support MutatingAdmissionPolicy API operations" (/nvme/gopath/src/k8s.io/kubernetes/test/e2e/apimachinery/mutatingadmissionpolicy.go:184, /nvme/gopath/src/k8s.io/kubernetes/test/e2e/apimachinery/mutatingadmissionpolicy.go:606)
    ERROR: apimachinery/mutatingadmissionpolicy.go:412: full test name is not unique: "[sig-api-machinery] MutatingAdmissionPolicy [Privileged:ClusterAdmin] [Feature:MutatingAdmissionPolicy] [FeatureGate:MutatingAdmissionPolicy] [Beta] [Feature:OffByDefault] should support MutatingAdmissionPolicyBinding API operations" (/nvme/gopath/src/k8s.io/kubernetes/test/e2e/apimachinery/mutatingadmissionpolicy.go:412, /nvme/gopath/src/k8s.io/kubernetes/test/e2e/apimachinery/mutatingadmissionpolicy.go:834)
    ERROR: common/node/pod_level_resources.go:250: full test name is not unique: "[sig-node] Pod Level Resources [Serial] [Feature:PodLevelResources] [FeatureGate:PodLevelResources] [Beta] Guaranteed QoS pod with container resources" (/nvme/gopath/src/k8s.io/kubernetes/test/e2e/common/node/pod_level_resources.go:250 (2x))
    ERROR: dra/dra.go:1899: full test name is not unique: "[sig-node] [DRA] kubelet [Feature:DynamicResourceAllocation] [FeatureGate:DRAConsumableCapacity] [Alpha] [Feature:OffByDefault] [FeatureGate:DynamicResourceAllocation] must allow multiple allocations and consume capacity [KubeletMinVersion:1.34]" (/nvme/gopath/src/k8s.io/kubernetes/test/e2e/dra/dra.go:1899 (2x))
    ERROR: storage/testsuites/volume_group_snapshottable.go:173: full test name is not unique: "[sig-storage] CSI Volumes [Driver: csi-hostpath] [Testpattern:  (delete policy)] volumegroupsnapshottable [Feature:volumegroupsnapshot] VolumeGroupSnapshottable  should create snapshots for multiple volumes in a pod" (/nvme/gopath/src/k8s.io/kubernetes/test/e2e/storage/testsuites/volume_group_snapshottable.go:173 (2x))
    ERROR: storage/testsuites/volume_group_snapshottable.go:173: full test name is not unique: "[sig-storage] CSI Volumes [Driver: pd.csi.storage.gke.io] [Serial] [Testpattern:  (delete policy)] volumegroupsnapshottable [Feature:volumegroupsnapshot] VolumeGroupSnapshottable  should create snapshots for multiple volumes in a pod" (/nvme/gopath/src/k8s.io/kubernetes/test/e2e/storage/testsuites/volume_group_snapshottable.go:173 (2x))

And for test/e2e_node:

    ERROR: cpu_manager_test.go:1622: full test name is not unique: "[sig-node] CPU Manager [Serial] [Feature:CPUManager] when checking the CFS quota management should disable for guaranteed pod with exclusive CPUs assigned" (/nvme/gopath/src/k8s.io/kubernetes/test/e2e_node/cpu_manager_test.go:1622, /nvme/gopath/src/k8s.io/kubernetes/test/e2e_node/cpu_manager_test.go:1642)
    ERROR: eviction_test.go:800: full test name is not unique: "[sig-node] LocalStorageCapacityIsolationFSQuotaMonitoring [Slow] [Serial] [Disruptive] [Feature:LocalStorageCapacityIsolationQuota] [Feature:LSCIQuotaMonitoring] [Feature:UserNamespacesSupport] when we run containers that should cause use quotas for LSCI monitoring (quotas enabled: true)  should eventually evict all of the correct pods" (/nvme/gopath/src/k8s.io/kubernetes/test/e2e_node/eviction_test.go:800 (2x))
2025-10-17 20:19:52 +02:00
Natasha Sarkar
4eead9306d add coverage for pod resize 'read' and 'replace' endpoints 2025-10-16 16:49:47 +00:00
Tsubasa Nagasawa
476824c2a1 [PodLevelResources] Add more comprehensive test cases to kubelet
Signed-off-by: Tsubasa Nagasawa <toversus2357@gmail.com>
2025-10-15 10:50:21 +09:00
Kubernetes Prow Robot
5c73384abb Merge pull request #134283 from natasha41575/ippr-tests
[InPlacePodVerticalScaling] refactor and increase coverage for pod resize tests
2025-10-02 17:39:10 -07:00
Natasha Sarkar
748510b8ee refactor and increase coverage for pod resize tests 2025-10-02 20:47:40 +00:00
Michael Aspinwall
84f85712be feat: Add matcher and conformance tests ensuring that RV is uint128 2025-10-01 00:01:50 +00:00
Michael Aspinwall
37fcfcd29e feat: Add conformance tests for all resources for comparable resource version 2025-09-29 23:32:07 +00:00
Kubernetes Prow Robot
08489ee0d8 Merge pull request #134062 from rbiamru/add-nodeconformance-labels
test/e2e/node: add [NodeConformance] label to ConfigMap update test
2025-09-23 15:48:13 -07:00
rbiamru
1c41cb0550 fix gofmt 2025-09-16 00:46:26 -04:00
rbiamru
842d6d29fc test/e2e/node: promote ConfigMap update test to Conformance 2025-09-16 00:00:25 -04:00
Amruthan Manjula Anandan
938b23879a test/e2e/node: add [NodeConformance] label to ConfigMap update test 2025-09-15 00:01:08 -04:00
Kubernetes Prow Robot
c475dd271b Merge pull request #134014 from toVersus/fix/downward-api-flake
deflake e2e tests: Pod Level Resources Downward API
2025-09-12 15:24:06 -07:00
Kubernetes Prow Robot
601068b889 Merge pull request #134018 from tico88612/cleanup/new-indexer-informer-watcher-replace
Replace NewIndexerInformerWatcher with NewIndexerInformerWatcherWithLogger
2025-09-12 03:18:08 -07:00
Kubernetes Prow Robot
1d80f35350 Merge pull request #132791 from bitoku/cpu-weight
Update pod resize test to accept new cpu.weight conversion.
2025-09-11 16:20:08 -07:00
ChengHao Yang
029d314e15 Replace NewIndexerInformerWatcher with NewIndexerInformerWatcherWithLogger
Signed-off-by: ChengHao Yang <17496418+tico88612@users.noreply.github.com>
2025-09-12 01:44:02 +08:00
Tsubasa Nagasawa
ecff35e2fb deflake e2e tests: set cpu requests to avoid out of cpu
Pod Level Resources Downward API has two test cases. In each
test, a Pod is created with only CPU limits of 1250m specified.
Since CPU limits are set, the CPU requests also default to 1250m.
With a Node capacity of 2000m, two 1250m Pods cannot be scheduled,
which appears to cause the OutOfCpu error.
2025-09-11 21:44:44 +09:00
ylink-lfs
1fd7f308fc ci: remove httpd usage while using agnhost instead 2025-09-01 20:11:18 +08:00
Ayato Tokubi
799312a402 Update pod resize test to accept new cpu.weight conversion.
Signed-off-by: Ayato Tokubi <atokubi@redhat.com>
2025-08-29 16:39:18 +00:00
Tim Allclair
01470d973b Fix memory limit decrease test on cri-o 2025-08-01 09:56:51 -07:00
Kubernetes Prow Robot
656360f67c Merge pull request #133254 from HirazawaUi/fixinvalid-validation
Fix incorrect validation on the kubelet
2025-07-29 10:12:34 -07:00
Kubernetes Prow Robot
1ef7677415 Merge pull request #133220 from toVersus/fix/downward-api-e2e-failure
[PodLevelResources] Add missing label to Downward API test
2025-07-28 21:06:29 -07:00
Kubernetes Prow Robot
dd4e4f1dd1 Merge pull request #133262 from BenTheElder/no-authenticated-image-pulling
remove broken test that depends on expired credential, remove hardcoded credential, add TODOs
2025-07-28 17:28:28 -07:00
Benjamin Elder
8ace0fb89f remove failing test that depends on expired credential, remove credential, add TODOs
see: https://github.com/kubernetes/kubernetes/issues/130271
2025-07-28 15:43:43 -07:00
HirazawaUi
6997fbd1ed Fix incorrect validation on the kubelet 2025-07-29 00:02:20 +08:00
Tsubasa Nagasawa
48fd30113c [PodLevelResources] Add missing label to Downward API test 2025-07-26 07:51:58 +09:00
Kubernetes Prow Robot
b09f1bfe12 Merge pull request #132902 from haircommander/userns-metrics
KEP-127: kubelet: add metrics for userns pods
2025-07-24 19:08:41 -07:00
Kubernetes Prow Robot
bd7fb738bd Merge pull request #132605 from toVersus/feat/downward-api-plresources
[PodLevelResources] Update Downward API defaulting for resource limits
2025-07-24 16:44:42 -07:00
Kubernetes Prow Robot
6ef2215eb7 Merge pull request #132558 from HirazawaUi/Implement-4762
KEP-4762: Allows setting any FQDN as the pod's hostname
2025-07-23 16:26:27 -07:00
Tsubasa Nagasawa
a82187cf11 [PodLevelResources] Update Downward API defaulting for resource limits
Currently, when container-level resource limits were not specified and
the Downward API was used to set environment variables referencing them,
the node's allocatable resources were used as the fallback.
With the introduction of the Pod Level Resources feature, this behavior
is updated: if container-level resource limits are not specified,
the Downward API now uses the pod-level resource limits instead.
If neither container-level nor pod-level resource limits are specified,
the behavior remains unchanged. It falls back to the node's allocatable
resources.

Signed-off-by: Tsubasa Nagasawa <toversus2357@gmail.com>
2025-07-24 08:15:36 +09: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
HirazawaUi
8d65e1e98e Add e2e tests. 2025-07-23 22:57:11 +08: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
Peter Hunt
407bcf8864 kubelet: add metrics for userns pods
Signed-off-by: Peter Hunt <pehunt@redhat.com>
2025-07-22 11:05:00 -04:00
Kubernetes Prow Robot
ade9b7746a Merge pull request #132595 from AxeZhan/ga3960
Graduate PodLifecycleSleepAction to GA
2025-07-19 13:22:39 -07:00
sreeram-venkitesh
00bf3b37a7 Graduate PodLifecycleSleepActionAllowZero to GA 2025-07-18 21:35:58 +05:30
Kubernetes Prow Robot
4a80270b30 Merge pull request #133012 from tallclair/mem-lim-decrease
[FG:InPlacePodVerticalScaling] Support reducing memory limits
2025-07-17 17:10:39 -07:00
Tim Allclair
75ae2d727a Add an E2E test for memory limit decrease usage check 2025-07-17 13:17:35 -07:00
Tim Allclair
2a9388c303 Move memory limit decrease e2e test to success cases 2025-07-17 13:17:35 -07:00
Natasha Sarkar
465f728141 use gomega.BeComparableTo instead of Equal for resource quantity check in resize test 2025-07-17 20:09:05 +00:00
Kubernetes Prow Robot
37a7addd0c Merge pull request #132264 from HirazawaUi/promote-to-conformance
Promote RelaxedEnvironmentVariableValidation test to Conformance #132219
2025-07-12 11:31:28 -07:00
Kubernetes Prow Robot
eace307651 Merge pull request #132795 from tallclair/resize-patch
Avoid manually writing resize patches for pod resize E2Es
2025-07-09 12:05:27 -07:00
Kubernetes Prow Robot
09bb45816a Merge pull request #132468 from haircommander/status-retry
e2e: retry getting status on restart policy tests
2025-07-08 18:21:28 -07:00
Tim Allclair
ae7d637b89 Delete unused ResizeContainerPatch function 2025-07-07 13:59:32 -07:00
Tim Allclair
f1b35cae91 Use MakeResizePatch instead of hand-written patch strings in resize E2Es 2025-07-07 13:58:40 -07:00
Tim Allclair
00c1c1a58e Generate an E2E resize patch from original & desired ResizableContainerInfo 2025-07-07 13:57:48 -07:00