Commit Graph

16045 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
94fa017ee2
Merge pull request #86831 from tanjunchen/remove-unused-code-use-framework
remove unused code and use framework
2020-01-05 03:25:40 -08:00
Kubernetes Prow Robot
2d56d75061
Merge pull request #86730 from ahg-g/ahg1-ds
Break DS controller dependency on scheduler predicates and predicate errors
2020-01-04 14:39:40 -08:00
tanjunchen
c2d41fda6c remove unused code and use framework 2020-01-04 22:24:04 +08:00
Antonio Ojea
0b064f34ae fix flakes on e2e test TCP CLOSE_WAIT timeout
it turns out that the e2e test was no using the timeout used to
hold the CLOSE_WAIT status, hence the test was flake depending
on how fast it checked the conntrack table.

This PR replaces the dependency on ssh using a pod to check the conntrack
entries on the host in a loop, to make the test more robust
and reduce the flakiness due to race conditions and/or ssh issues.

It also fixes a bug trying to grep the conntrack entry, where
the error was swallowed if a conntrack entry wasn't found..
2020-01-04 10:09:25 +01:00
Abdullah Gharaibeh
041e5b5560 addressed comments 2020-01-04 01:14:24 -05:00
Kubernetes Prow Robot
6be12b8235
Merge pull request #86796 from tanjunchen/remove-unused-code-test/e2e/framework/google_compute.go
remove unused code test/e2e/framework/google_compute.go
2020-01-03 21:41:40 -08:00
Abdullah Gharaibeh
d31dcecd20 cleanup unused scheduler functions/files 2020-01-03 19:09:14 -05:00
Abdullah Gharaibeh
7d604c318c Break DS controller on scheduler predicates and predicate errors 2020-01-03 13:05:07 -05:00
Krzysztof Siedlecki
2d95520a3f adding private cluster check 2020-01-03 17:28:39 +01:00
tanjunchen
2371c58a73 remove unused code test/e2e/framework/google_compute.go 2020-01-03 19:04:28 +08:00
SataQiu
17b0b77026 fix staticcheck failures of test/integration/client test/integration/disruption 2020-01-03 17:23:35 +08:00
Kubernetes Prow Robot
b3c4c90a72
Merge pull request #86673 from ahg-g/ahg1-provider
Define algorithm providers in terms of plugins
2020-01-02 22:25:53 -08:00
Kubernetes Prow Robot
ebdde7c9f8
Merge pull request #86768 from tanjunchen/logger-use-framework
if no cycle dependency , use framework in test/e2e_node/
2020-01-02 19:16:15 -08:00
Kubernetes Prow Robot
cc5144ff13
Merge pull request #86160 from notpad/feautre/scheduler_perf
Define workloads specs by YAML
2020-01-02 19:15:41 -08:00
Abdullah Gharaibeh
b535ed3b0c Merge scheduler's ConfigProducerRegistry into LegacyRegistry 2020-01-02 16:40:33 -05:00
tanjunchen
9324664330 remove TODO in test/e2e/framework/node/resource.go 2020-01-02 21:55:58 +08:00
tanjunchen
fc3b210ad8 if no cycle dependency , use framework in test/e2e_node subpackage 2020-01-02 15:52:05 +08:00
tanjunchen
2f0e5b262a move functions from e2e/framework/deployment/ to e2e/apps/ and e2e/upgrades 2020-01-02 13:01:09 +08:00
Kubernetes Prow Robot
2099c00290
Merge pull request #86745 from Aresforchina/fix-staticcheck-test01
Fix staticcheck failures of test/integration/replicationcontroller
2019-12-31 20:31:39 -08:00
Kubernetes Prow Robot
6b5cf90ecd
Merge pull request #86598 from zhlhahaha/e2e_kubeadm_1410_2
Remove todos for verification of “allowed to post CSR” and "allowed to auto approve CSR" for bootstraptoken group
2019-12-31 15:43:39 -08:00
Kubernetes Prow Robot
63411a137f
Merge pull request #86732 from oomichi/move-WaitForFailure
Move WaitForFailure() to the test
2019-12-31 05:15:39 -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
Aresforchina
bf47d14c27 Fix staticcheck failures of test/integration/replicationcontroller 2019-12-31 17:16:01 +08:00
Kubernetes Prow Robot
55b692fa48
Merge pull request #86661 from yuxiaobo96/e2e-cleanup-replicaset
e2e:remove func of framework/replicaset to e2e/upgrades/apps/replicas…
2019-12-31 01:00:04 -08:00
Kubernetes Prow Robot
b765dd9e81
Merge pull request #86657 from yuxiaobo96/e2e-cleanup-autoscaling
e2e:remove unused func in /test/e2e/framework/autoscaling/autoscaling…
2019-12-31 00:59:51 -08:00
clarklee92
4d43e9e39b e2e: move funs of framework/viperconfig to e2e
Signed-off-by: clarklee92 <clarklee1992@hotmail.com>
2019-12-31 16:42:30 +08:00
Kubernetes Prow Robot
36db62cd73
Merge pull request #86737 from oomichi/add-test-title-in-TestPreemption
Output test description in TestPreemption
2019-12-30 23:15:39 -08:00
Kubernetes Prow Robot
822a2de262
Merge pull request #86731 from oomichi/use-DeleteSync
Remove Delete/CreateSyncInNamespace()
2019-12-30 20:39:46 -08:00
Kubernetes Prow Robot
d0c719dbd9
Merge pull request #86716 from SataQiu/staticcheck-20191230
Fix staticcheck failures of test/integration/scale test/integration/serviceaccount test/integration/serving test/integration/volume
2019-12-30 20:39:39 -08:00
tanjunchen
587dbc2fed remove TODO in test/e2e/framework/auth/helpers 2019-12-31 11:20:31 +08:00
Kubernetes Prow Robot
adf056230a
Merge pull request #86733 from oomichi/add-debugging-msg
Add debugging message to know the pod status
2019-12-30 18:53:39 -08:00
Howard Zhang
006980c160 Remove Todos for CSR checking
Remove Todos for verification of “allowed to
post CSR” and "allowed to auto approve CSR"
for bootstraptoken group, as these privilege
bindings are not managed by kubeadm source
code

Signed-off-by: Howard Zhang <howard.zhang@arm.com>
2019-12-31 09:49:00 +08:00
Kenichi Omichi
00abe6d505 Output test description in TestPreemption
Now we are facing flake test of TestPreemption due to less available
node. TestPreemption consists of multiple test cases and the resource
is shared in them.
At this time, we cannot see what test cases run before the flake
happens. So it is better to know that to distinguish the cleanup of
pods is not completed or not.
2019-12-31 00:14:03 +00:00
Kenichi Omichi
43d9748d3a Add error handling for Register() call
Register() can return an error as [1], so this adds the error handling.

[1]: f772c9017c/pkg/scheduler/framework/v1alpha1/registry.go (L56)
2019-12-30 23:35:26 +00:00
Kenichi Omichi
253a85db16 Move WaitForFailure() to the test
WaitForFailure() is used at a single e2e test.
So this moves the function to the specific test file for the cleanup.
2019-12-30 23:16:24 +00: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
Kenichi Omichi
52ddae0267 Remove Delete/CreateSyncInNamespace()
DeleteSyncInNamespace() was used at an e2e node test and DeleteSync()
only. In addition, the part of the e2e node test can be replaced with
DeleteSync(). CreateSyncInNamespace() is the same thing and can be
replaced with CreateSync(). So this replaces these functions and
removes them for the cleanup.
2019-12-30 18:59:42 +00:00
ialidzhikov
f438def93d Update to golang@1.13.5
Signed-off-by: ialidzhikov <i.alidjikov@gmail.com>
2019-12-30 13:17:17 +02:00
Kubernetes Prow Robot
9b59ba4ef8
Merge pull request #81895 from praseodym/fix-staticcheck-test/images
Fix staticcheck failures for test/images
2019-12-30 00:09:39 -08:00
Kubernetes Prow Robot
1e7c07ac4e
Merge pull request #86655 from k-toyoda-pi/add_alias_apierrors_endpointslice
Add alias of api/errors in endpointslice.go
2019-12-29 21:59:39 -08:00
SataQiu
8c77b96b75 fix staticcheck failures of test/integration/scale test/integration/serviceaccount test/integration/serving test/integration/volume 2019-12-30 13:35:13 +08:00
Kubernetes Prow Robot
a097243cba
Merge pull request #86062 from haosdent/clean-e2e-framework-gpu
e2e: move funs of framework/gpu to e2e_node
2019-12-28 21:23:39 -08:00
Kubernetes Prow Robot
481db52294
Merge pull request #86634 from tanjunchen/remove-unused-code-test-e2e-apps-deployment
remove unused code in test/e2e/apps/deployment
2019-12-28 10:29:39 -08:00
Claudiu Belu
72d66be439 test images: Adds E2E test image automated build
In order for the E2E test images to be automatically built and published
to the staging registry (from which they will be promoted to the regular
E2E test registry), the cloudbuild.yaml file has been added.

