Commit Graph

716 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
8812ec563c Merge pull request #134353 from skitt/drop-string-slice
Deprecate obsolete slice utility functions
2026-02-20 00:57:41 +05:30
Kubernetes Prow Robot
0ca5cba140 Merge pull request #135965 from kannon92/kep-5440-feature-gate-enable-e2e-test
set KEP-5440 to enabled by default
2026-02-18 18:13:38 +05:30
Stephen Kitt
d42d1e3d1f Deprecate obsolete slice utility functions
... and update users to use standard library functions.

Signed-off-by: Stephen Kitt <skitt@redhat.com>
2026-02-16 10:04:33 +01:00
Kubernetes Prow Robot
5b63a8c68e Merge pull request #136921 from dims/dump-from-utils
Move dump package from apimachinery to k8s.io/utils
2026-02-12 22:28:10 +05:30
Davanum Srinivas
550cc8645b Move dump package from apimachinery to k8s.io/utils
Replace all imports of k8s.io/apimachinery/pkg/util/dump with
k8s.io/utils/dump across the repo. The apimachinery dump package
now contains deprecated wrapper functions that delegate to
k8s.io/utils/dump for backwards compatibility.

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2026-02-12 07:34:19 -05:00
Kevin Hannon
94cc00aebb set KEP-5440 to enabled by default and add two e2e tests confirming behavior 2026-02-11 23:17:21 -05:00
Patrick Ohly
45251e5f65 client-go cache: allow passing name+logger to DeltaFIFO, RealFIFO and Reflector
This improves logging and enables more informative waiting for cache sync in a
following commit. It addresses one klog.TODO in the Reflector.

The RealFIFOOptions and InformerOptions structs get extended the same way as
DeltaFIFOOptions before: a logger may be set, but it's not required. This is
not an API break.

That the name has to be passed separately is a bit annoying at first glance
because it could also be set directly on the logger through WithName, but
keeping it separate is better:
- name can be set without providing a logger
- name can be defaulted
- less code in the caller when passing through a logger and adding
  the name only in the field
- last but not least, extracting the name is not supported in a portable
  manner by logr

All in-tree references in production code get updated.

While at it, logging in the fifos gets updated to follow best practices: if
some code encounters an abnormal situation and then continues, it should use
utilruntime.HandleErrorWithLogger instead of normal error logging.

