Patrick Ohly
d71829a1fc
e2e: avoid setting NodeName for CSI driver deployments
...
We don't want to set the name directly because then starting the pod
can fail when the node is temporarily out of resources
(https://github.com/kubernetes/kubernetes/issues/87855 ).
For CSI driver deployments, we have three options:
- modify the pod spec with custom code, similar
to how the NodeSelection utility code does it
- add variants of SetNodeSelection and SetNodeAffinity which
work with a pod spec instead of a pod
- change their parameter from pod to pod spec and then use
them also when patching a pod spec
The last approach is used here because it seems more general. There
might be other cases in the future where there's only a pod spec that
needs to be modified.
2020-02-26 10:33:29 +01:00
Kubernetes Prow Robot
6b6336e5c0
Merge pull request #88227 from tanjunchen/remove-todo-and-move-code
...
remove unused and repeat code and remove TODO
2020-02-25 00:52:48 -08:00
Fabio Bertinatto
cd5cf567d8
Avoid adding labels to nodes in CSI mock driver
...
It's unnecessary to add labels to nodes because we're already
using NodeSelection to schedule pods on specific nodes.
2020-02-21 14:33:56 +01:00
Kubernetes Prow Robot
937008e3ac
Merge pull request #81226 from claudiubelu/tests/reduce-to-agnhost-part-4
...
tests: Replaces images used with agnhost (part 4)
2020-02-20 01:13:03 -08:00
Kubernetes Prow Robot
5cf65077ad
Merge pull request #88016 from jsafrane/wait-for-pod-deletion
...
Delete pod in volume tests
2020-02-18 22:40:38 -08:00
Claudiu Belu
f7942290af
tests: Replaces images used with agnhost (part 4)
...
Quite a few images are only used a few times in a few tests. Thus,
the images are being centralized into the agnhost image, reducing
the number of images that have to be pulled and used.
This PR replaces the usage of the following images with agnhost:
- resource-consumer-controller
- test-webserver
2020-02-18 16:29:49 -08:00
tanjunchen
119f4df9c5
test/e2e/framework:remove unused code and move const
2020-02-17 23:31:50 +08:00
Yu-Ju Hong
bcd975aa65
Replace Beta OS/arch labels with the GA ones
...
Beta OS/arch labels have been deprecated since 1.14.
This change replaces these labels with the GA ones.
2020-02-13 09:38:51 -08:00
Jan Safranek
528adbefe4
Remove client cleanup from TestCleanup
...
All tests remove the test client pod, usually in TestVolumeClient.
Rename TestCleanup to TestServerCleanup.
In addition, remove few calls to Test(Server)Cleanup that do not do anything
useful (server pod is not used in these tests).
2020-02-13 09:55:53 +01:00
Kubernetes Prow Robot
4ab8c5393f
Merge pull request #88059 from msau42/refactor-e2e-node-selection
...
Refactor e2e node selection
2020-02-12 17:54:58 -08:00
Kubernetes Prow Robot
6c074f819c
Merge pull request #88003 from misterikkit/vsphere-tags
...
Add missing tag to vSphere storage E2E tests
2020-02-11 23:15:44 -08:00
Michelle Au
d9184b75c9
Convert volume.TestConfig to use NodeSelection
...
Change-Id: I6adbb53b65e4a4f7e220fc0d91a26dc6bc135c36
2020-02-11 21:13:42 -08:00
Michelle Au
76a4a34dae
Pass NodeSelection directly into e2e testsuites so that tests can use them more consistently
...
Change-Id: I99c8c1d8535a2a2319fbe8216b953c14a56f2763
2020-02-11 20:25:24 -08:00
Michelle Au
fb9f02b5e1
Don't set NodeName directly in Pods so that it still goes through the scheduler
...
Change-Id: I244b6aac0289a13339f3ac228c4ad9ecf8c07b42
2020-02-11 19:17:41 -08:00
Kubernetes Prow Robot
dc8208dddc
Merge pull request #87871 from msau42/fix-hostexec
...
Use NodeSelector instead of NodeName in hostexec Pod
2020-02-10 20:44:01 -08:00
Michelle Au
1ee35e788e
Use NodeSelector instead of NodeName in hostexec Pod so that the Pod runs through the scheduler
...
Change-Id: Ia2f7ad39af318bbe707b43dfea706293ecdf5203
2020-02-10 15:36:04 -08:00
Jonathan Basseri
09121d9686
Add missing tag to vSphere storage E2E tests
...
This adds the [Feature:vsphere] tag to those vSphere tests which were
missing it. This makes it easier to specifically target the vSphere
storage E2E test suite.
2020-02-10 14:48:55 -08:00
Kubernetes Prow Robot
c5d75749c8
Merge pull request #85029 from serathius/remove-prometheus-test-e2e
...
Remove references to prometheus is test/e2e
2020-02-09 01:27:52 -08:00
Mike Danese
25651408ae
generated: run refactor
2020-02-08 12:30:21 -05:00
Kubernetes Prow Robot
334d788f08
Merge pull request #87299 from mikedanese/ctx
...
context in client-go
2020-02-08 06:43:52 -08:00
Kubernetes Prow Robot
0f13c5c3d1
Merge pull request #87930 from oomichi/issue/87679-1
...
Fix non-ascii characters in test/e2e/storage
2020-02-07 18:33:42 -08:00
Mike Danese
3aa59f7f30
generated: run refactor
2020-02-07 18:16:47 -08:00
Kenichi Omichi
63a15da505
Fix non-ascii characters in test/e2e/storage
...
These characters are changed unintentionally if other parts of these
files are changed. It is better to fix them to avoid that.
2020-02-07 19:34:48 +00:00
John Belamaric
ba38816d42
LogResult if there is an error
2020-02-07 09:36:02 -08:00
Kubernetes Prow Robot
641321c94c
Merge pull request #87358 from tanjunchen/use-e2eskipper-final
...
test/e2e/framework: remove skip.go and use e2eskipper subpackage
2020-02-05 19:47:33 -08:00
Marek Siarkowicz
30989b648d
Remove references to prometheus is test/e2e
2020-02-05 15:54:36 +01:00
Michelle Au
0c40daddb0
Add an option to external storage e2es to use a copy of a pre-installed StorageClass
...
Change-Id: I9d7f0384d0071caa41a8d98eea4afa5b17ad0ea3
2020-02-03 17:45:17 -08:00
Kubernetes Prow Robot
2514c4b130
Merge pull request #87705 from misterikkit/whitespace
...
Fix comment whitespace
2020-01-31 20:08:05 -08:00
tanjunchen
7ff3a1f8db
test/e2e/framework: remove skip.go and use e2eskipper subpackage
2020-02-01 01:18:48 +08:00
Jonathan Basseri
b6ba39d013
Fix comment whitespace
...
This test has a text diagram which used tab characters. By switching to
spaces, the diagram looks correct regardless of IDE settings.
2020-01-30 14:26:39 -08:00
Mike Danese
d55d6175f8
refactor
2020-01-29 08:50:45 -08:00
Kubernetes Prow Robot
089d3e63e5
Merge pull request #86910 from RaunakShah/golint_vspherestorage
...
Fix golint errors in test/e2e/storage/vsphere
2020-01-25 07:41:01 -08:00
Tomas Smetana
c42e815fb5
Fix multinode storage e2e tests for multizone clusters
2020-01-20 15:01:41 +01:00
shahra
18f05ef5b9
Fix golint errors in test/e2e/storage/vsphere
2020-01-16 11:12:31 -08:00
Kubernetes Prow Robot
14ed35712c
Merge pull request #87168 from misterikkit/timout-err
...
storage e2e: Add context to timeout errors
2020-01-15 01:22:32 -08:00
Kubernetes Prow Robot
e053c4733d
Merge pull request #86886 from jingxu97/Jan/utilsNil
...
Fix err variable shadowing issue in storage/utils
2020-01-15 01:21:46 -08:00
Kubernetes Prow Robot
d4fbb3fe03
Merge pull request #82027 from huffmanca/enable_vsphere_e2e_config
...
Enabled reading config files for vsphere e2e tests.
2020-01-14 17:20:35 -08:00
Jonathan Basseri
99a015705b
storage e2e: Add context to timeout errors
...
Many times an e2e test fails with an unexpected error,
"timed out waiting for the condition".
Useful information may be in the test logs, but debugging e2e test
failures will be much faster if we add context to errors when they
happen.
This change makes sure we add context to all errors returned from
helpers like wait.Poll().
2020-01-14 11:45:38 -08:00
yuxiaobo
73fb0ab5ec
test/e2e/storage:Use e2eskipper package
...
Signed-off-by: yuxiaobo <yuxiaobogo@163.com >
2020-01-13 14:04:10 +08:00
Kubernetes Prow Robot
af202d207f
Merge pull request #86891 from gnufied/move-publish-unpublish-check
...
Move publish and unpublish counting up in test
2020-01-08 14:45:53 -08:00
Christian Huffman
3db91b2bdc
Enabled reading config files for vsphere e2e tests
2020-01-08 09:00:40 -05:00
Kubernetes Prow Robot
110da204f6
Merge pull request #85190 from danielqsj/f-event
...
refactor events utils in e2e
2020-01-07 22:35:40 -08:00
Hemant Kumar
fca9963c24
Move publish and unpublish counting up in test
...
So as publish and unpublish are counted always
2020-01-06 16:50:55 -05:00
Jing Xu
51d5303662
Fix err variable shadowing issue in storage/utils
...
Issue: https://github.com/kubernetes/kubernetes/issues/86884
This PR fixes the issue that err variable gets shadowed. Because of
this, it might get nil pointer error.
Change-Id: Ib7da918418a7c8148a6ca598db12b3744eb3b7c8
2020-01-06 12:15:29 -08:00
clarklee92
7171f9a7f4
move funs of framework/volume to e2e/storage
...
Signed-off-by: clarklee92 <clarklee1992@hotmail.com >
2019-12-31 18:43:08 +08:00
Kubernetes Prow Robot
bcff8bf3aa
Merge pull request #86283 from haosdent/clean-e2e-framework-pv
...
e2e: move funs of framework/pv to e2e/storage
2019-12-26 21:17:39 -08:00
danielqsj
6596a14d39
add missing alias of api errors under test
2019-12-26 17:29:38 +08:00
danielqsj
fc738cbb1d
unify alias of api errors under test
2019-12-26 16:40:45 +08:00
Haosdent Huang
dbc9929012
e2e: move funs of framework/pv to e2e/storage
2019-12-25 20:39:09 +08:00
Kubernetes Prow Robot
449fe0b1ba
Merge pull request #86397 from gnufied/fix-comparison-of-node-publish-unpublish
...
Expect NodeUnpublish calls when NodePublish is called
2019-12-20 09:09:32 -08:00