The file was added in conformance with [1].

Adds the ability to build all test images:

make -C test/images WHAT=all-images

[1] https://github.com/kubernetes/test-infra/blob/master/config/jobs/image-pushing/README.md
2019-12-28 09:15:03 -08:00
Kubernetes Prow Robot
de3be348a6
Merge pull request #86640 from tanjunchen/move-code-test/e2e/framework/job
move funcs from test/e2e/framework/job to test/e2e/apps
2019-12-27 19:47:51 -08:00
yuxiaobo
572c81ff53 e2e:remove func of framework/replicaset to e2e/upgrades/apps/replicasets.go
Signed-off-by: yuxiaobo <yuxiaobogo@163.com>
2019-12-27 16:37:57 +08:00
YuikoTakada
78c0517691 fix link in readme 2019-12-27 07:32:37 +00:00
yuxiaobo
161c6f4886 e2e:remove unused func in /test/e2e/framework/autoscaling/autoscaling_utils.go
Signed-off-by: yuxiaobo <yuxiaobogo@163.com>
2019-12-27 14:38:05 +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
tanjunchen
f19ed6ccfe remove unused code in test/e2e/apps/deployment 2019-12-27 12:57:00 +08:00
toyoda
dbe7c920e0 Add alias of api/errors in endpointslice.go 2019-12-27 13:56:25 +09:00
tanjunchen
488b94767c remove TODO: Use return type string instead of []string and update func 2019-12-27 11:53:17 +08:00
Kubernetes Prow Robot
305377a2f5
Merge pull request #86541 from tanjunchen/move-replicaset-to-autoscaling_utils
move funcs in replicaset to autoscaling_utils
2019-12-26 18:00:01 -08:00
Kubernetes Prow Robot
4158e7c1de
Merge pull request #85123 from danielqsj/apierrs
Unify aliases for "k8s.io/apimachinery/pkg/api/errors"
2019-12-26 17:59:38 -08:00
tanjunchen
794a8668fa move funcs from test/e2e/framework/job to test/e2e/apps 2019-12-27 09:35:30 +08:00
Kubernetes Prow Robot
13133857af
Merge pull request #86639 from tanjunchen/move-func-2019-12-26
move func EnableAndDisableInternalLB from test/e2e/framework/service …
2019-12-26 16:43:50 -08:00
Kubernetes Prow Robot
04d71d8a7b
Merge pull request #86614 from ahg-g/ahg1-default2
Deprecate scheduler predicate and priority factory registration and associated types
2019-12-26 05:21:38 -08:00
Kubernetes Prow Robot
132d9e2f4f
Merge pull request #86570 from YuikoTakada/remove_NewMetricExporter
Remove unused function NewMetricExporter from e2e test
2019-12-26 03:57:38 -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
tanjunchen
2af5967310 move func EnableAndDisableInternalLB from test/e2e/framework/service to test/e2e/network 2019-12-26 16:30:06 +08:00
Kubernetes Prow Robot
2914ba8e04
Merge pull request #86573 from zhlhahaha/e2e_kubeadm_1410
add extra group and usage check for bootstraptoken
2019-12-25 21:49:38 -08:00
YuikoTakada
c467a733c3 Remove unused function NewMetricExporter from e2e test 2019-12-26 01:49:26 +00:00
Abdullah Gharaibeh
2b3df3587e Deprecate scheduler predicate and priority factory registration 2019-12-25 20:33:08 -05:00
Haosdent Huang
dbc9929012 e2e: move funs of framework/pv to e2e/storage 2019-12-25 20:39:09 +08:00
Kubernetes Prow Robot
4933d0f1d8
Merge pull request #86466 from yuxiaobo96/e2e-cleanup-deployment
e2e: move funs of framework/deployment/fixtures.go to e2e/apps/deploy…
2019-12-25 01:21:30 -08:00
Kubernetes Prow Robot
02a0d8073d
Merge pull request #86568 from YuikoTakada/remove_NewStaticResourceConsumer
Delete unused function from e2e test autoscaling_utils.go
2019-12-25 00:01:30 -08:00
Howard Zhang
299a9c8cf5 add extra group and usage check for bootstraptoken
kubeadm creates the bootstrap token with extra group
, system:bootstrappers:kubeadm:default-node-token,
should be able to be used for authentication and
signing.

Signed-off-by: Howard Zhang <howard.zhang@arm.com>
2019-12-25 10:23:11 +08:00
Abdullah Gharaibeh
fe7de96ebe cleanup scheduler's in-tree plugins registry naming 2019-12-24 15:56:36 -05:00
SataQiu
21c916c3d2 move Taint and toleration predicate to its Score plugin 2019-12-24 19:22:12 +08:00
yuxiaobo
4123973726 e2e: move funs of framework/deployment/fixtures.go to e2e/apps/deployment.go
Signed-off-by: yuxiaobo <yuxiaobogo@163.com>
2019-12-24 16:23:42 +08:00
tanjunchen
b086d296de move funcs in replicaset to autoscaling_utils 2019-12-24 10:32:15 +08:00
YuikoTakada
11382a3129 Delete unused function from e2e test autoscaling_utils.go 2019-12-24 01:04:01 +00:00
Kubernetes Prow Robot
82c7c86998
Merge pull request #86169 from clarklee92/move-e2e/framework/statefulset
e2e: move funs of framework/statefulset to e2e/apps & e2e/upgrades
2019-12-22 19:57:32 -08:00
Kubernetes Prow Robot
a81bc56dd7
Merge pull request #86321 from liggitt/unconditional-scale-update
Make e2e scale updates unconditional
2019-12-21 05:43:32 -08:00
Kubernetes Prow Robot
9e6d099b3c
Merge pull request #86389 from alvaroaleman/sample-apiserver-localhost
Sample apiserver: Avoid etcd listening on DNS result for "localhost"
2019-12-21 02:59:33 -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
Kubernetes Prow Robot
9fa1e00be9
Merge pull request #83437 from matthyx/startupprobe-beta
Promote StartupProbe to beta for 1.18
2019-12-20 00:59:32 -08:00
Jordan Liggitt
2d2c9a884a Revert "Merge pull request #86376 from xieyanker/kubemark_deployment"
This reverts commit 661a08daf6, reversing
changes made to 8cd8784289.
2019-12-19 23:11:31 -05:00
Kubernetes Prow Robot
641d0290e4
Merge pull request #86399 from ahg-g/ahg1-prioritymeta
InterPodAffinity Priority as Score plugin
2019-12-19 13:39:56 -08:00
Kubernetes Prow Robot
37a5201cf0
Merge pull request #86109 from haosdent/clean-e2e-framework-job
e2e: move funs of framework/job to e2e/upgrades/apps/job
2019-12-19 12:40:42 -08:00
Kubernetes Prow Robot
4c6bed6e4e
Merge pull request #84480 from BrendanSChang/fuzz
Fix validation for metav1 fuzz targets.
2019-12-19 12:40:10 -08:00
Hemant Kumar
d1fb0b57df Expect NodeUnpublish calls when NodePublish is called
While this is looser check than original check, I do not think
we can quite expect NodePublish and NodeUnpublish call counts to match

