Commit Graph

73 Commits

Author SHA1 Message Date
Ed Bartosh
6a40cc90e9 Revert "e2epod: use foreground deletion"
This reverts commit af91e76d "e2epod: use foreground deletion"
and fixes node-kubelet-conformance tests.
2020-07-21 22:40:31 +03:00
Patrick Ohly
af91e76df8 e2epod: use foreground deletion
This is useful in case that the pod owns some resources, because then
waiting for the pod ensures that those resources also were removed.

This should not matter at the moment because pods typically are not
owners of any other object, but that will change with the introduction
of generic ephemeral inline
volumes (https://github.com/kubernetes/enhancements/tree/master/keps/sig-storage/1698-generic-ephemeral-volumes).
2020-07-09 11:03:03 +02:00
Jan Safranek
62b7516b63 Add e2e test for read-only volume used by multiple pods 2020-06-08 09:38:11 +02:00
Kubernetes Prow Robot
739a61a871
Merge pull request #91221 from gnufied/tolerate-pod-not-found
Tolerate pod not found errors in storage e2e
2020-05-19 16:32:33 -07:00
Hemant Kumar
155db11b73 Do not fail test if pod is not found 2020-05-19 14:16:25 -04:00
Kubernetes Prow Robot
0d4464d014
Merge pull request #91150 from brianpursley/e2e-delete-pods
Add code to delete pods at the end of e2e tests to free up capacity
2020-05-18 13:33:48 -07:00
Davanum Srinivas
07d88617e5
Run hack/update-vendor.sh
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2020-05-16 07:54:33 -04:00
Davanum Srinivas
442a69c3bd
switch over k/k to use klog v2
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2020-05-16 07:54:27 -04:00
Brian Pursley
20642720c6 Added pod deletion utility methods and added code to delete remaining pods in some e2e tests to try to prevent exceeding node capacity 2020-05-15 21:21:37 -04:00
Antonio Ojea
aa4df0422b
improve error logging on e2e pod create function 2020-05-12 13:41:56 +02:00
Michelle Au
e132b77ae4 Add stress test to repeatedly restart Pods with PVCs in parallel
Change-Id: I499571cc86b1058d0e16d79e5e998d1dedfd9a4a
2020-04-15 18:10:35 -07:00
tanjunchen
fb078347e3 test/e2e/framework: remove direct imports to k8s.io/kubernetes/pkg 2020-03-31 09:26:07 +08:00
Kubernetes Prow Robot
52c2ff6d1a
Merge pull request #89506 from tanjunchen/remove-dependency-002
test/e2e/framework: remove direct dependency to k8s.io/kubernetes/pkg/controller
2020-03-30 17:08:54 -07:00
SataQiu
b748c702d9 e2e/framework: remove direct import to pkg/kubelet/util/format 2020-03-27 17:19:00 +08:00
tanjunchen
d7e787adce test/e2e/framework: remove direct dependency to k8s.io/kubernetes/pkg/controller 2020-03-26 23:21:22 +08:00
SataQiu
86fe8f6472 e2e/framework: remove direct imports to /pkg/client/conditions
Signed-off-by: SataQiu <1527062125@qq.com>
2020-03-20 15:13:12 +08:00
Kubernetes Prow Robot
e5c67f75a9
Merge pull request #89199 from SataQiu/staging-test-framework-20200318
e2e/framework: remove direct imports to pkg/api/v1/pod
2020-03-19 08:27:37 -07:00
Kubernetes Prow Robot
10d6efa04a
Merge pull request #89032 from tanjunchen/move-GetPodSecretUpdateTimeout
move GetPodSecretUpdateTimeout from framework/utils to test/e2e/framework/pod/
2020-03-18 22:24:01 -07:00
SataQiu
6a41f331da e2e/framework: remove direct imports to pkg/api/v1/pod 2020-03-18 11:10:06 +08:00
Kubernetes Prow Robot
9b8e247839
Merge pull request #88218 from SomtochiAma/pod-creation-methods
Refactors MakeSecPods function
2020-03-17 16:20:20 -07:00
Somtochi Onyekwere
ee41c6b1a4 Refactors MakeSecPods function 2020-03-12 07:14:08 +01:00
tanjunchen
97db7f4b99 move GetPodSecretUpdateTimeout from framework/utils to framework/pod 2020-03-11 15:48:15 +08:00
drfish
f4da086cbe Move resource methods from e2e fw to e2e resource fw 2020-03-08 15:27:49 +08:00
Mike Danese
c58e69ec79 automated refactor 2020-03-05 14:59:46 -08:00
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
d462f80d1b
Merge pull request #88065 from tanjunchen/remove-TODO20200212
test/e2e/framework/:remove TODO and use framework.SingleCallTimeout
2020-02-14 13:11:42 -08:00
Wei Huang
c83a860e9d
Fix a bug in e2epod function 2020-02-13 16:45:16 -08:00
tanjunchen
efec7e64ce remove TODO and use framework.SingleCallTimeout 2020-02-14 01:12:46 +08:00
Kubernetes Prow Robot
fb6f5d739b
Merge pull request #88070 from sshukun/remove-tautological-condition
Remove tautological condition in test/e2e/framework/pod/resource.go
2020-02-12 21:37:35 -08:00
Shukun
0421b40d79 Remove tautological condition in test/e2e/framework/pod/resource.go 2020-02-12 20:49:24 +09: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
Kubernetes Prow Robot
09b13aec37
Merge pull request #87947 from tanjunchen/remove-TODO-and-unused-code
remove TODO and unused code
2020-02-09 00:19:52 -08:00
Mike Danese
25651408ae generated: run refactor 2020-02-08 12:30:21 -05:00
tanjunchen
364c6f1173 remove TODO and unused code 2020-02-09 00:38:16 +08:00
Mike Danese
3aa59f7f30 generated: run refactor 2020-02-07 18:16:47 -08:00
Kubernetes Prow Robot
a71586fac6
Merge pull request #87598 from sureshpalemoni/master
grammar(noun to pod adjective phases) change for pods status in tests
2020-02-04 06:03:27 -08:00
Suresh Palemoni
6da3b70377 grammar change for pods status in tests
Signed-off-by: Suresh Palemoni <suresh.palemoni@gmail.com>
2020-01-30 09:34:37 +04:00
Mike Danese
968adfa993 cleanup req.Context() and ResponseWrapper 2020-01-29 08:50:45 -08:00
Mike Danese
d55d6175f8 refactor 2020-01-29 08:50:45 -08:00
Tomas Smetana
c42e815fb5 Fix multinode storage e2e tests for multizone clusters 2020-01-20 15:01:41 +01:00
tanjunchen
8b1eb7f973 remove TODO(random-liu): Move pod wait function into this file 2020-01-14 18:36:50 +08:00
Kenichi Omichi
99c2e74a23 Add debugging message to know the pod status
The log of a flake test says
"Pod did not start running: timed out waiting for the condition"
but it is hard to know what is actual status of the pod.
So this adds debugging message to know that.
2019-12-30 19:46:15 +00:00
danielqsj
fc738cbb1d unify alias of api errors under test 2019-12-26 16:40:45 +08:00
hwdef
d45107a00d test/e2e: move funcs from test/e2e/pod to other folders 2019-12-16 11:58:49 +08:00
Kubernetes Prow Robot
e86878436f
Merge pull request #84410 from jfbai/move-funcs-of-expect-to-common
move funcs of expect.go to e2e/common
2019-10-29 19:54:52 -07:00
Jianfei Bai
7401f2fe9b move funcs of expect.go to e2e/common 2019-10-27 11:54:32 +08:00
Kenichi Omichi
a0c0130670 Move CreatePodOrFail()
CreatePodOrFail() is used at e2e network tests only, so this moves
the function to the e2e network tests.
2019-10-23 21:14:10 +00:00
Kenichi Omichi
5285cf3eb2 Move LaunchHostExecPod() to e2e network
LaunchHostExecPod() is called only from e2e network.
So it is not necessary to keep the function as a part of e2e framework.
This moves it to the place which calls the function.
2019-10-18 17:29:01 +00:00