Existing "logger" fields get moved to the top because that is a more common
place for such a read-only field.
2026-02-10 13:48:30 +01:00
Maciej Szulik
9eb57b6291 test/e2e: explicitly use new err variable inside parallelized code
Signed-off-by: Maciej Szulik <soltysh@gmail.com>
2025-12-05 11:17:34 +01:00
Jordan Liggitt
af9facf7ba Fix passing runtime.Object to HaveValidResourceVersion check 2025-10-01 10:00:54 -04: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
7c24e62d7c Add additional types for resource version comparison testing 2025-09-30 17:16:07 +00:00
Michael Aspinwall
37fcfcd29e feat: Add conformance tests for all resources for comparable resource version 2025-09-29 23:32:07 +00:00
Heba
36e3adf318 Add e2e test for MaxUnavailable StatefulSet RollingUpdate (#133717)
* Add e2e test for MaxUnavailable rolling update

Signed-off-by: Heba Elayoty <heelayot@microsoft.com>

* Update test/e2e/apps/statefulset.go

Co-authored-by: Maciej Szulik <soltysh@gmail.com>

* Adress feedback comments

Signed-off-by: Heba Elayoty <heelayot@microsoft.com>

* address feedback

Signed-off-by: Heba Elayoty <heelayot@microsoft.com>

* expose poll interval as a param

Signed-off-by: Heba Elayoty <heelayot@microsoft.com>

* Update test/e2e/apps/statefulset.go

Co-authored-by: Maciej Szulik <soltysh@gmail.com>

* Update test/e2e/framework/statefulset/wait.go

Co-authored-by: Maciej Szulik <soltysh@gmail.com>

* fix pollinterval

Signed-off-by: Heba Elayoty <heelayot@microsoft.com>

* update time duration style

Signed-off-by: Heba Elayoty <heelayot@microsoft.com>

---------

Signed-off-by: Heba Elayoty <heelayot@microsoft.com>
Co-authored-by: Maciej Szulik <soltysh@gmail.com>
2025-09-18 03:53:42 -07:00
Paco Xu
e3c9c277c3 fix CI failure: update pod image using the same one 2025-09-09 11:30:40 +08:00
ylink-lfs
1fd7f308fc ci: remove httpd usage while using agnhost instead 2025-09-01 20:11:18 +08:00
Yuan Wang
b34f8782e2 Add e2e tests 2025-07-24 16:49:54 +00:00
Kubernetes Prow Robot
b3d00a026d Merge pull request #132756 from ylink-lfs/ci/redis_removal
ci: redis removal for e2e test dependency simplicity
2025-07-24 09:38:42 -07:00
Kubernetes Prow Robot
f2bed63ca5 Merge pull request #131665 from carlory/fix-131645
deflake e2e tests: StatefulSet Non-retain StatefulSetPersistentVolume ClaimPolicy should delete PVCs after adopting pod (WhenScaled)
2025-07-15 08:24:23 -07:00
Kubernetes Prow Robot
47e696a8fa Merge pull request #129154 from carlory/e2e-apps
e2e apps: remove unnecessary feature labels
2025-07-08 04:41:26 -07:00
ylink-lfs
075abb07a9 ci: redis removal for e2e test dependency simplicity 2025-07-08 09:14:54 +08:00
PatrickLaabs
bc72fb81c3 chore: depr. pointer pkg replacement for test/e2e 2025-07-07 12:25:55 +02:00
carlory
fa31317000 Remove unused PodIndexLabel feature reference 2025-07-03 14:15:14 +08:00
Dejan Zele Pejchev
bccc9fe470 KEP-3939: Job Pod Replacement Policy; promote to GA
Signed-off-by: Dejan Zele Pejchev <pejcev.dejan@gmail.com>
2025-06-16 16:26:03 +02:00
carlory
871cabeedb deflake e2e tests: StatefulSet Non-retain StatefulSetPersistentVolumeClaimPolicy should delete PVCs after adopting pod (WhenScaled) 2025-05-08 11:10:12 +08:00
Yuki Iwai
e394d430c4 Promote E2E to conformance tests for JobSuccessPolicy
Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>
2025-03-17 23:22:13 +09:00
Yuki Iwai
03f0475ebd Add Complete reason verification to all e2e conformance tests
Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>
2025-03-11 06:14:55 +09:00
Michal Wozniak
d44ac38891 Promote e2e to conformance tests for JobBackoffLimitPerIndex 2025-02-26 17:06:41 +01:00
Michał Woźniak
d66928b842 Add Job e2e for tracking failure count per index (#130390)
* Add Job e2e for tracking failure count per index

* Review remarks
2025-02-25 07:10:37 -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
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
Elizabeth Martin Campos
4724870b97 test: remove implicit inclusion of "name" label in utils functions 2025-02-13 12:48:30 +01:00
Kubernetes Prow Robot
bb9e393fc3 Merge pull request #129110 from soltysh/deployment_patch_status
test: deployment patch status test should  check the modified fields
2025-01-23 14:15:27 -08:00
carlory
aaac13fc6a remove gke from e2e 2025-01-20 21:50:46 +08:00
Maciej Szulik
247555c2b7 test: deployment patch status test should check the modified fields
Signed-off-by: Maciej Szulik <soltysh@gmail.com>
2024-12-06 18:14:47 +01:00
Michal Wozniak
af772412be Job Pod Failure policy refactor e2e test to pass on Windows 2024-10-28 07:23:40 +01:00
Kubernetes Prow Robot
eb10b9b979 Merge pull request #128107 from alaypatel07/kep-4017-integration-tests
[KEP-4017]: update e2e and integration test for PodIndexLabel
2024-10-25 20:18:52 +01:00
Alay Patel
0aa065ab7e update e2e and integration test for PodIndexLabel
Signed-off-by: Alay Patel <alayp@nvidia.com>
2024-10-25 12:17:19 -04:00
Michal Wozniak
d521e44187 Rollback promotion of Job e2e test for pod failure policy using exit code 2024-10-24 10:30:56 +02:00
Michal Wozniak
be685c838e Promote the Job pod failure policy to Conformance 2024-10-22 17:00:37 +02:00
Michal Wozniak
ec983bd3fb Use Consistently in the e2e for Job 2024-10-17 09:02:39 +02:00
Michal Wozniak
70a8ceb6f0 Graduate JobManagedBy to Beta in 1.32
# Conflicts:
#	pkg/features/kube_features.go
2024-10-17 09:01:54 +02:00
Patrick Ohly
e43065d542 e2e daemon set: better polling in CheckDaemonStatus
As a quick fix for a flake, bceec5a3ff
introduced polling with wait.Poll in all callers of CheckDaemonStatus.

This commit reverts all callers to what they were before (CheckDaemonStatus +
ExpectNoError) and implements polling according to E2E best practices
(https://github.com/kubernetes/community/blob/master/contributors/devel/sig-testing/writing-good-e2e-tests.md#polling-and-timeouts):

- no logging while polling
- support for progress reporting while polling
- last but not least, produce an informative failure message in case of a
  timeout, including a dump of the daemon set as YAML
2024-10-15 10:12:28 +02:00
Antonio Ojea
bceec5a3ff e2e flake CheckDaemonStatus assert on async value
The util for checking on daemonstatus was checking once if the Status of
the daemonset was reporting that all the desired Pods are scheduled and
ready.

However, the pattern used in the e2e test for this function was not
taking into consideration that the controller needs to propagate the Pod
status to the DeamonSet status, and was asserting on the condition only
once after waiting for all the Pods to be ready.

In order to avoid more churn code, change the CheckDaemonStatus
signature to the wait.Condition type and use it in a async poll loop on
the tests.
2024-10-14 13:30:03 +00:00
Kubernetes Prow Robot
c15581b277 Merge pull request #127695 from kaisoz/wait-for-job-failfast
Fail fast when waiting for job conditions in e2e tests
2024-10-10 22:28:19 +01:00
Tomas Tormo
3b1a5bfc9c Fail fast when waiting for job conditions in e2e tests 2024-10-10 20:18:21 +00:00
Maciej Szulik
f11ddad99d e2e: add test covering cronjob-scheduled-timestamp annotation added by cronjob 2024-09-25 12:47:27 +02:00
Kubernetes Prow Robot
f2700895a4 Merge pull request #127422 from srivastav-abhishek/go-vet-fix
Go vet fixes for gotip
2024-09-20 14:37:58 +01:00
Abhishek Kr Srivastav
95860cff1c Fix Go vet errors for master golang
Co-authored-by: Rajalakshmi-Girish <rajalakshmi.girish1@ibm.com>
Co-authored-by: Abhishek Kr Srivastav <Abhishek.kr.srivastav@ibm.com>
2024-09-20 12:36:38 +05:30
Michał Woźniak
d6e5fb4a75 Make Job PodFailurePolicy e2e tests resilient to random failures to prepare them for conformance (#126169)
* Make JobPodFailurePolicy tests for ignore resilient to random failures

* Increase parallelism and evict in parallel

* Code review fixes to the job e2e tests
2024-09-17 18:00:19 +01:00
Kubernetes Prow Robot
e5bafe2bed Merge pull request #127072 from dims/switch-back-to-localhost-from-127.0.0.1
Switch back to localhost from 127.0.0.1 for daemon restart tests
2024-09-02 21:01:15 +01:00