NodePublishvolume call count may not be same as NodeUnpublishVolume
call count because reconciler may have a mount operation queued up
while previous one is finishing. So, it is not unusual to have more than one
NodePublishVolume call for same pod+volume combination, similarly
unmount may also run more than once.
2019-12-19 14:28:27 -05:00
Abdullah Gharaibeh
119a9a94d1 InterPodAffinity Priority as Score plugin 2019-12-19 13:42:49 -05:00
Kubernetes Prow Robot
810f0c2ae5
Merge pull request #86354 from p0lyn0mial/improve-watch-and-report-e2e
improves watch and report e2e
2019-12-19 10:11:57 -08:00
Kevin Klues
c60802e893 Add klueska as an approver in test/e2e_node/OWNERS 2019-12-19 15:37:03 +01:00
Kubernetes Prow Robot
16c2ae4607
Merge pull request #86411 from liggitt/plugin-test
Isolate kubectl test-cmd plugin tests
2019-12-19 05:52:09 -08:00
Kubernetes Prow Robot
4e35750abc
Merge pull request #86156 from tanjunchen/use-framework-Equal-test-e2e_node
test/e2e_node/:use framework.Equal() instead of using gomega.Expect(b…
2019-12-19 02:39:56 -08:00
Alvaro Aleman
096bdb7121 Sample apiserver: Avoid etcd listening on DNS result for "localhost"
We've had a fun case of `Sample API Server using the current
Aggregator` failing due to DNS returning a response for localhost that
is not 127.0.0.1 and does not exist on the node, causing etcd trying to
bind to a non-existing address and consequently failing. Trying to spare
others this fun :)
2019-12-19 10:41:49 +01:00
Kubernetes Prow Robot
6c98d5515b
Merge pull request #86396 from gnufied/fix-mock-driver-resizing-condition
Wait for resizing condition
2019-12-19 00:38:38 -08:00
Kubernetes Prow Robot
6eb4e7c443
Merge pull request #86315 from liggitt/delete-grace-period-debug
Add debugging for delete grace period e2e flake
2019-12-19 00:38:10 -08:00
Kubernetes Prow Robot
2f39e7304d
Merge pull request #86119 from haosdent/clean-e2e-framework-metrics
e2e: move funs of framework/metrics to e2e_node
2019-12-19 00:37:56 -08:00
Jordan Liggitt
f50638f439 Isolate kubectl test-cmd plugin tests 2019-12-19 01:35:36 -05:00
Kubernetes Prow Robot
661a08daf6
Merge pull request #86376 from xieyanker/kubemark_deployment
change kubemark from ReplicationController to Deployment
2019-12-18 21:49:56 -08:00
sewon.oh
745248dd6f
Fix cpu manager e2e test typo
Signed-off-by: sewon.oh <sewon.oh@samsung.com>
2019-12-19 13:41:05 +09:00
notpad
6511b603c9 Define workloads specs by YAML 2019-12-19 09:08:11 +08:00
Hemant Kumar
03df6320e5 Wait for resizing condition 2019-12-18 17:50:29 -05:00
Aaron Crickenberger
877381550d Revert "promote e2e tests for taint-tolerations in predicates"
This reverts commit 4d3d364d2b.

This commit promoted a test to conformance and also changed the test at
the same time. It should have been split up into two PRs to verify
whether the change had the intended effect. The test is now failing
consistently, so reverting.
2019-12-18 10:01:00 -05:00
xieyanker
48944b94da change kubemark from ReplicationController to Deployment 2019-12-18 15:46:41 +08:00
Kubernetes Prow Robot
127c47caf4
Merge pull request #85512 from serathius/remove-cluster-monitoring
Remove cluster-monitoring
2019-12-17 21:05:57 -08:00
Kubernetes Prow Robot
fc1824fadd
Merge pull request #86348 from soltysh/issue86179
Split cronjob tests, so they don't interfere
2019-12-17 19:48:21 -08:00
Kubernetes Prow Robot
eaa68dd247
Merge pull request #86316 from pierewoj/master
Use private master IP in GCE kubemark tests
2019-12-17 19:47:57 -08:00
Kubernetes Prow Robot
e5f0648c6b
Merge pull request #86284 from ahg-g/ahg1-prefilter2
Register nodeports and noderesources prefilters
2019-12-17 12:01:10 -08:00
Kubernetes Prow Robot
7fdefe5002
Merge pull request #84735 from liggitt/wardle-example-e2e
wardle example e2e
2019-12-17 12:00:28 -08:00
Kubernetes Prow Robot
a1fc96f41e
Merge pull request #84462 from klueska/upstream-cpu-manager-update-state-semantics
Update CPUManager stored state semantics
2019-12-17 12:00:12 -08:00
Kubernetes Prow Robot
0b830f3d68
Merge pull request #83652 from Jefftree/taint-tolerations
promote e2e tests for taint-tolerations in predicates
2019-12-17 09:47:39 -08:00
Maciej Szulik
667aaf33a6
Split cronjob tests, so they don't interfere 2019-12-17 15:36:42 +01:00
Kubernetes Prow Robot
40750a02fa
Merge pull request #84425 from yutedz/e2e-pods-const
Declare constants in pods test as const
2019-12-17 06:18:00 -08:00
Lukasz Szaszkiewicz
869aef61af improves watch and report e2e test to also check IsResourceExpired since the API can return both errors (Gone, Expired) 2019-12-17 14:29:25 +01:00
Abdullah Gharaibeh
b3abfdc9e4 registered nodeports and noderesources prefilters 2019-12-17 07:29:37 -05:00
Kubernetes Prow Robot
9b840a72c9
Merge pull request #86148 from tanjunchen/use-framework-Equal
test/e2e/: use framework.Equal() replace gomega.Expect(...).To(gomega…
2019-12-17 04:19:59 -08:00
Jakub Pierewoj
f9c4551a94 Use private master IP in GCE kubemark tests
Currently hollow nodes communicate with kubemark master using public
master IP, which results in each call going through cloud NAT. Cloud NAT
limitations become performance bottleneck (see kubernetes/perf-tests/issues/874).

To mitigate this, in this change, a second kubeconfig called "internal"
is created. It uses private master IP and is used to set up hollow nodes.

Note that we still need the original kubemark kubeconfig (using public master IP)
to be able to communicate with the master from outside the cluster (when
setting it up or running tests).

Testing:
- set up kubemark cluster, verified apiserver logs to confirm that the call
  from hollow nodes did not go through NAT
2019-12-17 12:49:50 +01:00
Kubernetes Prow Robot
acb2994f77
Merge pull request #86199 from hwdef/clean-e2e-framework
test/e2e: move funcs from test/e2e/pod to other folders
2019-12-16 21:39:03 -08:00
Kubernetes Prow Robot
e2cd6ff235
Merge pull request #86113 from haosdent/clean-e2e-framework-log
e2e: remove unused method in e2e/framework/log
2019-12-16 21:38:54 -08:00
Kubernetes Prow Robot
d97ed7c0d3
Merge pull request #86098 from tanjunchen/clean-e2e-framework-1209
move test/e2e/framework/lifecycle/ test/framework/cloud/gcp
2019-12-16 21:38:43 -08:00
Kubernetes Prow Robot
889030bdd5
Merge pull request #86061 from haosdent/clean-e2e-framework-deployment
e2e: move funs of framework/deviceplugin to e2e_node
2019-12-16 21:38:33 -08:00
Kubernetes Prow Robot
80f03eb2ac
Merge pull request #85453 from claudiubelu/tests/enable-for-windows
tests: Removes [LinuxOnly] tag from a few tests
2019-12-16 21:37:51 -08:00
Jordan Liggitt
5c537915bf Mark '[sig-apps] CronJob should delete successful/failed finished jobs with limit of one job' flaky 2019-12-16 17:05:30 -05:00
Jordan Liggitt
ce3839452e Mark '[sig-scheduling] PreemptionExecutionPath runs ReplicaSets to verify preemption running path' flaky 2019-12-16 17:05:05 -05:00
Jordan Liggitt
2164157113 Make e2e scale updates unconditional 2019-12-16 15:46:35 -05:00
Jordan Liggitt
176c95ff3e Add debugging for delete grace period e2e flake 2019-12-16 14:15:19 -05:00
Jordan Liggitt
d12608017d Mark GCEPD test flaky 2019-12-16 12:06:26 -05:00
Jordan Liggitt
8111bb3d77 Update wardle e2e image 2019-12-16 11:06:11 -05:00
Jordan Liggitt
cad5de706a Build sample-apiserver image using kubernetes 1.17 / go 1.13 2019-12-16 11:06:11 -05:00
hwdef
d45107a00d test/e2e: move funcs from test/e2e/pod to other folders 2019-12-16 11:58:49 +08:00
Mark Janssen
a634e254c1 Fix staticcheck failures for test/images
Errors from staticcheck:
test/images/agnhost/dns/common.go:79:6: func runCommand is unused (U1000)
test/images/agnhost/inclusterclient/main.go:75:16: using time.Tick leaks the underlying ticker, consider using it only in endless functions, tests and the main package, and use time.NewTicker here (SA1015)
test/images/agnhost/net/nat/closewait.go:41:5: var leakedConnection is unused (U1000)
test/images/agnhost/netexec/netexec.go:157:17: printf-style function with dynamic format string and no further arguments should use print-style function instead (SA1006)
test/images/agnhost/netexec/netexec.go:250:18: printf-style function with dynamic format string and no further arguments should use print-style function instead (SA1006)
test/images/agnhost/netexec/netexec.go:317:18: printf-style function with dynamic format string and no further arguments should use print-style function instead (SA1006)
test/images/agnhost/netexec/netexec.go:331:19: printf-style function with dynamic format string and no further arguments should use print-style function instead (SA1006)
test/images/agnhost/netexec/netexec.go:345:19: printf-style function with dynamic format string and no further arguments should use print-style function instead (SA1006)
test/images/agnhost/netexec/netexec.go:357:19: printf-style function with dynamic format string and no further arguments should use print-style function instead (SA1006)
test/images/agnhost/netexec/netexec.go:370:19: printf-style function with dynamic format string and no further arguments should use print-style function instead (SA1006)
test/images/agnhost/netexec/netexec.go:380:9: this value of err is never used (SA4006)
test/images/agnhost/netexec/netexec.go:381:17: printf-style function with dynamic format string and no further arguments should use print-style function instead (SA1006)
test/images/agnhost/netexec/netexec.go:386:17: printf-style function with dynamic format string and no further arguments should use print-style function instead (SA1006)
test/images/agnhost/pause/pause.go:43:23: syscall.SIGKILL cannot be trapped (did you mean syscall.SIGTERM?) (SA1016)
test/images/agnhost/serve-hostname/serve_hostname.go:125:15: the channel used with signal.Notify should be buffered (SA1017)
test/images/agnhost/webhook/patch_test.go:131:13: this value of err is never used (SA4006)
test/images/pets/peer-finder/peer-finder.go:155:6: this value of newPeers is never used (SA4006)
2019-12-15 22:34:27 +01:00
Kubernetes Prow Robot
32883e46d6
Merge pull request #86238 from SataQiu/fix-staticcheck-20191213
Fix staticcheck failures of test/e2e/manifest
2019-12-15 11:07:37 -08:00
Haosdent Huang
973fddd155 e2e: move funs of framework/gpu to e2e_node 2019-12-16 00:53:01 +08:00
Haosdent Huang
4536ed50a0 e2e: move funs of framework/deviceplugin to e2e_node 2019-12-16 00:46:56 +08:00
Haosdent Huang
21e906fba6 e2e: move funs of framework/job to e2e/upgrades/apps/job 2019-12-16 00:30:42 +08:00
Haosdent Huang
8d3a8d5a6c e2e: move funs of framework/metrics to e2e_node 2019-12-16 00:27:58 +08:00
Matthias Bertschy
6603f41a13 Promote StartupProbe to beta for 1.18 2019-12-15 14:49:34 +01:00
Kubernetes Prow Robot
5ead4974e0
Merge pull request #86000 from timoreimann/e2e-support-long-csi-driver-names
e2e: support long CSI driver names
2019-12-14 16:11:36 -08:00
Kubernetes Prow Robot
5135a13e77
Merge pull request #86240 from draveness/patch-4
doc: remove Draven from test package reviewers
2019-12-14 03:25:36 -08:00
Kubernetes Prow Robot
ae57548b2f
Merge pull request #86190 from SataQiu/test-owners-20191212
Promote SataQiu to an approver of test and test/e2e/framework
2019-12-13 16:19:49 -08:00
Kubernetes Prow Robot
6a919f2b54
Merge pull request #85903 from liggitt/disable-deprecated-apis
Remove ability to re-enable serving deprecated APIs
2019-12-13 16:19:36 -08:00
Timo Reimann
a70bec465d e2e: support long CSI driver names
The storage e2e test suite uses given CSI driver names as pod names. For
pod names that also get enriched by a prefix and suffix, it is very easy
to exceed the 63 character limit that pod names are subject to, thereby
causing tests to fail.

This change fixes the described problem by omitting the driver name from
the pod name suffix.

It also allows us to drop VolumeResource.VolType.
2019-12-13 22:54:06 +01:00
Kubernetes Prow Robot
69410eca4b
Merge pull request #86256 from liggitt/testapi
Remove use of testapi package
2019-12-13 12:55:50 -08:00
Kubernetes Prow Robot
6f49555208
Merge pull request #86193 from tanjunchen/clean-test-framework-apps
move funcs from test/e2e/framework to test/e2e/apps
2019-12-13 10:39:08 -08:00
clarklee92
623c4f9f17 e2e: move funs of framework/statefulset to e2e/apps & e2e/upgrades
Signed-off-by: clarklee92 <clarklee1992@hotmail.com>
2019-12-14 02:17:00 +08:00
Jordan Liggitt
749eea7e0f Prune server-side print exemption list 2019-12-13 12:23:39 -05:00
Jordan Liggitt
0387cc7cb3 Update generated files 2019-12-13 12:23:39 -05:00
Jordan Liggitt
f2f22b84cd Delete ReplicationControllerDummy 2019-12-13 12:21:33 -05:00
Jordan Liggitt
18ba6f9482 Remove references to unserved types 2019-12-13 12:21:33 -05:00
Jordan Liggitt
5d5b444c4d Remove use of testapi codecs, selflink, resourcepath functions 2019-12-13 11:56:29 -05:00
Kubernetes Prow Robot
5b77616374
Merge pull request #86177 from deads2k/configure-test
make test framework easier to re-use
2019-12-13 07:57:08 -08:00
Kubernetes Prow Robot
c34d140241
Merge pull request #86129 from damemi/remove-priority-code
Remove priority execution path from prioritizeNodes in generic_scheduler
2019-12-13 01:41:04 -08:00
Draven
d8c35733c0
doc: remove Draven from test package reviewers 2019-12-13 14:27:25 +08:00
SataQiu
95bf226533 fix staticcheck failures of test/e2e/manifest 2019-12-13 14:03:44 +08:00
tanjunchen
77a9d4772b move funcs from test/e2e/framework/replicaset to test/e2e/apps 2019-12-13 13:02:02 +08:00
Kubernetes Prow Robot
6715e35530
Merge pull request #86175 from ahg-g/ahg1-prefilters
Wrap InterPodAffinity predicate metadata as a Prefilter
2019-12-12 18:33:19 -08:00
tanjunchen
f786cb07b7 test/e2e/: use framework.Equal() replace gomega.Expect(...).To(gomega.BeTrue()|BeFalse()) 2019-12-13 10:11:47 +08:00
vpickard
0e644c8749 e2e-topology-manager: Fix bazel tests
Fix some tests

Signed-off-by: vpickard <vpickard@redhat.com>
2019-12-12 19:52:59 -05:00
Mike Dame
255ab6d2c3 Remove priority execution paths in favor of score plugins
Mainly affects core/generic_scheduler.go (and related tests). Removes the "prioritizers" field and related functions.
2019-12-12 19:30:44 -05:00
Kubernetes Prow Robot
b4b0d1903d
Merge pull request #85718 from dholbach/dholbach/remove-kube-timeout
drop KUBE_TIMEOUT in test/cmd/kubeadm.sh
2019-12-12 14:22:32 -08:00
vpickard
31b0d7f853 e2e-topology-manager: Fix package name
Change package name to e2enode

Signed-off-by: vpickard <vpickard@redhat.com>
2019-12-12 16:37:35 -05:00
vpickard
fba4a7be34 e2e-topology-manager: fixes for gofmt
Some cleanup for gofmt fixes

Signed-off-by: vpickard <vpickard@redhat.com>
2019-12-12 16:32:58 -05:00
vpickard
337fdf2f37 [WIP] e2e-topology-manager: Initial commit for E2E tests
This is the initial commit for E2E testing for Topology
Manager.

For now, run a subset of the CPU Manager tests.

Additional tests will be forthcoming.

Signed-off-by: vpickard <vpickard@redhat.com>
2019-12-12 16:32:58 -05:00
Kubernetes Prow Robot
c1b2ecaada
Merge pull request #86159 from clarklee92/move-e2e/framework/service
e2e: move funs of framework/service to e2e/network
2019-12-12 12:48:32 -08:00
Abdullah Gharaibeh
2fdf1fa3c1 inter-pod affinity prefilter 2019-12-12 15:20:14 -05:00
tanjunchen
89b31c8d69 move test/e2e/framework/lifecycle/ test/framework/cloud/gcp 2019-12-12 13:28:53 +08:00
Kubernetes Prow Robot
6dbd521cfa
Merge pull request #86178 from misterikkit/test-log-fix
fix log format string
2019-12-11 19:40:46 -08:00
SataQiu
20f0408f29 promote SataQiu to an approver of test and test/e2e/framework 2019-12-12 10:49:31 +08:00
Kubernetes Prow Robot
e76619931f
Merge pull request #86180 from Random-Liu/fix-critical-pod-cleanup-in-test
Make sure critical pod in the preemption test is always cleaned up.
2019-12-11 18:04:32 -08:00
Lantao Liu
915b096405 Make sure critical pod in the preemption test is always cleaned up.
Signed-off-by: Lantao Liu <lantaol@google.com>
2019-12-11 16:51:21 -08:00
Kubernetes Prow Robot
b38dfb3ccb
Merge pull request #85522 from YuikoTakada/local-latencies
Fix func VerifyLatencyWithinThreshold() to local
2019-12-11 14:30:32 -08:00
Kevin Klues
69f8053850 Update top-level CPUManager to adhere to new state semantics
For now, we just pass 'nil' as the set of 'initialContainers' for
migrating from old state semantics to new ones. In a subsequent commit
will we pull this information from higher layers so that we can pass it
down at this stage properly.
2019-12-11 23:02:51 +01:00
Jonathan Basseri
dc17fc4283 fix log format string 2019-12-11 13:27:13 -08:00
David Eads
773fbeab1e expose the clientConfig to consumers trying to build custom clients against the kubeapiserver 2019-12-11 16:10:36 -05:00
David Eads
d0210220e4 dump information for all namespaces related to the test 2019-12-11 16:00:57 -05:00
David Eads
ea913f38ea allow configuration of customized AfterEach functions for all tests 2019-12-11 15:53:00 -05:00
Kubernetes Prow Robot
343020101c
Merge pull request #86110 from haosdent/clean-e2e-framework-kubelet
e2e: move funs of framework/kubelet to e2e/scheduling
2019-12-11 12:52:56 -08:00
Kubernetes Prow Robot
7fb322e174
Merge pull request #86059 from haosdent/e2e-cleanup-autoscaling
e2e: remove unused method in e2e/framework/autoscaling.
2019-12-11 12:52:46 -08:00
Kubernetes Prow Robot
4ca93592d2
Merge pull request #86147 from tanjunchen/use-framework-Equal-20191211
test/e2e/storage : use framework.Equal() replace gomega.Expect(...).To(gomega.BeTrue(),...)
2019-12-11 11:32:24 -08:00
Kubernetes Prow Robot
2f66bcf8a6
Merge pull request #86136 from alejandrox1/add-alejandrox1-as-approver
Added alejandrox1 to test/approvers
2019-12-11 11:32:16 -08:00
Kubernetes Prow Robot
30edc8ea83
Merge pull request #86112 from SataQiu/fix-staticcheck-20191210
Fix staticcheck failures of e2e/storage/utils e2e/storage/vsphere
2019-12-11 11:32:07 -08:00
Kubernetes Prow Robot
0e15d26fe7
Merge pull request #86077 from pohly/external-docs
e2e storage: improve instructions for external driver testing
2019-12-11 08:42:08 -08:00
Kubernetes Prow Robot
cfdc365525
Merge pull request #86133 from Huang-Wei/cleanup-predicate-path
Eliminate running paths of Predicates in scheduler
2019-12-11 06:18:06 -08:00
clarklee92
c4ad07b0b1 e2e: move funs of framework/service to e2e/network
Signed-off-by: clarklee92 <clarklee1992@hotmail.com>
2019-12-11 20:13:34 +08:00
tanjunchen
35b0f1f7dd test/e2e_node/:use framework.Equal() instead of using gomega.Expect(bool).To(gomega.BeTrue(),explain) 2019-12-11 18:50:29 +08:00
tanjunchen
f8e0c6bb41 test/e2e/storage : use framework.Equal() replace gomega.Expect(...).To(gomega.BeTrue(),...) 2019-12-11 16:25:26 +08:00
Kubernetes Prow Robot
eef4c00ae9
Merge pull request #85621 from chewong/in-tree-azure-disk-e2e
Rename Azure driver to Azure Disk driver in e2e test
2019-12-10 22:14:06 -08:00
Wei Huang
dc3d1bd238
Eliminate running paths of Predicates in scheduler
- eliminate running paths of Predicates in scheduler; use Filter Plugins instead.
- refactor all unit tests
- adjust the TestPreemptWithPermitPlugin integration test
2019-12-10 19:14:13 -08:00
SataQiu
e70120f083 fix staticcheck failures of e2e/storage/utils e2e/storage/vsphere 2019-12-11 10:33:21 +08:00
Kubernetes Prow Robot
30a5db136f
Merge pull request #86057 from SataQiu/fix-staticcheck-20191209
Fix staticcheck failures of e2e/storage/drivers e2e/storage/testsuites
2019-12-10 18:14:05 -08:00
Kubernetes Prow Robot
ca78590bdb
Merge pull request #86084 from cbf123/apiserver_rbac_fix
update RBAC rules in e2e aggregator test
2019-12-10 16:05:32 -08:00
Kubernetes Prow Robot
541b4e4b39
Merge pull request #85542 from schrodit/e2e-dump-ns
Dump namespace if the namespace could not be cleaned up
2019-12-10 16:05:20 -08:00
Kubernetes Prow Robot
c0d5d11263
Merge pull request #75583 from sandeeppsunny/zone_support
Added e2e test to verify zone support across datacenters
2019-12-10 16:04:06 -08:00
alejandrox1
c051fc2057 Added alejandrox1 to test/approvers
Signed-off-by: alejandrox1 <alarcj137@gmail.com>
2019-12-10 16:07:57 -05:00
Kubernetes Prow Robot
a8caae554f
Merge pull request #86028 from ahg-g/ahg1-benchmarks
Fix inter-pod affinity scheduler benchmarks
2019-12-10 08:59:29 -08:00
Abdullah Gharaibeh
a051c591a1 Fix inter-pod affinity scheduler benchmarks 2019-12-10 10:00:28 -05:00
SataQiu
3ed535a89a fix staticcheck failures of e2e/storage/drivers e2e/storage/testsuites 2019-12-10 16:09:29 +08:00
Haosdent Huang
6df97909bb e2e: remove unused method in e2e/framework/log 2019-12-10 16:00:37 +08:00
Haosdent Huang
546dbf8b3c e2e: move funs of framework/kubelet to e2e/scheduling 2019-12-10 15:40:20 +08:00
Kubernetes Prow Robot
78c56e6b4c
Merge pull request #84886 from YangLu1031/daemonRestartTest
Verify kubelet & kube-proxy recovery on Windows nodes
2019-12-09 21:35:28 -08:00
Kubernetes Prow Robot
3c4d2a5215
Merge pull request #78731 from claudiubelu/tests-hostnetwork
Sets HostNetwork to False for tests which do not require it
2019-12-09 15:22:39 -08:00
Kubernetes Prow Robot
47c7b99057
Merge pull request #86085 from robscott/gcp-lb-timeout
Increasing LoadBalancerPollTimeout from 15 to 22 minutes
2019-12-09 14:00:45 -08:00
Kubernetes Prow Robot
83ebf2ffba
Merge pull request #86050 from SataQiu/clean-e2e-framework-20191209
e2e: move funs of framework/deployment to e2e/apps
2019-12-09 14:00:35 -08:00
Kubernetes Prow Robot
95703a2e01
Merge pull request #85962 from spiffxp/include-cloud-gcp-in-e2e-test
Include cloud/gcp tests in e2e.test
2019-12-09 14:00:17 -08:00
Rob Scott
57b538e657
Increasing LoadBalancerPollTimeout from 15 to 22 minutes
Some related tests were flaking as a result of GCP LBs potentially
taking longer to update than 15 minutes.
2019-12-09 10:46:22 -08:00
Chris Friesen
a9f80c70b2 update RBAC rules in e2e aggregator test
Add the "get" and "watch" verbs to the ClusterRole created
for the sample apiserver.  Without this, the test complains about
"Failed to watch..." the resources in question.

Strictly speaking the "get" verb doesn't seem to be needed, but
this aligns the e2e test with the example at
staging/src/k8s.io/sample-apiserver/artifacts/example/rbac.yaml
2019-12-09 11:03:44 -06:00
Patrick Ohly
3cc926f5ef e2e storage: fix type in comment 2019-12-09 16:46:45 +01:00
Patrick Ohly
17ae1eda3e e2e storage: improve instructions for external driver testing
Some of the content was out-dated (`ShortName` was removed,
`dataSource` renamed). Better refer to the actual definitions with
functional links.

To make it simpler to find those, `driverDefinition` gets moved up in
`external.go`.
2019-12-09 15:20:13 +01:00
Marek Siarkowicz
31fb04fa98 Remove cluster-monitoring
Heapster is deprecated and no longer supported
2019-12-09 11:25:20 +01:00
Haosdent Huang
089374e8d6 e2e: remove unused method in e2e/framework/autoscaling. 2019-12-09 15:32:28 +08:00
SataQiu
10b173868a move funs of framework/deployment to e2e/apps 2019-12-09 11:30:15 +08:00
SataQiu
27d645dc5b fix staticcheck failures of test/e2e/storage 2019-12-07 21:32:11 +08:00
Kubernetes Prow Robot
8ef9caaded
Merge pull request #85676 from tanjunchen/fix-staticcheck-test-integration-apiserver
fix staticcheck in test/integration/apiserver
2019-12-06 19:49:08 -08:00
Kubernetes Prow Robot
e0f11a2fc3
Merge pull request #85893 from tanjunchen/fix-test-e2e-network
fix staticcheck in test/e2e/network/
2019-12-06 17:06:06 -08:00
Kubernetes Prow Robot
688149a0c6
Merge pull request #84613 from MorrisLaw/breakout-kubectl-from-utils
move KubectlCmd out of utils into its own package
2019-12-06 15:51:53 -08:00
Kubernetes Prow Robot
d49ce6ac42
Merge pull request #85751 from tanjunchen/fix-staticcheck-test-e2e-auth-cloud
fix staticcheck in   test/e2e/cloud/
2019-12-06 09:05:03 -08:00
tanjunchen
06c5901769 fix staticcheck in test/integration/apiserver 2019-12-06 23:05:20 +08:00
Kubernetes Prow Robot
93c9085e8a
Merge pull request #85973 from msau42/fix-e2e
Disable broken pd e2e test
2019-12-05 18:44:49 -08:00
Kubernetes Prow Robot
d47e1364c9
Merge pull request #85540 from pohly/testsuites-api
e2e storage: public API for testsuites, support CSIInlineVolume type for generic resource
2019-12-05 17:15:19 -08:00
Jefftree
4d3d364d2b promote e2e tests for taint-tolerations in predicates 2019-12-05 16:54:02 -08:00
Kubernetes Prow Robot
bf71df226d
Merge pull request #85967 from liggitt/kubectl-deflake
Deflake kubectl custom printing test
2019-12-05 15:55:28 -08:00
Kubernetes Prow Robot
4fe4ff885d
Merge pull request #85934 from xueweiz/e2e-node
Convert ExpectEqual(err, nil) to ExpectNoError(err)
2019-12-05 15:55:03 -08:00
Kubernetes Prow Robot
b8ce44f006
Merge pull request #85863 from nan-yu/pdb_status_renaming
Rename PodDisruptionsAllowed to DisruptionsAllowed in type PodDisruptionBudgetStatus
2019-12-05 15:54:49 -08:00
Michelle Au
2e6d6d73e7 disable node deletion detach test 2019-12-05 14:26:17 -08:00
Kubernetes Prow Robot
fe80f32904
Merge pull request #85780 from hwdef/fix-staticcheck16
test/e2e/auth: Fix static check failures
2019-12-05 13:50:44 -08:00
Kubernetes Prow Robot
e68d7be680
Merge pull request #85457 from BenTheElder/typecheck-fun
Typecheck support for verifying providerless build
2019-12-05 13:50:17 -08:00
Michelle Au
a8ba361fd6 expect node to be recreated with the same name 2019-12-05 13:32:17 -08:00
Jordan Liggitt
bacab3d457 Deflake kubectl custom printing test 2019-12-05 15:44:25 -05:00
Aaron Crickenberger
d924407ede Include cloud/gcp in e2e.test
Follows the pattern used by instrumentation to include
instrumentation/logging etc.
2019-12-05 12:42:30 -08:00
Kubernetes Prow Robot
864596f680
Merge pull request #85947 from jsafrane/privileged-hostpath
Run all csi-hostpath containers as privileged
2019-12-05 12:33:04 -08:00
Patrick Ohly
8227b61022 bazel update 2019-12-05 20:10:25 +01:00
Patrick Ohly
87ccd41af2 e2e storage: add compile test for public TestSuite API
This will catch accidentally adding a new interface function which
isn't exported. For example, an attempt to implement a new unexported
"foobar()" function then leads to:

test/e2e/storage/testsuites/api_test.go:54:5: cannot use &fakeSuite literal (type *fakeSuite) as type testsuites.TestSuite in assignment:
	*fakeSuite does not implement testsuites.TestSuite (missing testsuites.foobar method)
		have foobar()
		want testsuites.foobar()
FAIL	k8s.io/kubernetes/test/e2e/storage/testsuites [build failed]
2019-12-05 20:10:25 +01:00
Patrick Ohly
160da35b23 e2e storage: public API for testsuites, support CSIInlineVolume type for generic resource
Implementing a test suite was impossible outside of the
k8s.io/kubernetes/test/e2e/storage/testsuites package because all
interfaces and structs used by them were private.

As part of revamping the API, genericVolumeTestResource also gets
exported because it is useful for other test suites. Because the
TestResource interface became obsolete a while ago and isn't used
anymore, the new name is just testsuites.VolumeResource.

testpatterns.CSIInlineVolume needs special handling in a few places.
It can now be used in a test pattern for a test suite that uses a
VolumeResource instance.
2019-12-05 20:10:25 +01:00
Kubernetes Prow Robot
a3718d7653
Merge pull request #85872 from ahg-g/ahg-affinity-pref
Perf benchmarks for preferred (anti)pod affinity
2019-12-05 09:02:33 -08:00
Abdullah Gharaibeh
da67bcbd35 added benchmarks for preferred (anti)pod affinity 2019-12-05 10:50:00 -05:00
hwdef
d81dd48e2c test/e2e/auth: Fix static check failures 2019-12-05 22:42:04 +08:00
Jan Safranek
d3c562f7e0 Run all csi-hostpath containers as privileged
On systems with SELinux enabled, non-privileged containers can't access
data of privileged containers. Since the CSI driver socket is exposed
by a privileged container, all sidecars must be privileged too.
2019-12-05 13:02:53 +01:00
Kubernetes Prow Robot
2f58d2e3fe
Merge pull request #85890 from tanjunchen/fix-golint-test-e2e_node-ruuner
fix golint check in test/e2e_node/runner/remote
2019-12-05 00:36:32 -08:00
Benjamin Elder
94cf731978 typecheck support setting tags, skipping test code, and ignoring directories 2019-12-04 22:30:23 -08:00
tanjunchen
d51b72d9e9 fix staticcheck in test/e2e/network/ 2019-12-05 13:58:28 +08:00
Xuewei Zhang
c0db5b2562 Convert ExpectEqual(err, nil) to ExpectNoError(err) 2019-12-04 20:28:31 -08:00
Lantao Liu
32850dc47d Revert "Use ExpectEqual test/e2e_node"
This reverts commit 561ee6ece9.
2019-12-04 18:14:13 -08:00
Kubernetes Prow Robot
e8bc121341
Merge pull request #85916 from ahg-g/ahg-e2e
remove max pods from e2e test
2019-12-04 15:44:31 -08:00
MorrisLaw
e981d1ea44 remove framework dependency from framework sub-package kubectl 2019-12-04 21:00:34 +00:00
MorrisLaw
b85adbf1fd moved WriteFileViaContainer and ReadFileViaContainer to kubectl_utils 2019-12-04 20:31:57 +00:00
MorrisLaw
4b99e5305e remove CheckFileSizeViaContainer from framework 2019-12-04 20:30:51 +00:00
MorrisLaw
cd8da67b03 move KubectlCmd out of utils into its own package 2019-12-04 20:30:43 +00:00
Abdullah Gharaibeh
8aa26a6ed6 remove max pods from e2e test 2019-12-04 13:38:08 -05:00
Jakub Pierewoj
6f0eec4dff Create kubemark cluster as private
This removes setting KUBE_GCE_PRIVATE_CLUSTER=false flag when creating
kubemark master.

In result, util.sh detect-master function detects both private and
public master IPs. The comment about cloud NAT does not apply after
https://github.com/kubernetes/kubernetes/pull/81073/files got merged
(see comments in the PR discussion).

This is first PR to change kubemark clusters to use private master IPs:
https://github.com/kubernetes/perf-tests/issues/874.

Note that kubemark kubeconfig will still contain public master IP. This
will be addresses in the follow-up PRs.

Testing:
* set up kubemark cluster
* verified that both private and public kubemark master IPs are logged
* ran tests on kubemark cluster using cluster loader
2019-12-04 15:19:22 +01:00
tanjunchen
29eb15c3a8 fix golint check in test/e2e_node/runner/remote 2019-12-04 18:14:52 +08:00
Kubernetes Prow Robot
0f332bae5d
Merge pull request #85853 from SataQiu/fix-staticcheck-20191203
Fix staticcheck failures of test/e2e/upgrade
2019-12-03 21:51:18 -08:00
Kubernetes Prow Robot
f47e4ae6ac
Merge pull request #85787 from tanjunchen/use-ExpectEqual-test-e2e_node
Use ExpectEqual test/e2e_node
2019-12-03 21:51:09 -08:00
Kubernetes Prow Robot
99e4f6529f
Merge pull request #85770 from tanjunchen/ExpectExpect-test-e2e-storage
use ExpectEqual of framework in test/e2e/storage
2019-12-03 21:50:56 -08:00
Kubernetes Prow Robot
9acdf52877
Merge pull request #85744 from tanjunchen/fix-golint-problems
Fix golint issues in test/e2e/lifecycle/
2019-12-03 19:44:57 -08:00
Nan Yu
1fb0dd4ec5 Rename PodDisruptionsAllowed to DisruptionsAllowed in type PodDisruptionBudgetStatus 2019-12-03 14:26:35 -08:00
Kubernetes Prow Robot
9ae79ef8e3
Merge pull request #85849 from liggitt/deflake-delete-grace-period
Deflake delete grace period e2e
2019-12-03 13:18:34 -08:00
Kubernetes Prow Robot
ec293b6898
Merge pull request #85847 from liggitt/deflake-pod-readiness
Deflake pod readiness e2e
2019-12-03 13:17:25 -08:00
Kubernetes Prow Robot
35dfb9b215
Merge pull request #84788 from adelina-t/replace_nginx_agnhost
Replace nginx image with agnhost in sig-node pods tests
2019-12-03 13:16:59 -08:00
Ernest Wong
727fdef2db
Address PR comment 2019-12-03 11:34:02 -08:00
SataQiu
6fcd030877 fix staticcheck failures of test/e2e/upgrade 2019-12-03 23:36:09 +08:00
Jordan Liggitt
28327efe6b Deflake delete grace period e2e 2019-12-03 09:46:45 -05:00
Jordan Liggitt
c62d6add9b Deflake pod readiness e2e 2019-12-03 09:15:04 -05:00
Kubernetes Prow Robot
716b4549b2
Merge pull request #85749 from SataQiu/golint-e2e-20191129
Fix golint failures of test/e2e_node/remote
2019-12-03 06:06:58 -08:00
Kubernetes Prow Robot
bea2ca73f3
Merge pull request #85781 from tanjunchen/use-ExpectEqual-test-e2e-upgrades
Use expect equal test e2e upgrades
2019-12-03 03:50:57 -08:00
tanjunchen
561ee6ece9 Use ExpectEqual test/e2e_node 2019-12-03 18:01:30 +08:00
tanjunchen
9eda99793d use ExpectEqual of framework in test/e2e/storage 2019-12-03 17:41:49 +08:00
tanjunchen
d2d68026fc Fix golint issues in test/e2e/lifecycle/ 2019-12-03 17:14:38 +08:00
YuikoTakada
cd7859901c Fix func VerifyLatencyWithinThreshold() to local 2019-12-03 06:53:41 +00:00
Yang Lu
ba2cc99bde Add test cases to verify kubelet & kube-proxy can recover if being killed accidentally 2019-12-02 15:59:35 -08:00
Kubernetes Prow Robot
19ee1ea9fa
Merge pull request #85810 from liggitt/disable-webhook-ratelimit
Ensure webhook backend requests are not artificially rate-limited
2019-12-02 15:03:09 -08:00
Kubernetes Prow Robot
46aaeb36f6
Merge pull request #85808 from ahg-g/ahg-bench
Update number of scheduler perf benchmarks to be more representative
2019-12-02 13:48:58 -08:00
Abdullah Gharaibeh
e9c400aabc update scheduler benchmarks to be more representative 2019-12-02 13:19:14 -05:00
Jordan Liggitt
d620493b74 Ensure webhook backend requests are not artificially rate-limited 2019-12-02 12:01:51 -05:00
Kubernetes Prow Robot
bd77d5f441
Merge pull request #85717 from krzysied/kubemark_node_addon_labels
Setting kubemark node labels
2019-12-02 03:17:04 -08:00
tanjunchen
c687521b44 fix staticcheck in test/e2e/cloud/ 2019-12-02 11:29:49 +08:00
tanjunchen
0c36299c21 Use expect equal test/e2e/upgrades 2019-12-02 11:20:42 +08:00
SataQiu
69aae3aa5a fix golint failures of test/e2e_node/remote 2019-11-29 18:11:55 +08:00
Kubernetes Prow Robot
050c9471c8
Merge pull request #85644 from liggitt/meta-v1-table
Switch TableGenerator/TableConvertor interfaces to metav1
2019-11-28 10:05:18 -08:00
Kubernetes Prow Robot
83a8e8c9fb
Merge pull request #85711 from tanjunchen/use-ExpectEqual-test-e2e-auto
use ExpectEqual of framework in test/e2e/autoscaling/
2019-11-28 06:09:03 -08:00
Kubernetes Prow Robot
8be1202f08
Merge pull request #85671 from tanjunchen/update-test/e2e/common-to-use-framework
use framework  refactor code in test/e2e/common
2019-11-28 04:53:03 -08:00
Kubernetes Prow Robot
dcb7daa885
Merge pull request #85666 from SataQiu/e2e-clean-e2elog-20191127
e2e: use log functions of core framework on pv, testfiles and volume sub packages
2019-11-28 03:03:03 -08:00
tanjunchen
52ac2783bc use framework refactor code in test/e2e/common 2019-11-28 18:03:01 +08:00
Daniel Holbach
a252a617a5 drop KUBE_TIMEOUT in test/cmd/kubeadm.sh
As runyontr remarked in test/cmd/kubeadm.sh: when
	https://github.com/kubernetes/kubeadm/issues/1430 is closed,
	KUBE_TIMEOUT can be removed.
2019-11-28 10:49:41 +01:00
Kubernetes Prow Robot
1934ad6a9c
Merge pull request #85664 from tanjunchen/use-framework-autoscaling-cloud
use framework in  test/e2e/cloud/
2019-11-28 01:49:17 -08:00
Krzysztof Siedlecki
aacd79cc36 setting kubemark node labels 2019-11-28 10:36:56 +01:00
tanjunchen
4d9c2a4ef8 use ExpectEqual of framework in test/e2e/autoscaling/ 2019-11-28 13:53:52 +08:00
Kubernetes Prow Robot
3dcc1a14df
Merge pull request #85628 from lubinsz/pr_kubeadm_proxy
Adding KubeProxyConfigMap19 checking in test-e2e-kubeadm
2019-11-27 19:49:13 -08:00
Kubernetes Prow Robot
0efe584db6
Merge pull request #85513 from liu-cong/benchmark-fix
Fix benchmark artifact parsing.
2019-11-27 16:41:03 -08:00
Kubernetes Prow Robot
15475b4321
Merge pull request #85297 from gnufied/fix-pvc-condition-check
Fix PVC condition check for offline resizing
2019-11-27 12:29:20 -08:00
Kubernetes Prow Robot
ee81b30681
Merge pull request #85323 from tanjunchen/use-ExpectEqual-test/e2e/auth
use ExpectEqual in /e2e/auth
2019-11-26 23:19:34 -08:00
Kubernetes Prow Robot
93c2eed3cb
Merge pull request #84901 from SataQiu/golint-e2e-node-20191107
Fix golint issues in test/e2e_node
2019-11-26 23:19:21 -08:00
tanjunchen
f993950b3f use framewoek in test/e2e/cloud 2019-11-27 15:13:55 +08:00
SataQiu
4325e8a452 e2e: use log functions of core framework on pv, testfiles and volume sub packages 2019-11-27 14:18:18 +08:00
Bin Lu
14316058f0 Adding KubeProxyConfigMap19 checking in test-e2e-kubeadm
Signed-off-by: Bin Lu <bin.lu@arm.com>
2019-11-27 13:50:38 +08:00
Kubernetes Prow Robot
4a8205b6fd
Merge pull request #85620 from msau42/debug-integration
decrease test pv controller resync period to try to deflake api update conflicts
2019-11-26 19:43:40 -08:00
Kubernetes Prow Robot
6a48f55e56
Merge pull request #83714 from tanjunchen/fix-staticcheck-test/e2e/windows
fix staticcheck  failures in test/e2e/windows
2019-11-26 19:43:20 -08:00
Michelle Au
a3a4320aff Wait for PV to be available before creating PVCs in volume binding test 2019-11-26 17:13:13 -08:00
Michelle Au
5b1fb221b6 increase pv controller resync period to try to deflake api update conflicts 2019-11-26 15:28:20 -08:00
Kubernetes Prow Robot
038f645f12
Merge pull request #85371 from boylee1111/enable_snapshot_e2e_test_for_pd
Enable snapshottable e2e test for csi pd driver
2019-11-26 14:29:20 -08:00
Ernest Wong
657a3a3294
Delete client node selector during volume creation 2019-11-26 13:20:59 -08:00
Kubernetes Prow Robot
a82f7cdd5d
Merge pull request #85469 from hwdef/fix-staticcheck12
test/e2e/apimachinery: fix staticcheck warning
2019-11-26 12:17:34 -08:00
Kubernetes Prow Robot
8b05cec276
Merge pull request #84477 from yutedz/csi-node-v1
Switch storage version to use v1.CSINode in 1.18
2019-11-26 12:17:21 -08:00
Cong Liu
016ab0b899 Fix benchmark artifact parsing.
* Added a extractor to extract raw logs from json format and then pipe
it into benchmark parser.
* Also added -alsologtostderr=false -logtostderr=false to reduce noisy logs.
2019-11-26 13:47:12 -05:00
Jordan Liggitt
deb75da17b fixup kubectl test 2019-11-26 13:20:52 -05:00
Kubernetes Prow Robot
036cf78b51
Merge pull request #85619 from gnufied/debug-volume-metric-failure
Fix attach/detach metric failure
2019-11-26 08:09:11 -08:00
hwdef
a0489c6ca8 test/e2e/apimachinery: fix staticcheck warning 2019-11-26 22:07:26 +08:00
Kubernetes Prow Robot
91aa8dfec8
Merge pull request #85304 from oomichi/cleanup-profile_gatherer
Remove e2e/framework/profile_gatherer.go
2019-11-26 04:05:11 -08:00
Kubernetes Prow Robot
10883c4c69
Merge pull request #84728 from notpad/kubemark
Migrate Kubemark to distroless
2019-11-26 02:09:10 -08:00
SataQiu
d2bdf89a8b fix golint issues in test/e2e_node 2019-11-26 16:26:55 +08:00
Hemant Kumar
59274b56af Use plugin name for filtering metrics 2019-11-25 23:05:09 -05:00
Hemant Kumar
d78137bbfe Fix PVC condition check for offline resizing 2019-11-25 22:59:37 -05:00
Ted Yu
1cb3992d1b Switch storage version to use v1.CSINode in 1.18 2019-11-25 19:14:09 -08:00
Ernest Wong
dd76fdfce5
Rename Azure driver to Azure Disk driver 2019-11-25 15:51:30 -08:00
Kubernetes Prow Robot
a3a2c4230d
Merge pull request #85496 from tanjunchen/fix-invalid-urls
fix 1-12 number urls
2019-11-25 15:25:10 -08:00
Kubernetes Prow Robot
85103eed42
Merge pull request #85582 from mm4tt/kubemark_source_revert
Revert "remove redundant `source` in shell"
2019-11-25 09:04:09 -08:00
Kubernetes Prow Robot
c7c0d09489
Merge pull request #85200 from SataQiu/refactor-e2e-kubectl-20191113
e2e: move LogFailedContainers out of e2e test framework util.go
2019-11-25 09:03:25 -08:00
Kubernetes Prow Robot
0bfe9d5270
Merge pull request #85537 from xieyanker/patch-1
stop-kubemark.sh add namespace
2019-11-25 07:41:09 -08:00
Mateusz Matejczyk
5a1c6b6c02 Revert "remove redundant source in shell"
This reverts commit 197964210a.

It breaks all kubemark periodic tests - https://k8s-testgrid.appspot.com/sig-scalability-kubemark
Example failure (https://prow.k8s.io/view/gcs/kubernetes-jenkins/logs/ci-kubernetes-kubemark-100-gce/1198635036526514177):
```
W1124 16:20:35.524] ./test/kubemark/start-kubemark.sh: line 27: CLOUD_PROVIDER: unbound variable
```
2019-11-24 08:32:27 -10:00
Kubernetes Prow Robot
2343a677e4
Merge pull request #85555 from Random-Liu/fix-upgrade-test
Fix GKE upgrade test.
2019-11-23 21:31:50 -08:00
Kubernetes Prow Robot
a8128804ab
Merge pull request #85502 from xieyanker/kubemark
fix kubemark output error
2019-11-22 18:40:04 -08:00
Kubernetes Prow Robot
300ca89e60
Merge pull request #85426 from davidz627/fix/testCtx
Plumb test state through to fake volume host creation for error handling
2019-11-22 17:31:22 -08:00
Kubernetes Prow Robot
d60486d8ae
Merge pull request #85340 from chendave/source
remove redundant `source` in shell
2019-11-22 17:30:26 -08:00
Kubernetes Prow Robot
ee1160cf9b
Merge pull request #85235 from oomichi/move-suites
Move suites.go to e2e package
2019-11-22 17:30:04 -08:00
Lantao Liu
73a881e06d Fix GKE upgrade test.
Signed-off-by: Lantao Liu <lantaol@google.com>
2019-11-22 11:05:44 -08:00
Tim Schrodi
c3c7ea2efd Dump namespace if the namespace could not be cleaned up 2019-11-22 12:14:28 +01:00
xieyanker
4428c0c25c
stop_kubemark
stop kubemark add namespace when run `kubectl delete`
2019-11-22 16:26:21 +08:00
Aaron Crickenberger
3cbc07bb64 Promote a TCP probe test to Conformance 2019-11-21 12:12:58 -08:00
xieyanker
e16cc492b0 fix kubemark output error 2019-11-21 15:56:15 +08:00
tanjunchen
8f4a262d61 fix 1-12 number urls 2019-11-21 11:17:46 +08:00
Claudiu Belu
e465e1089d Sets HostNetwork to False for tests which do not require it
Some tests are setting HostNetwork=true, even if it is not required
for them to pass.

This patch will set the HostNetwork to false for those tests, allowing
them to be run on Windows nodes as well.
2019-11-20 17:36:54 -08:00
David Zhu
21f7060c8f Plumb test state through to fake volume host creation for error handling 2019-11-18 14:45:01 -08:00
Kubernetes Prow Robot
beaf3a2f04
Merge pull request #83837 from RainbowMango/pr_hide_apiserver_deprecated_metrics
Turn off apiserver deprecated metrics
2019-11-16 20:25:40 -08:00
Claudiu Belu
c80fe4d914 tests: Removes [LinuxOnly] tag from a few tests
We've added the WindowsRunAsUserName feature some time ago, and it was
promoted to Beta for v1.17. We can now remove the [LinuxOnly] tag for
a few tests.

Depends On: #83058
Depends On: #84882
2019-11-16 15:54:33 -08:00
Dr. Stefan Schimanski
7f44afa8cd apiextensions: freeze & doc supported v1.16 OpenAPI formats 2019-11-16 21:53:29 +01:00
Kubernetes Prow Robot
16e0976bd1
Merge pull request #84861 from sttts/sttts-crd-defaulting-conformance
e2e: promote CRD defaulting test to conformance test
2019-11-16 05:43:40 -08:00
notpad
dcf80e31ac Migrate Kubemark to distroless 2019-11-16 17:49:26 +08:00
Kubernetes Prow Robot
e0529008d0
Merge pull request #85370 from mikedanese/expcache
fix terrible bug and inline GC for expiring cache
2019-11-16 00:29:40 -08:00
Jordan Liggitt
834246ca70 Skip Node printing in kubectl column test 2019-11-15 21:16:46 -05:00
Kubernetes Prow Robot
9c26a752a9
Merge pull request #85231 from davidz627/flags
Flip CSIMigration and CSIMigrationGCE to Beta
2019-11-15 17:57:41 -08:00
Mike Danese
d16dde36a3 inline GC in expiring cache
This allows us to drop the background goroutine with negligable
difference in performance.
2019-11-15 17:50:31 -08:00
Boyil (Elliot) Li
cfa6f83427 Enable snapshottable e2e test for csi pd driver
- add csi pd driver manifests
- modify snapshottable test case
- fix tests of pod has to be created first for delay-binding PVC, otherwise PVC won't be bound
2019-11-15 15:46:48 -08:00
Rob Scott
7085d692b7
Reverting managed-by-setup annotation
This ended up causing far more problems than it was worth, especially
given that it just attempted to provide backwards compatibility with
the alpha release.
2019-11-15 11:50:58 -08:00
David Zhu
1a47bf54e2 De-race some CSI unit tests that were initializing the plugin manager…ger (and plugins) twice. Set some const variables earlier to support node info manager initialization and wait for initialization to complete before finishing plugin setup. 2019-11-15 11:23:32 -08:00
Travis Rhoden
0c5c3d8bb9
Remove pkg/util/mount (moved out of tree)
This patch removes pkg/util/mount completely, and replaces it with the
mount package now located at k8s.io/utils/mount. The code found at
k8s.io/utils/mount was moved there from pkg/util/mount, so the code is
identical, just no longer in-tree to k/k.
2019-11-15 08:29:12 -07:00
Dr. Stefan Schimanski
69282dc4d8 e2e: promote CRD defaulting test to conformance test 2019-11-15 15:19:45 +01:00
Dave Chen
197964210a remove redundant source in shell
It will be done in the subsequent script `source ...cluster/kubemark/util.sh`
2019-11-15 19:06:08 +08:00
Kubernetes Prow Robot
e4bde524d9
Merge pull request #85322 from davidz627/revert-85169-enable_snapshot_e2e_test_for_pd
Revert "Enable snapshot e2e test for csi pd driver"
2019-11-15 01:08:06 -08:00
Kubernetes Prow Robot
6c49283f69
Merge pull request #84875 from oomichi/move-test_context
Move RegisterNodeFlags() to e2e_node test
2019-11-15 01:07:42 -08:00
Anish Ramasekar
796faba4ac
Allow multiple node cidr masks in cm
update tests

add comment

amend var name

update comment

add check for empty slice

fix tests

fix mask size in test

review feedback

add ipv4 and ipv6 flag for mask sizes

add to violation exception list

remove import alias

run update-openapi-spec

review feedback

run update-bazel

review feedback

review feedback
2019-11-14 20:04:31 -08:00
tanjunchen
e975774b33 use ExpectEqual in /e2e/auth 2019-11-15 11:41:38 +08:00
David Zhu
1f2588496d
Revert "Enable snapshot e2e test for csi pd driver" 2019-11-14 19:29:20 -08:00
SataQiu
50bc528a7e e2e: move LogFailedContainers out of e2e test framework util.go 2019-11-15 10:21:26 +08:00
Kubernetes Prow Robot
693db6e347
Merge pull request #85169 from boylee1111/enable_snapshot_e2e_test_for_pd
Enable snapshot e2e test for csi pd driver
2019-11-14 17:50:42 -08:00
Kubernetes Prow Robot
19b4017b5d
Merge pull request #84424 from mikedanese/expcache
Add an expiring cache for the caching token authenticator
2019-11-14 17:50:06 -08:00
tanjunchen
7420faab43 fix-staticcheck in /test/e2e/windows 2019-11-15 09:45:43 +08:00