Commit Graph

371 Commits

Author SHA1 Message Date
hasheddan
a527c10edc
Make sure pod tested for eviction with PDB is not scheduled for deletion
In #91342 attempting to evict a Pod with a DeletionTimestamp caused
checking of PDBs to be ignored due to the fact that a Pod scheduled for
deletion should not be factored into a disruption budget. However, PDB
eviction tests currently will sometimes select a Pod already scheduled
for deletion, expecting that attempting to evict it will conflict with
the PDB. This updates those tests to make sure a Pod with deletion
timestamp is not selected for eviction when it is intended to violate a
PDB.

Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
2020-07-11 11:25:19 -05:00
Ciprian Hacman
9a23ee02b3 Use Pause image for DisruptionController tests 2020-07-08 06:40:41 +03:00
wawa0210
9d1948a2f5
fix test/e2e/apps staticcheck 2020-07-02 18:14:12 +08:00
Kubernetes Prow Robot
cf36d9b8e9
Merge pull request #90880 from ii/ii-update-and-improve-replicationcontroller-resource-lifecycle-test
Update and improve ReplicationController resource lifecycle test
2020-06-17 19:50:05 -07:00
Caleb Woodbine
e3b9d78915 Fix formatting 2020-06-11 14:07:27 +12:00
Caleb Woodbine
076d96236e Add cleanup function 2020-06-11 14:07:27 +12:00
Caleb Woodbine
782bb43c4c Fix formatting 2020-06-11 14:07:27 +12:00
Caleb Woodbine
209c05546a Update to include watch tooling 2020-06-11 14:07:27 +12:00
Caleb Woodbine
d7d9ebf482 Add checks to each watch loops 2020-06-11 14:07:27 +12:00
Caleb Woodbine
1c010beb24 Revert scale patch payload types 2020-06-11 14:07:27 +12:00
Caleb Woodbine
29c85b7265 Update BUILD 2020-06-11 14:07:27 +12:00
Caleb Woodbine
54c744f033 Update patch checks, scale patch type 2020-06-11 14:07:27 +12:00
Caleb Woodbine
a962d80b99 Update and improve ReplicationController resource lifecycle test 2020-06-11 14:07:27 +12:00
Kubernetes Prow Robot
74bdc2b6a9
Merge pull request #90321 from k-toyoda-pi/add_error_check_e2e_disruption
Add checking error for disruption e2e test
2020-06-04 07:05:14 -07:00
Jordan Liggitt
c9638d54d0 Defer ginkgo recovers 2020-06-01 11:02:41 -04:00
Kubernetes Prow Robot
9fce6b7147
Merge pull request #89023 from k-toyoda-pi/e2e_pdb_remove_unnecessary_error
Remove unnecessary return value in e2e/apps/disruption
2020-05-12 08:24:36 -07:00
Kubernetes Prow Robot
437c2df36f
Merge pull request #90855 from wojtek-t/remove_listwatchuntil
Remove ListWatchUntil
2020-05-11 15:22:35 -07:00
wojtekt
ead12b02fe Remove ListWatchUntil 2020-05-11 16:34:18 +02:00
wojtekt
238dde4bdb Fix statefulset test flakiness 2020-05-08 17:23:03 +02:00
Tomas Nozicka
df8994c202 Fix watches in e2e framework 2020-04-23 17:17:26 +02:00
Tomas Nozicka
2256991c93 Fix watches in StatefulSet e2e tests 2020-04-23 16:08:32 +02:00
Caleb Woodbine
39e5122153 Update ReplicationController resource lifecycle test to be marked as flaky 2020-04-22 15:07:10 +12:00
toyoda
47e4f51da2 Add checking error for disruption e2e test 2020-04-21 09:52:49 +09:00
toyoda
64fee7d58b Remove unnecessary return value in e2e/apps/disruption 2020-04-13 15:04:00 +09:00
Abdullah Gharaibeh
bed9b2f23b Cleanup obsolete NodeInfo methods 2020-04-12 18:13:46 -04:00
Kubernetes Prow Robot
ee6b88ddf9
Merge pull request #90000 from SataQiu/staging-scheduler-20200409
scheduler: remove direct import to pkg/master/ports
2020-04-11 10:46:01 -07:00
SataQiu
41d3e44a2f scheduler: remove direct import to pkg/master/ports
Signed-off-by: SataQiu <1527062125@qq.com>
2020-04-11 13:56:53 +08:00
Kubernetes Prow Robot
1c01efe10f
Merge pull request #89945 from k-toyoda-pi/add_error_check_e2e_disruption
Add error check for marshaling json in e2e/apps/disruption
2020-04-10 12:26:01 -07:00
toyoda
effd064ef7 Add error check for marshaling json 2020-04-08 15:26:10 +09:00
Abdullah Gharaibeh
a5d8172715 move nodeinfo type to framework pkg 2020-04-07 10:25:24 -04:00
Abdullah Gharaibeh
ed3fe054df move scheduler nodeinfo to pkg/scheduler/types 2020-03-31 21:02:09 -04:00
Kubernetes Prow Robot
7b1a531976
Merge pull request #88588 from ii/create-replication-controller-lifecycle-test
Create ReplicationController lifecycle test - +7 endpoint coverage
2020-03-31 08:04:41 -07:00
drfish
dfab6b637f Update .import-aliases for e2e test framework 2020-03-25 11:40:02 +08:00
Caleb Woodbine
9aa3c23ad3 Update DynamicClient fetch of Pod statement 2020-03-25 15:10:28 +13:00
Caleb Woodbine
dacd32887f Update DeleteOptions 2020-03-25 11:24:14 +13:00
Caleb Woodbine
772eacadc1 Update naming of watchEvents 2020-03-25 10:50:03 +13:00
Kenichi Omichi
62f3223dec Move BlockNetwork() to e2enetwork
for removing invalid dependency from e2e core framework to e2essh
subpackage and reducing test/e2e/framework/util.go code which is
one of huge files today.
2020-03-24 13:43:51 +00:00
Kubernetes Prow Robot
a26f50a52e
Merge pull request #86679 from oomichi/remove-invalid-dependency-27
Use e2epod.WaitForPodNameRunningInNamespace directly
2020-03-20 15:58:44 -07:00
Kubernetes Prow Robot
a480f07b99
Merge pull request #88798 from k-toyoda-pi/update_e2e_for_pdb
Improve waitForPDBCollectionToBeDeleted in e2e test
2020-03-19 17:44:36 -07:00
Kubernetes Prow Robot
b88ea8d2bb
Merge pull request #88930 from oomichi/Failf
Replace ExpectNoError(fmt.Errorf(..)) with funcs
2020-03-17 19:28:20 -07:00
Kenichi Omichi
2c8955fd4a Use e2epod.WaitForPodNameRunningInNamespace directly
WaitForPod*() are just wrapper functions for e2epod package, and they
made an invalid dependency to sub e2e framework from the core framework.
So this replaces WaitForPodRunning() with the e2epod function.
2020-03-17 00:13:14 +00:00
drfish
f4da086cbe Move resource methods from e2e fw to e2e resource fw 2020-03-08 15:27:49 +08:00
Kenichi Omichi
75ca65806d Replace ExpectNoError(fmt.Errorf(..)) with funcs
There were framework.ExpectNoError(fmt.Errorf(..)) calls which just
raise an exception without actual value checks, they just raised the
specified error messages. These usages of framework.ExpectNoError()
seemed a little tricky, so this replaces them with corresponding check
functions for the readability.
2020-03-06 22:00:10 +00:00
Jordan Liggitt
d8abacba40 client-go: update expansions callers 2020-03-06 16:50:41 -05:00
Jordan Liggitt
b7c2faf26c client-go dynamic client: add context to callers 2020-03-06 10:56:23 -05:00
Mike Danese
76f8594378 more artisanal fixes
Most of these could have been refactored automatically but it wouldn't
have been uglier. The unsophisticated tooling left lots of unnecessary
struct -> pointer -> struct transitions.
2020-03-05 14:59:47 -08:00
Mike Danese
aaf855c1e6 deref all calls to metav1.NewDeleteOptions that are passed to clients.
This is gross but because NewDeleteOptions is used by various parts of
storage that still pass around pointers, the return type can't be
changed without significant refactoring within the apiserver. I think
this would be good to cleanup, but I want to minimize apiserver side
changes as much as possible in the client signature refactor.
2020-03-05 14:59:46 -08:00
Mike Danese
c58e69ec79 automated refactor 2020-03-05 14:59:46 -08:00
Caleb Woodbine
957ab9afaf Adjust RC watch timeout to 180, update progress log statement 2020-03-05 09:55:38 +13:00
toyoda
bf58facaef Update waitForPDBCollectionToBeDeleted in e2e test 2020-03-04 17:31:50 +09:00