Commit Graph

17475 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
cff910b890
Merge pull request #90509 from knight42/fix/flaky-explain-test
fix flaky conformance test
2020-05-01 00:40:18 -07:00
Kubernetes Prow Robot
a0344973a3
Merge pull request #90591 from cofyc/fix-e2e-namespace-creation
e2e: regenerate namespace name if the name is already taken
2020-04-30 15:56:13 -07:00
tanjunchen
caddb3ffd3 test/e2e/framework:remove the direct dependency for k8s.io/kubernetes/pkg 2020-04-30 23:08:33 +08:00
louisgong
9390ff35a1 clean some dead configs 2020-04-30 20:07:08 +08:00
Kubernetes Prow Robot
8876563700
Merge pull request #90360 from tnozicka/fix-client-ca-reload
Fix client-ca dynamic reload in apiserver
2020-04-30 01:10:18 -07:00
Caleb Woodbine
bd9269f444 Fix formatting 2020-04-30 14:21:04 +12:00
Davanum Srinivas
3292bb6145
Drop conformance tag for tests that rely directly on kubelet /logs API
In caf0d1d61874a2c8687b7deb773eca30ddaee5b6 we documented a policy to
ensure that conformance tests should not rely in existence or use of
kubelet apis directly. So based on that we should drop conformance for
the two tests here that use the "/logs" endpoint directly.

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2020-04-29 20:16:51 -04:00
Hemant Kumar
9d4329f62c Check for empty zone string 2020-04-29 10:46:15 -04:00
Tomas Nozicka
b22a170d46 Fix client-ca dynamic reload in apiserver 2020-04-29 16:03:09 +02:00
tanjunchen
3b5ea194ea test/e2e/framework : move AddOrUpdateTaintOnNode to subpackage node 2020-04-29 21:29:38 +08:00
Claudiu Belu
06a1b7b491 tests: Retries exec after container restart due to liveness
The test "should not change the subpath mount on a container restart if the environment variable changes"
creates a pod with the liveness probe: cat /volume_mount/test.log. The test then
deletes that file, which causes the probe to fail and the container to be restarted.
After which it recreates the file by exec-ing into the pod, but there is a chance
that the container was not created yet, or it did not start yet.

This commit adds a few retries to the exec command.
2020-04-29 03:22:30 -07:00
Claudiu Belu
707883d52b tests: Refactors Variable Expansion tests 2020-04-29 03:21:35 -07:00
Yecheng Fu
38c5da01ad regenerate namespace name if the name is already taken 2020-04-29 17:27:52 +08:00
Aaron Crickenberger
c209fe8439 fix .import-restrictions to work with import-boss --include-test-files
this is mainly to ensure integration tests (which all end in _test)
are properly bossed around for their imports

I had to adjust some of the _test files to adhere to existing
reverse_rules specified elsewhere
2020-04-28 08:41:36 -07:00
Aaron Crickenberger
81881e4a12 prune .import-restrictions
specifically:

- cmd/kubeadm/.import-restrictions
  - we don't need to explicitly allow k8s.io repos (external or published)
- rm pkg/controller/.import-restrictions
  - pkg/client/unversioned was removed in 59042
- pkg/kubectl/.import-restrictions
  - pkg/printers is no longer used
  - pkg/api was masking all of the pkg/apis prefixes
- rm staging/src/k8s.io/code-generator/cmd/lister-gen/.import-restrictions
  - noop / empty file
- test/e2e/framework/.import-restrictions
  - we don't need to explicitly allow k8s.io repos (external or published)
2020-04-28 08:41:36 -07:00
Aaron Crickenberger
f306a0dbb4 convert .import-restrictions to yaml
yaml has comments, so we can explain why we have certain rules or
certain prefixes

for those files that weren't already commented yaml, I converted them to
yaml and took a best guess at comments based on the PRs that introduced
or updated them
2020-04-28 08:41:36 -07:00
knight42
b9fb9b82f3
test(kubectl::explain): move the flaky test out of conformance
Signed-off-by: knight42 <anonymousknight96@gmail.com>
2020-04-28 21:35:30 +08:00
Kubernetes Prow Robot
f86bf71dbe
Merge pull request #89560 from gavinfish/direct-k8s-pod
e2e/framework: remove direct imports to /pkg/api/v1/pod
2020-04-27 22:26:05 -07:00
Hemant Kumar
850da22c02 Azure - do not use 0 zone or empty string for zone when creating PVs 2020-04-27 17:14:50 -04:00
Antonio Ojea
2c2e9cdd72
Fix e2e network performance test 2020-04-27 11:57:10 +02:00
Patrick Ohly
e3d258d6ca e2e storage: wait for PV deletion also for late binding
When a test pattern or storage class uses late binding, the cleanup
code didn't know about the PV that may have been created for the PVC
since setting it up and thus then also didn't wait for PV deletion.

This is problematic for test isolation because the next test was
allowed to be started before fully cleaning up. Worse, it the driver
gets removed after the test, the volume might never get deleted.
2020-04-27 10:34:50 +02:00
Gaurav Singh
8240f21753 Convert index variable to interface{} 2020-04-26 11:10:00 -04:00
Gaurav Singh
98051aaba2 Fix race condition in logging 2020-04-25 22:01:21 -04:00
Kubernetes Prow Robot
4e45845530
Merge pull request #90095 from agadelshin/87893-ingress-egress-test
Add test for ingress/egress combination
2020-04-25 05:57:28 -07:00
Kubernetes Prow Robot
52ba6dc560
Merge pull request #89594 from wojtek-t/beta_immutable_secrets
Promote Immutable Secrets/ConfigMaps to Beta
2020-04-25 03:17:29 -07:00
Kubernetes Prow Robot
d0f10f1d4f
Merge pull request #90465 from wojtek-t/fix_loadbalancer_tets
Migrate ingress test manifests to networking API group
2020-04-24 15:32:37 -07:00
Kubernetes Prow Robot
b68bf25531
Merge pull request #90448 from soltysh/issue87851
Fix run command when waiting for pods
2020-04-24 15:32:17 -07:00
Kubernetes Prow Robot
219f062769
Merge pull request #64829 from dixudx/e2e_hostpath_type
fix bug on checking non directory HostPathType and add e2e tests for HostPathType
2020-04-24 15:31:29 -07:00
Kubernetes Prow Robot
7fdb2b16ae
Merge pull request #90468 from liggitt/fix-cache-control
Restore cache-control header filter
2020-04-24 14:01:29 -07:00
Jordan Liggitt
5efcc9e633 Restore cache-control header filter 2020-04-24 15:38:51 -04:00
wojtekt
b112393394 Migrate ingress test manifests to networking API group 2020-04-24 20:41:48 +02:00
Maciej Szulik
6f1484256d
waitForPod should use different exitCondition depending on restart policy 2020-04-24 16:30:46 +02:00
Kubernetes Prow Robot
70c18e4a15
Merge pull request #90404 from beautytiger/200423-nil-check
cleanup: delete unnacessary nil check before range
2020-04-24 04:42:06 -07:00
Kubernetes Prow Robot
f7b9960767
Merge pull request #90313 from tangcong/fix-scheduler-static-checkerr
fix e2e scheduling staticcheck error
2020-04-23 23:30:20 -07:00
Kubernetes Prow Robot
a62cfe8451
Merge pull request #75111 from tnozicka/fix-e2e-watches
Fix watches in e2e tests
2020-04-23 19:20:07 -07:00
Kubernetes Prow Robot
aef471ec3c
Merge pull request #90392 from tanjunchen/remove-direct-dependency
test/e2e_node/gpu_device_plugin_test.go:Remove direct prometheus dependencies from k/k
2020-04-23 17:20:20 -07:00
Kubernetes Prow Robot
775feed217
Merge pull request #90018 from wojtek-t/deprecate_default_conversions
Deprecate default conversions
2020-04-23 10:23:10 -07:00
Tomas Nozicka
c62db98e95 Update Bazel 2020-04-23 17:27:13 +02:00
Tomas Nozicka
d0a4c52392 Fix watches in apparmor e2e 2020-04-23 17:26:28 +02:00
Tomas Nozicka
df8994c202 Fix watches in e2e framework 2020-04-23 17:17:26 +02:00
Tomas Nozicka
c0ddbb0e97 Fix watches in init container e2e tests 2020-04-23 16:52:29 +02:00
Tomas Nozicka
2256991c93 Fix watches in StatefulSet e2e tests 2020-04-23 16:08:32 +02:00
Guangming Wang
bbd4fea21c cleanup: delete unnacessary nil check before range 2020-04-23 20:28:14 +08:00
Kubernetes Prow Robot
c12aeb2b77
Merge pull request #89753 from ii/promote-event-resource-lifecycle-test
Promote Event resource lifecycle test  +5 test endpoint coverage
2020-04-23 03:57:45 -07:00
tanjunchen
de99aaf8d2 test/e2e_node/gpu_device_plugin_test.go:Remove prometheus dependencies from k/k 2020-04-23 14:23:43 +08:00
Caleb Woodbine
e09e781a0c Promote ServiceAccount resource lifecycle test 2020-04-23 16:32:54 +12:00
Di Xu
3f5e09b6e2 add e2e tests for HostPathType and mark as slow 2020-04-23 10:52:40 +08:00
Kubernetes Prow Robot
7ad2eb04af
Merge pull request #90354 from ii/mark-replicationcontroller-resource-lifecycle-test-as-flaky
Mark ReplicationController resource lifecycle test as flaky
2020-04-22 19:22:43 -07:00
Kubernetes Prow Robot
53374fa519
Merge pull request #90343 from neolit123/1.19-remove-kubernetes-anywhere
remove kubernetes-anywhere from this repository
2020-04-22 19:22:24 -07:00
Kubernetes Prow Robot
c13a9401ca
Merge pull request #90193 from ii/create-serviceaccount-resource-lifecycle-test
Create ServiceAccount resource lifecycle test - +3 endpoint coverage
2020-04-22 19:22:00 -07:00
Kubernetes Prow Robot
43cd2ff239
Merge pull request #89549 from happinesstaker/sa-rotate
Monitoring safe rollout of time-bound service account token.
2020-04-22 17:01:58 -07:00
Jiajie Yang
ae0e52d28c Monitoring safe rollout of time-bound service account token. 2020-04-22 11:59:16 -07:00
Laszlo Janosi
af33c2f7e8 Add CreateSCTPServiceWithPort() to the framework in preparation for the coming SCTP e2e tests 2020-04-22 15:59:59 +00:00
Kubernetes Prow Robot
fc9d174102
Merge pull request #88248 from claudiubelu/tests/reduce-to-agnhost-mounttest
tests: Replaces mounttest images used with agnhost (part 4)
2020-04-22 04:53:52 -07:00
Caleb Woodbine
39e5122153 Update ReplicationController resource lifecycle test to be marked as flaky 2020-04-22 15:07:10 +12:00
Caleb Woodbine
9a53b0ec57 Add check for error in listing ServiceAccounts 2020-04-22 12:08:00 +12:00
Caleb Woodbine
c6e1701bda Add checks to watches; Update to patch different subproperty 2020-04-22 10:45:17 +12:00
Lubomir I. Ivanov
820c87c069 remove kubernetes-anywhere from this repository
The project has been deprecated since Dec 2018 and is unused.

Cleanup in:
- /test/e2e/framework/
- /cluster/
2020-04-21 22:52:51 +03:00
Kubernetes Prow Robot
66fd1335fa
Merge pull request #90305 from wojtek-t/enable_couple_large_cluster_tests
Enable couple networking tests for large clusters
2020-04-21 07:52:56 -07:00
Jason Simmons
d0f19815d2 Updates agnhost image VERSION and README 2020-04-21 09:43:58 -04:00
Kubernetes Prow Robot
72cdc8c211
Merge pull request #89256 from yue9944882/integration-test-flowcontrol
Priority-level isolation integration test
2020-04-21 05:42:55 -07:00
Kubernetes Prow Robot
07179d0207
Merge pull request #87998 from msau42/e2e-reattach-stress
Add stress test to repeatedly restart Pods with PVCs in parallel
2020-04-21 03:04:57 -07:00
Kubernetes Prow Robot
4362bf7919
Merge pull request #89505 from knight42/fix/kubectl-explain-crd
fix(kubectl): explain crds whose resource name is the same as builtin objects
2020-04-21 01:44:56 -07:00
toyoda
47e4f51da2 Add checking error for disruption e2e test 2020-04-21 09:52:49 +09:00
Kubernetes Prow Robot
d6f44b0ea9
Merge pull request #90278 from aojea/closewait
Deflake TCP Closewait e2e test
2020-04-20 17:44:56 -07:00
tangcong
eab22fd805 fix e2e scheduling staticcheck error 2020-04-21 07:11:26 +08:00
Kubernetes Prow Robot
d92fdebd85
Merge pull request #89897 from giuseppe/test-e2e-node
kubelet: fix e2e-node cgroups test on cgroup v2
2020-04-20 15:54:12 -07:00
Kubernetes Prow Robot
0e072a8214
Merge pull request #85478 from bart0sh/PR0084-e2e_node-inspect-inspect-image-before-pulling
e2e_node: check if image exists locally before pulling
2020-04-20 14:05:40 -07:00
Kubernetes Prow Robot
be9427e253
Merge pull request #90252 from dims/no-need-to-vendor-bazel-gazelle/buildtools/kazel
Separate go module for tools to avoid polluting root go.mod
2020-04-20 12:19:41 -07:00
wojtekt
da1ed9d1ed Enable couple networking tests for large clusters 2020-04-20 21:11:34 +02:00
Kubernetes Prow Robot
2c80046ed1
Merge pull request #90286 from smarterclayton/preempt
test: PriorityClass resource quota tests should not cause preemption
2020-04-20 10:42:04 -07:00
wojtekt
0360e4d1a1 Promote Immutable Secrets/ConfigMaps feature to Beta 2020-04-20 18:04:43 +02:00
Kubernetes Prow Robot
7f7378eddf
Merge pull request #89854 from SataQiu/fix-session-affinity-test-20200404
Increase the session affinity timeout to ensure that the test passes
2020-04-20 02:49:39 -07:00
Ed Bartosh
88478f3749 e2e_node: check if image exists locally before pulling
'docker pull' is a time consuming operation. It makes sense to check
if image exists locally before pulling it from a registry.

Checked if image exists by running 'docker inspect'. Only pull if
image doesn't exist.
2020-04-20 12:27:29 +03:00
Antonio Ojea
e3df13439a fix service allocation concurrency issues
The service allocator is used to allocate ip addresses for the
Service IP allocator and NodePorts for the Service NodePort
allocator. It uses a bitmap backed by etcd to store the allocation
and tries to allocate the resources directly from the local memory
instead from etcd, that can cause issues in environment with
high concurrency.

It may happen, in deployments with multiple apiservers, that the
resource allocation information is out of sync, this is more
sensible with NodePorts, per example:

1. apiserver A create a service with NodePort X
2. apiserver B deletes the service
3. apiserver A creates the service again

If the allocation data of apiserver A wasn't refreshed with the
deletion of apiserver B, apiserver A fails the allocation because
the data is out of sync. The Repair loops solve the problem later,
but there are some use cases that require to improve the concurrency
in the allocation logic.

We can try to not do the Allocation and Release operations locally,
and try instead to check if the local data is up to date with etcd,
and operate over the most recent version of the data.
2020-04-20 09:50:00 +02:00
Kubernetes Prow Robot
1aa2c99a27
Merge pull request #90254 from smarterclayton/flaky_test
test: IngressClass exclusion test races with admission cache
2020-04-19 21:11:40 -07:00
SataQiu
fc3d282b10 kube-proxy: increase the session affinity timeout to ensure that the test passes in ipvs mode
Signed-off-by: SataQiu <1527062125@qq.com>
2020-04-20 10:22:30 +08:00
Davanum Srinivas
12146cb4df
Do not include bazel related deps in root go.mod
- add ./hack/tools/go.mod, this makes ./hack/tools a distinct module
- hack/tools/tools.go undescore imports bazel related tools, over time we
can add others.
- hack/*.sh scripts will cd to hack/tools and go install tools from there

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2020-04-19 22:01:50 -04:00
Clayton Coleman
1e4e0759e8
test: PriorityClass resource quota tests should not cause preemption
During a parallel test run these tests were observed to cause a
preemption of another test:

```
Apr 19 16:59:06.749: INFO: At 2020-04-19 16:58:52 +0000 UTC - event for pod-init-b6fbd440-dbc2-454a-b31a-ce44266298d1: {default-scheduler } Scheduled: Successfully assigned e2e-init-container-7691/pod-init-b6fbd440-dbc2-454a-b31a-ce44266298d1 to ip-10-0-148-234.us-west-2.compute.internal
Apr 19 16:59:06.750: INFO: At 2020-04-19 16:58:54 +0000 UTC - event for pod-init-b6fbd440-dbc2-454a-b31a-ce44266298d1: {default-scheduler } Preempted: Preempted by e2e-resourcequota-priorityclass-8850/testpod-pclass9 on node ip-10-0-148-234.us-west-2.compute.internal
```

These tests have no need to actually land on a node to validate resource quota and so we can set an impossible scheduling condition. Hopefully we don't have tests that too broadly check impossible scheduling conditions.
2020-04-19 15:08:00 -04:00
Clayton Coleman
77973b5279
test: IngressClass exclusion test races with admission cache
The admission cache may take longer to see both ingress classes
than it takes to create the ingress. We must loop until we see
the appropriate error, cleaning up after ourselves as we go.
2020-04-19 10:28:46 -04:00
Antonio Ojea
6efe6e1284 e2e TCP Close-wait don't set conn deadline
Don't set a connection deadline for reading, because the read operation will
fail if no data is reaceived after the deadline, and will not keep the
connection in the close_wait status.
2020-04-19 13:52:49 +02:00
Antonio Ojea
4b423ad073 e2e kube-proxy don't delete inmediatly 2020-04-19 13:37:34 +02:00
Antonio Ojea
638e077b4b e2e kube_proxy pull only if not available 2020-04-19 13:11:31 +02:00
Kubernetes Prow Robot
e95106106b
Merge pull request #90243 from soltysh/issue90074
Revert "stop defaulting kubeconfig to http://localhost:8080"
2020-04-18 23:07:36 -07:00
Kubernetes Prow Robot
640b3c0582
Merge pull request #89916 from tanjunchen/update-20200407
test/e2e/autoscaling: refactor installNVIDIADriversDaemonSet()
2020-04-17 14:43:36 -07:00
yue9944882
df5dfb46b7 assert shared concurrency 2020-04-18 01:15:54 +08:00
Kubernetes Prow Robot
87eb688ec9
Merge pull request #90234 from jsafrane/remove-prestop-hook
Sync csi-hostpath manifests
2020-04-17 07:41:06 -07:00
Maciej Szulik
a871738c86
Revert "stop defaulting kubeconfig to http://localhost:8080"
This reverts commit b19ad9e7a7.
2020-04-17 16:37:15 +02:00
Kubernetes Prow Robot
72fb952dd6
Merge pull request #89915 from YuikoTakada/move_e2e_framework_WaitForService
Move WaitForService() into e2eservice
2020-04-17 04:49:07 -07:00
Jan Safranek
4bcb3cd34e Sync csi-hostpath manifests
Copy csi-hostpath driver manifests from
kubernetes-csi/csi-driver-host-path. It bumps version of all images to the
release shipped along Kubernetes 1.18.
2020-04-17 09:49:24 +02:00
Kubernetes Prow Robot
7c53c1eb91
Merge pull request #89819 from pohly/enhance-podlogs-master
tests: enhance podlogs
2020-04-16 22:19:07 -07:00
Kubernetes Prow Robot
ae8d30631d
Merge pull request #90214 from pohly/stop-pod-master
storage tests: really wait for pod to disappear
2020-04-16 20:49:07 -07:00
Yuiko Mori
9c87deb487 Move WaitForService() into e2eservice 2020-04-17 00:11:13 +00:00
Michelle Au
6596e20b18 Make stress test parameters configurable
Change-Id: Ia062f3433b6043825a51a54c7c07eb4cdf809631
2020-04-16 14:18:21 -07:00
Kubernetes Prow Robot
aa0665dfee
Merge pull request #90147 from gnufied/use-random-node-zone-for-inline-e2e
Use random zone for inline volume e2e tests
2020-04-16 13:59:08 -07:00
Patrick Ohly
0cdd5365a1 storage tests: really wait for pod to disappear
As seen in one case (https://github.com/intel/pmem-csi/issues/587), a
pod can reach the "not running" state although its ephemeral volumes
are still being torn down by kubelet and the CSI driver. What happens
then is that the test returns too early and even deleting the
namespace and thus the pod succeeds before the NodeVolumeUnpublish
really finishes.

To avoid this, StopPod now waits for the pod to really disappear.
2020-04-16 21:10:56 +02:00
Jason Simmons
c56d8df5e3 Adds HTTPS logic to agnhost netexec
The agnhost image used for testing has a `netexec` path which supports
two new flags, `--tls-cert-file` and `--tls-private-key-file`. If the
former is provided, the HTTP server will be upgraded to HTTPS, using the
certificate (and private key) provided.

By default, there are keys already mounted into the container at
`/localhost.crt` and `/localhost.key`, which contain PEM-encoded TLS
certs with IP SANs for `127.0.0.1` and `[::1]`.
2020-04-16 11:42:37 -04:00
Kubernetes Prow Robot
b0806d0c02
Merge pull request #90165 from ScrapCodes/fix_flake_run_apply
Fixed flaky test by changing get_object_assert -> wait_object_assert.
2020-04-16 08:38:59 -07:00
Kubernetes Prow Robot
da5e6ad347
Merge pull request #90052 from tosi3k/reenable-ilb-test
Remove the 'DisabledForLargeClusters' tag from ILB correctness test
2020-04-16 02:14:45 -07:00
Caleb Woodbine
e31baf82da Fix build 2020-04-16 17:52:10 +12:00
Caleb Woodbine
23d4367cff Add ServiceAccount resource lifecycle test 2020-04-16 16:34:59 +12:00
Prashant Sharma
5a765b1e15 Changed get_object_assert -> wait_object_assert, to fix the flaky test. 2020-04-16 10:01:18 +05:30
tanjunchen
2e8e029737 test/e2e/autoscaling: refactor installNVIDIADriversDaemonSet() 2020-04-16 11:36:56 +08:00
Kubernetes Prow Robot
51d41dfdb1
Merge pull request #89542 from julianvmodesto/diff-dry-run-conformance
Add kubectl diff and server-side dry-run to e2e tests
2020-04-15 19:50:45 -07: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
Kubernetes Prow Robot
b35fdbc037
Merge pull request #89904 from alculquicondor/raw-extension-plugin-args
Use RawExtension and Object for external and internal, respectively, scheduling plugin args
2020-04-15 15:22:59 -07:00
Kubernetes Prow Robot
b7a6d53f5e
Merge pull request #88924 from dims/add-support-for-listing-conformance-tests-in-e2e.test
Add support for listing conformance tests in e2e.test
2020-04-15 13:14:45 -07:00
Kubernetes Prow Robot
413c81a793
Merge pull request #90171 from kubernetes/revert-89421-disabled_for_large_cluster
Revert "Remove the 'DisabledForLargeClusters' tags from LB network tests."
2020-04-15 11:36:50 -07:00
Kubernetes Prow Robot
5ccc6e0142
Merge pull request #90166 from claudiubelu/test-images/owner-files-part-2
test images: Adds OWNERS files for images (part 2)
2020-04-15 11:36:42 -07:00
Kubernetes Prow Robot
a06d735829
Merge pull request #89152 from claudiubelu/image-promoter/reenable-windows
Image promoter: Reenable Windows test image building
2020-04-15 11:35:46 -07:00
Rob Scott
c0f58ba23a
Improving EndpointSlice tests
This adds 2 new tests covering EndpointSlices, including new coverage of
the self referential Endpoints and EndpointSlices that need to be
created by the API Server and the lifecycle of EndpointSlices from
creation to deletion. This also removes the [feature] indicator from the
name to ensure that this test will run more often now that it is enabled
by default.
2020-04-15 10:21:00 -07:00
Kubernetes Prow Robot
4cf56b0996
Merge pull request #88114 from pohly/storage-capacity-tests
storage capacity tests
2020-04-15 07:02:02 -07:00
Wojciech Tyczynski
5dca58d852
Revert "Remove the 'DisabledForLargeClusters' tags from LB network tests." 2020-04-15 13:45:42 +02:00
Artur Gadelshin
bf30bdddb1 add error check for network policy test 2020-04-15 11:47:02 +02:00
Hemant Kumar
7d6712632c Use random zone for inline volume e2e tests 2020-04-14 23:37:21 -04:00
tanjunchen
87f2ef51f4 test/e2e/framework:remove direct k8s.io/kubernetes depedencies 2020-04-15 09:39:22 +08:00
Kubernetes Prow Robot
d0183703cb
Merge pull request #90059 from ahg-g/ahg-nodeinfo2
Cleanup obsolete NodeInfo methods
2020-04-14 17:32:04 -07:00
Kubernetes Prow Robot
548124828c
Merge pull request #90113 from claudiubelu/windows-tests/gmsa-nanoserver
Windows tests: Makes gMSA test more nanoserver friendly
2020-04-14 12:34:26 -07:00
Kubernetes Prow Robot
ea2d784545
Merge pull request #89895 from jingyih/update_etcd_server_3p4p7
Update default etcd server to 3.4.7 in k8s v1.19
2020-04-14 12:34:06 -07:00
Aldo Culquicondor
ce05382b58 Use RawExtension and Object for external and internal scheduling plugin args, respectively
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2020-04-14 13:44:42 -04:00
Claudiu Belu
2321378fe5 test images: Adds OWNERS files for images (part 3)
Adds reviewers to the OWNERS files in the kubernetes/test/images folder.
The reviewers are added automatically, based on their contributions on
an image (>= 20% code churn).

Note that the code churn is taken into account for authors, and not committers.

Adds OWNERS files for: cuda-vector-add, nonewprivs, pets, redis, volume.
2020-04-14 05:26:22 -07:00
Claudiu Belu
2b5fb5366f test images: Adds OWNERS files for images (part 2)
Adds reviewers to the OWNERS files in the kubernetes/test/images folder.
The reviewers are added automatically, based on their contributions on
an image (>= 20% code churn).

Note that the code churn is taken into account for authors, and not committers.

Adds ONWERS files for: apparmor-loader, echoserver, jessie-dnsutils, metadata-concealment,
sample-apiserver.
2020-04-14 05:18:34 -07:00
Claudiu Belu
94ffe582e9 Image promoter: Reenable Windows test image building
The build times are a bit high for the image builder (~50 minutes), and it will a bit more
when Windows support will be added to the other test images. This commit changes the
machineType to N1_HIGHCPU_8.

Reenables Windows test image building. Added DOCKER_CERT_BASE_PATH (default value: $HOME),
which will contain the path where the certificates needed for Remote Docker Connection can
be found.

If a REMOTE_DOCKER_URL was not set for a particular OS version, exclude that image from the
manifest list. This fixes an issue where, if REMOTE_DOCKER_URL was not set for Windows Server 1909,
the Windows were completely excluded from the manifest list, including for Windows Server 1809
and 1903 which could have been built and pushed.

Sets "test-webserver" as the default CMD for kitten and nautilus. Since they are now based on
agnhost, they should be set to run test-webserver to maintain previous behaviour.

Bumps the agnhost version to 2.13, as 2.12 has already been promoted. 2.13 will contain
Windows support.

Adds Windows support for the kitten and nautilus images, so they can promoted together
with agnhost (they were not previously promoted).

Adds OWNERS files to: agnhost, busybox, kitten, nautilus.
2020-04-14 05:12:46 -07:00
Patrick Ohly
2ae6cf5984 mock tests: per-test timeout for ResourceExhausted
The timeout for the two loops inside the test itself are now bounded
by an upper limit for the duration of the entire test instead of
having their own, rather arbitrary timeouts.
2020-04-14 09:11:42 +02:00
tanjunchen
f76da50c7d test/e2e/framework/util.go:move DsFromManifest to test/e2e/framework/manifest , and rename it to DaemonSetFromURL 2020-04-14 09:54:41 +08:00
jingyih
394df132bd Update default etcd server to 3.4.7 2020-04-13 14:37:56 -07:00
Kubernetes Prow Robot
c894c7b121
Merge pull request #88393 from abhiraut/e2e-exc-multiple
Add e2e test for stacked NetworkPolicies with overlapping CIDR
2020-04-13 13:37:48 -07:00
Claudiu Belu
335dc6e2ee Windows tests: Makes gMSA test more nanoserver friendly
Nanoserver does not have powershell. This commit will replace the powershell
command with its cmd equivalent.
2020-04-13 08:05:16 -07:00
yue9944882
875407a450 add flowcontrol integration test to import whitelist 2020-04-13 22:33:08 +08:00
yue9944882
30bc0fce48 integration test for priority-level isolation 2020-04-13 22:33:07 +08:00
Artur Gadelshin
4164b5c892 Add egress check to deny-all policy 2020-04-13 09:40:49 +02:00
toyoda
64fee7d58b Remove unnecessary return value in e2e/apps/disruption 2020-04-13 15:04:00 +09:00
Kubernetes Prow Robot
b17ddac4df
Merge pull request #78944 from avorima/golint_fix_job
Fix golint errors in pkg/controller/job
2020-04-12 21:57:47 -07:00
Kubernetes Prow Robot
6239abe698
Merge pull request #89225 from andrewsykim/apparmor-api
move apparmor annotation constants to k8s.io/api/core/v1
2020-04-12 19:11:50 -07:00
Abdullah Gharaibeh
bed9b2f23b Cleanup obsolete NodeInfo methods 2020-04-12 18:13:46 -04:00
Artur Gadelshin
875f80e3a3 Add test for ingress/egress combination 2020-04-12 23:36:16 +02: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
Kubernetes Prow Robot
4bba193bea
Merge pull request #89666 from julianvmodesto/kubectl-scale-dry-run
Support kubectl scale --dry-run=server|client
2020-04-11 10:45:47 -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
f13051c28c
Merge pull request #90060 from oomichi/WaitForAvailableEndpoint
Make WaitForAvailableEndpoint() local
2020-04-10 22:05:47 -07:00
gavinfish
bc0cfd273e e2e/framework: remove direct imports to /pkg/api/v1/pod 2020-04-11 11:12:36 +08:00
Kubernetes Prow Robot
92356963fd
Merge pull request #90035 from alejandrox1/mv-manifests-to-framework
Moved e2e/manifests to e2e test framework
2020-04-10 14:40:01 -07: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
Kubernetes Prow Robot
81d2707797
Merge pull request #89889 from tanjunchen/move-func-20200406
move function RemoveTaintOffNode in test/e2e/framework/util.go  to subpackage node
2020-04-10 12:25:48 -07:00
Kenichi Omichi
76833e2c37 Make WaitForAvailableEndpoint() local
WaitForAvailableEndpoint() is only used in e2eservice.
So this makes the function() local clearly.
2020-04-10 18:08:13 +00:00
wojtekt
f624314f91 Fix multiple conversion tests 2020-04-10 17:03:35 +02:00
Antoni Zawodny
4030da9e34 Remove the 'DisabledForLargeClusters' tag from ILB correctness test 2020-04-10 13:55:15 +02:00
Kubernetes Prow Robot
157b2aa820
Merge pull request #89918 from tanjunchen/improve-code
test/e2e/scheduling : improve code
2020-04-10 02:17:46 -07:00
alejandrox1
bf984efcc7 Moved e2e/manifests to e2e test framework
The functionality included in the e2e/manifests is useful for writing
e2e tests and will be a good addition to the test framework as a
sub-package.

Signed-off-by: alejandrox1 <alarcj137@gmail.com>
2020-04-09 20:48:52 -04:00
Kubernetes Prow Robot
0c9245a29f
Merge pull request #89974 from ahg-g/ahg-info
scheduler's NodeInfo tracks PodInfos instead of Pods
2020-04-09 09:19:58 -07:00
Kubernetes Prow Robot
897c10e7b2
Merge pull request #89551 from zlabjp/restore-kubectl-prune-multiple-namespaces
Restore the ability to `kubectl apply --prune` without -n flag
2020-04-09 07:49:43 -07:00
Giuseppe Scrivano
43c56eb403
e2e_node: adapt tests to cgroup v2
and fix node_container_manager_test to run with the systemd cgroup
manager.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-04-09 16:18:05 +02:00
Kubernetes Prow Robot
1634d9c120
Merge pull request #89982 from neolit123/1.19-fix-kubeadm-integration-tests
cleanup the kubeadm integration tests and related scripts
2020-04-09 04:55:44 -07:00
knight42
397f107a08
fix(kubectl): explain crds with the same resource name with builtin objects 2020-04-09 16:44:17 +08:00
Tatsuhiro Tsujikawa
7af3b01f24 Restore the ability to kubectl apply --prune without -n flag
Before https://github.com/kubernetes/kubernetes/pull/83084, `kubectl
apply --prune` can prune resources in all namespaces specified in
config files.  After that PR got merged, only a single namespace is
considered for pruning.  It is OK if namespace is explicitly specified
by --namespace option, but what the PR does is use the default
namespace (or from kubeconfig) if not overridden by command line flag.
That breaks the existing usage of `kubectl apply --prune` without
--namespace option.  If --namespace is not used, there is no error,
and no one notices this issue unless they actually check that pruning
happens.  This issue also prevents resources in multiple namespaces in
config file from being pruned.

kubectl 1.16 does not have this bug.  Let's see the difference between
kubectl 1.16 and kubectl 1.17.  Suppose the following config file:

```yaml
apiVersion: v1
kind: ConfigMap
metadata:
  creationTimestamp: null
  name: foo
  namespace: a
  labels:
    pl: foo
data:
  foo: bar
---
apiVersion: v1
kind: ConfigMap
metadata:
  creationTimestamp: null
  name: bar
  namespace: a
  labels:
    pl: foo
data:
  foo: bar
```

Apply it with `kubectl apply -f file`.  Then comment out ConfigMap foo
in this file.  kubectl 1.16 prunes ConfigMap foo with the following
command:

$ kubectl-1.16 apply -f file -l pl=foo --prune
configmap/bar configured
configmap/foo pruned

But kubectl 1.17 does not prune ConfigMap foo with the same command:

$ kubectl-1.17 apply -f file -l pl=foo --prune
configmap/bar configured

With this patch, kubectl once again can prune the resource as before.
2020-04-09 02:54:10 +00:00
Kubernetes Prow Robot
4bdb72ed11
Merge pull request #89113 from claudiubelu/test-images/fixes-and-cleanups
test images: Adds various fixes and cleanups to the image building process
2020-04-08 18:19:44 -07:00
Abdullah Gharaibeh
b8ddd00312 scheduler's NodeInfo tracks PodInfos instead of Pods 2020-04-08 17:53:20 -04:00
Lubomir I. Ivanov
9bbd321fec remove /cluster/kubeadm.sh and /test/cmd/kubeadm.sh
/cluster/kubeadm.sh is used to find the kubeadm binary.
This file is legacy and is removed.

Remove /test/cmd/kubeadm.sh. This file contains a function that is used
to build kubeadm and invoke "make test". Move the function contents
to hack/make-rules/test-cmd.cmd.

Stop sourcing /test/cmd/kubeadm.sh in /test/cmd/legacy-script.sh.

Also remove the --kubeadm-path invocation as this can be handled
with an env. variable directly.
2020-04-09 00:47:15 +03:00
tanjunchen
e358e75681 test/e2e/scheduling:improve code 2020-04-08 18:03:15 +08:00
tanjunchen
bf170e1db1 /test/e2e/apimachinery/:fix bug 2020-04-08 17:46:01 +08:00
toyoda
effd064ef7 Add error check for marshaling json 2020-04-08 15:26:10 +09:00
tanjunchen
6532b40f21 move function RemoveTaintOffNode in test/e2e/framework/util.go to subpackage node 2020-04-08 09:59:44 +08:00
Kubernetes Prow Robot
53ffaa7175
Merge pull request #76443 from mgdevstack/promote-service-sessionaffinity
Promote e2e "verifying service's sessionAffinity for ClusterIP and NodePort services" to Conformance
2020-04-07 18:47:44 -07:00
Kubernetes Prow Robot
172553bf94
Merge pull request #89926 from wojtek-t/cleanup_default_conversions_2
Stop relying on default conversions for metav1beta1 and e2e-node tests
2020-04-07 16:46:23 -07:00
Kubernetes Prow Robot
646ba8b310
Merge pull request #89715 from spiffxp/avoid-kubelet-api-in-conformance
Avoid kubelet API in Conformance tests
2020-04-07 16:45:43 -07:00
Kubernetes Prow Robot
3072d1e22e
Merge pull request #88036 from ii/promote-podtemplate-lifecycle
Promote: PodTemplate Lifecycle test - +3 conformance endpoint coverage
2020-04-07 15:27:43 -07:00
Kubernetes Prow Robot
007f7ae7dc
Merge pull request #89912 from ahg-g/ahg-fwk
Move scheduler's NodeInfo and Listers types to framework pkg
2020-04-07 12:49:57 -07:00
Kubernetes Prow Robot
f21bd9efb9
Merge pull request #89745 from johnbelamaric/kubeconform-cleanup
Various cleanup for the kubeconform command
2020-04-07 12:49:44 -07:00
Kubernetes Prow Robot
46b2891089
Merge pull request #89771 from dims/avoid-panic-when-reporting-error-in-conformance-tests
Avoid panic when reporting error in conformance test
2020-04-07 08:31:44 -07:00
wojtekt
101221be33 Stop relying on default conversion in node e2e tests 2020-04-07 17:19:41 +02:00
Abdullah Gharaibeh
a5d8172715 move nodeinfo type to framework pkg 2020-04-07 10:25:24 -04:00
Davanum Srinivas
f7e7621395
Avoid panic when reporting error in conformance test
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2020-04-07 08:37:02 -04:00
Kubernetes Prow Robot
a7f43a7203
Merge pull request #89421 from mm4tt/disabled_for_large_cluster
Remove the 'DisabledForLargeClusters' tags from LB network tests.
2020-04-07 05:03:44 -07:00
Patrick Ohly
48f8e398fb mock tests: remove redundant wrapping of error
The "error waiting for expected CSI calls" is redundant because it's
immediately followed by checking that error with:

   framework.ExpectNoError(err, "while waiting for all CSI calls")
2020-04-07 13:09:31 +02:00
Patrick Ohly
2550051f3b mock tests: add timeout
The for loop that waited for the signal to delete pod had no timeout,
so if something went wrong, it would wait for the entire test suite to
time out.
2020-04-07 13:09:31 +02:00
Patrick Ohly
f117849582 mock tests: ResourceExhausted error handling in external-provisioner
The mock driver gets instructed to return a ResourceExhausted error
for the first CreateVolume invocation via the storage class
parameters.

How this should be handled depends on the situation: for normal
volumes, we just want external-scheduler to retry. For late binding,
we want to reschedule the pod. It also depends on topology support.
2020-04-07 13:09:31 +02:00
Patrick Ohly
367a23e4d9 mock tests: remove redundant retrieval of log output
The code became obsolete with the introduction of parseMockLogs
because that will retrieve the log itself. For debugging of a running
test the normal pod output logging is sufficient.
2020-04-07 13:07:09 +02:00
Patrick Ohly
d06589e4b6 mock tests: less verbose log output checking
parseMockLogs is called potentially multiple times while waiting for
output. Dumping all CSI calls each time is quite verbose and
repetitive. To verify what the driver has done already, the normal
capturing of the container log can be used instead:

csi-mockplugin-0/mock@127.0.0.1: gRPCCall: {"Method":"/csi.v1.Node/NodePublishVolume","Request"...
2020-04-07 13:07:09 +02:00
Kubernetes Prow Robot
15bb54c2d2
Merge pull request #89041 from jsafrane/stage-error-tests
Add NodeStage error tests
2020-04-07 03:25:57 -07:00
Kubernetes Prow Robot
38f0a8bc74
Merge pull request #89652 from liggitt/relist-timeout
Fix client watch reestablishment handling of client-side timeouts
2020-04-07 01:15:44 -07:00
Kubernetes Prow Robot
4c81edbb41
Merge pull request #89905 from oomichi/DescribeIng
Move DescribeIng() into e2eingress
2020-04-06 20:29:44 -07:00
Kubernetes Prow Robot
667e028f38
Merge pull request #83378 from ii/promote-pod-replicaset-verification
Promote pod PreemptionExecutionPath verification - +3 conformance endpoint coverage
2020-04-06 19:09:43 -07:00
Kubernetes Prow Robot
ac40660952
Merge pull request #89556 from smarterclayton/remove_startup_script
test: Remove final user of startup-script image
2020-04-06 17:47:34 -07:00
Kubernetes Prow Robot
87966c39f1
Merge pull request #89890 from fedepaol/useagnhost
Use agnhost version 2.13
2020-04-06 15:42:32 -07:00
Kenichi Omichi
2f5f16004d Move DescribeIng() into e2eingress
The function is only for e2e ingress test, it is not necessary to
keep the function in e2e test core framework.
2020-04-06 20:01:55 +00:00
Kubernetes Prow Robot
64d75b3bad
Merge pull request #89787 from oomichi/NodeUpgrade
Move NodeUpgrade() into GCP e2e tests
2020-04-06 11:20:03 -07:00
Mayank Gaikwad
7aa94a6549 Promote e2e verifying service's session affinity behaviours 2020-04-06 21:42:22 +05:30
Andrew Sy Kim
2e56866c97 move apparmor annotation constants to k8s.io/api/core/v1
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2020-04-06 10:22:04 -04:00
Federico Paolinelli
7f73d7b6d1 Use agnhost version 2.13
Signed-off-by: Federico Paolinelli <fpaoline@redhat.com>
2020-04-06 10:00:26 -04:00
Patrick Ohly
981aae35dd mock tests: do not give up immediately for pod output errors
As seen in some test
runs (https://prow.k8s.io/view/gcs/kubernetes-jenkins/pr-logs/pull/89041),
retrieving output can fail with "the server rejected our request for
an unknown reason (get pods csi-mockplugin-0)".

If this truly an intermittent error, then the existing retry logic in
the callers can deal with this.
2020-04-06 15:03:44 +02:00
Jan Safranek
e23a26a380 Update to new javascript 2020-04-06 15:03:22 +02:00
Jan Safranek
a4f080861f Test NodeStage error cases
Especially related to "uncertain" global mounts. A large refactoring of CSI
mock tests were necessary:
- to be able to script the driver to return errors as required by the test
- to parse the CSI driver logs to check kubelet called the right CSI calls
2020-04-06 15:03:22 +02:00
Mateusz Matejczyk
0817af735c Remove the 'DisabledForLargeClusters' tags from ELB network tests.
We did some internal testing at Google and, with the recent improvements, we believe that it's safe to re-enable these LB tests for large clusters.

Ref. https://github.com/kubernetes/kubernetes/issues/56138
2020-04-06 14:36:56 +02:00
Kubernetes Prow Robot
c1f1b1bceb
Merge pull request #89848 from seans3/kubectl-apply-fix
Even with build error, kubectl apply should apply all valid resources
2020-04-05 18:57:46 -07:00
Caleb Woodbine
b50a710691 Fix formatting 2020-04-06 13:13:10 +12:00
Caleb Woodbine
8390de02d0 Fix formatting 2020-04-06 09:19:54 +12:00
Antonio Ojea
0748a75dfb
e2e TCP CLOSE test wait until pod is ready
the e2e TCP CLOSE_WAIT has to create a server pod and then, from
a client, it creates a connection but doesn't notify the server
when closing it, so it stays on the CLOSE_WAIT status until it
times out.

Current test use a simple timeout for waiting the that server pod
is ready, it's better to use WaitForPodsReady for waiting that
the pod is available to avoid problems on busy environments like
the CI.

It also deletes the pods once the tests finish to avoid leaking
pods.
2020-04-05 15:00:14 +02:00
Sean R. Sullivan
748ad74245 Even with build error, kubectl apply should apply all valid resources 2020-04-04 15:48:31 -07:00
Kubernetes Prow Robot
47f5d2923f
Merge pull request #89460 from wawa0210/change-os-label-windows
[Trival] beta.kubernetes.io/os deprecated since v1.14, are targeted for removal in v1.18
2020-04-04 08:36:00 -07:00
Prashant Sharma
3ff54eb10c
Fixes a flaky test, by adding kubectl wait for delete deployment in apply.sh (#89725)
* Add kubectl wait for delete deployment.

* Even better to wait for all pods deleted.

* get_object_assert -> wait_object_assert
2020-04-04 00:07:47 -07:00
Kubernetes Prow Robot
fb9c304766
Merge pull request #89830 from fedepaol/bumpagnhost
Bump agnhost version to 2.13, and bump up depending images.
2020-04-03 17:05:47 -07:00
Kubernetes Prow Robot
d911254deb
Merge pull request #89704 from liggitt/gnostic
github.com/googleapis/gnostic v0.4.1
2020-04-03 14:19:46 -07:00
Federico Paolinelli
e31f72e3a4 Bump agnhost version to 2.13, and bump up depending images.
Kitten / nautilus depend on agnhost.

Signed-off-by: Federico Paolinelli <fpaoline@redhat.com>
2020-04-03 13:00:23 -04:00
Patrick Ohly
b9c5c55c09 podlogs: avoid dumping a terminated container more than once
The original logic was that dumping can stop (for example, due to
loosing the connection to the apiserver) and then will start again as
long as the container exists. That it duplicates output on restarts
is better than skipping output that might not have been dumped yet.

But that logic then also dumped the output of containers that have
terminated multiple times:
- logging is started, dumps all output and stops because the
  container has terminated
- next check finds the container again, sees no active logger,
  repeats

This wasn't a problem for short-lived logging in a custom
namespace (the way how it is done for CSI drivers in Kubernetes E2E),
but other testsuites (like the one from PMEM-CSI) keep logging running
for the entire test suite duration: there duplicate output became a
problem when adding driver redeployment as part of the suite's run.

To avoid duplicated output for terminated containers, which containers
have been handled is now stored permanently. For terminated containers,
restarting of dumping is prevented. This comes with the risk that if
the previous dumping ended before capturing all output, some output
will get lost.

Marking the start and stop of the log was also useful when streaming
to a single writer and thus gets enabled.
2020-04-03 14:45:00 +02:00
Patrick Ohly
dbac2a369a podlogs: adapt to modified error message
Commit 8a495cb5e4 changed the spelling of the error message that we
want to ignore. In case of version skew we suppress both the old and
new spelling.
2020-04-03 14:43:52 +02:00
Kubernetes Prow Robot
15c3e492b3
Merge pull request #89795 from julianvmodesto/fix-diff
Ensure diff doesn't persist patches
2020-04-03 04:27:58 -07:00
Kubernetes Prow Robot
7bd48eb3f6
Merge pull request #89784 from oomichi/sshPort
Add common SSHPort on e2essh
2020-04-02 21:40:40 -07:00
Kubernetes Prow Robot
821ebaf0c6
Merge pull request #87448 from YuikoTakada/fix_81657_t_integ_dep
Fix static check failures in test/integration/deployment
2020-04-02 21:39:45 -07:00
Julian V. Modesto
f448c01651 Add kubectl diff + server-side dry-run to e2e 2020-04-02 20:54:53 -04:00
Julian V. Modesto
9c0320f1bf Ensure diff doesn't persist patches 2020-04-02 19:23:32 -04:00
Kenichi Omichi
c0d09c943d Move NodeUpgrade() into GCP e2e tests
These functions are for GCP e2e tests only, so this moves these
functions into the tests.
2020-04-02 22:13:50 +00:00
Kubernetes Prow Robot
aff467bbb4
Merge pull request #89777 from wojtek-t/fix_networking_tests_timeouts
Fix networking tests timeouts for large clusters
2020-04-02 12:43:20 -07:00
Kubernetes Prow Robot
e8a24cb7f4
Merge pull request #89703 from ahg-g/ahg-podinfo
Rename scheduler/nodeinfo pkg to scheduler/types
2020-04-02 12:43:11 -07:00
Kubernetes Prow Robot
4a897137b6
Merge pull request #89678 from tanjunchen/manifest
test/e2e/manifest:remove unused function
2020-04-02 10:50:38 -07:00
Kubernetes Prow Robot
6bad8cb126
Merge pull request #89676 from tanjunchen/move-func-20200331
test/e2e/framework move func logClusterImageSources to test/e2e/e2e.go
2020-04-02 10:50:25 -07:00
Kenichi Omichi
48fdb95a82 Add common SSHPort on e2essh
There were several sshPort values in e2e test packages because
we've migrated code from e2e framework by copying and pastting.
This adds common SSHPort on e2essh package to reduce such duplicated
code.
2020-04-02 17:41:49 +00:00
wojtekt
a20646ef8a Hide constants to force using functions instead 2020-04-02 17:19:41 +02:00
wojtekt
268b51d023 Cleanup and fix networking test timeouts for large clusters 2020-04-02 17:19:41 +02:00
wojtekt
4c5a963463 Cleanup timeouts for networking tests 2020-04-02 16:30:40 +02:00
Kubernetes Prow Robot
2fd8debe9b
Merge pull request #87926 from fedepaol/agnostsctp
Preliminary SCTP connectivity tests
2020-04-02 02:12:24 -07:00
Kubernetes Prow Robot
1130e8910f
Merge pull request #89198 from tanjunchen/cleanup20200318
e2e/framework: security/ and /service remove direct import /k8s.io/kubernetes/pkg/
2020-04-01 22:15:05 -07:00
Kubernetes Prow Robot
8d773421ee
Merge pull request #80973 from xiaoanyunfei/bugfix/orphan-volume
fix orphaned pod flexvolume  can not be cleaned up
2020-04-01 20:50:23 -07:00
Caleb Woodbine
31fea24c39 Promote Event resource lifecycle test 2020-04-02 15:36:49 +13:00
Kubernetes Prow Robot
205e2739bd
Merge pull request #87080 from aojea/tcpclose_lasttry
fix flakes on e2e test TCP CLOSE_WAIT timeout
2020-04-01 15:28:24 -07:00
John Belamaric
de5d8d612b Various cleanup for the kubeconform command 2020-04-01 14:39:52 -07:00
Kubernetes Prow Robot
ed00f42848
Merge pull request #89563 from oomichi/RestartControllerManager
Separate RestartControllerManager() as e2ekubesystem
2020-04-01 13:42:23 -07:00
Kubernetes Prow Robot
6e9bec8ee2
Merge pull request #89504 from tanjunchen/remove-dependency-001
test/e2e/framework: remove direct imports to k8s.io/kubernetes/pkg
2020-04-01 11:02:23 -07:00
Aaron Crickenberger
1a5f6906e0 e2e: don't use kubelet api to verify pod deletion
Conformance tests must not rely on the kubelet API in order to
pass. In this case, I think it's unnecessary to verify that a
kubelet observes the deletion within gracePeriod seconds. The
remaining checks in this test verify that pod deletion happens,
and that the pod is removed.
2020-04-01 08:28:27 -07:00
Aaron Crickenberger
cc7c862ce1 e2e: use apiserver view of pods on node instead of kubelet
Conformance tests must not rely on the kubelet API in order to
pass. SchedulerPredicates tests attempt to use the kubelet API
in their BeforeEach, some of which are tagged as Conformance.

Is there a compelling reason to use the kubelet's view of pods
for a given node instead of the apiserver's view of the pods?
2020-04-01 08:28:14 -07:00
Davanum Srinivas
d1c948acdc
Add support for listing conformance tests
we print yaml, so you can use yaml tools like `yq`:
```
e2e.test --list-conformance-tests | yq r - --collect *.testname
```

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2020-04-01 10:48:53 -04:00
Davanum Srinivas
b6a07b92fc
add conformance testdata/ and make it available from bindata
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2020-04-01 10:48:01 -04:00
Kubernetes Prow Robot
e39aa99c73
Merge pull request #89708 from spiffxp/update-conformance-instructions
Update conformance docs to reference correct bazel location of testdata
2020-04-01 00:21:27 -07:00
Kubernetes Prow Robot
53eb7cd733
Merge pull request #86858 from ii/create-event-test-to-ensure-creating-modifying-patching-deleting-and-listing
Create Event lifecycle test - +5 endpoint coverage
2020-03-31 21:31:27 -07:00
Jordan Liggitt
93c7b24562 github.com/googleapis/gnostic v0.4.1 2020-03-31 23:07:50 -04:00
tanjunchen
45b7736390 remove unused code 2020-04-01 10:50:59 +08:00
Abdullah Gharaibeh
ed3fe054df move scheduler nodeinfo to pkg/scheduler/types 2020-03-31 21:02:09 -04:00
Caleb Woodbine
ce97b49965 Update conformance metadata 2020-04-01 12:54:09 +13:00
Antonio Ojea
a89c2bdaf1
fix flakes on e2e test TCP CLOSE_WAIT timeout
it turns out that the e2e test was not 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-04-01 01:16:39 +02:00
Aaron Crickenberger
ec0d6cb693 Fix bazel location of testdata 2020-03-31 16:11:18 -07:00
Caleb Woodbine
2b325f07f4 Fix DeleteOptions value 2020-04-01 11:00:20 +13:00
Caleb Woodbine
a8592dd9d1 Fix sig in podtemplates.go 2020-04-01 10:45:20 +13:00
Kubernetes Prow Robot
1b7f5662e1
Merge pull request #89215 from k-toyoda-pi/use_expectnotequal_service
Use ExpectNotEqual in test/e2e/network/
2020-03-31 14:15:28 -07:00
Caleb Woodbine
916d96e428 Update test/e2e/framework/events/events.go
Co-Authored-By: Aaron Crickenberger <spiffxp@google.com>
2020-04-01 09:57:29 +13:00
Caleb Woodbine
63632118b7 Fix conformance testdata 2020-04-01 09:43:56 +13:00
Julian V. Modesto
efed958779 Support kubectl scale --dry-run=server|client 2020-03-31 16:19:52 -04:00
Kubernetes Prow Robot
b7faac459f
Merge pull request #89188 from tallclair/psp-tests
Move PSP tests behind a feature tag
2020-03-31 12:37:14 -07: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
Kubernetes Prow Robot
f6704fdd66
Merge pull request #89670 from seans3/apply-integration-tests
Fixes kubectl apply tests to run; updates broken tests
2020-03-30 23:22:40 -07:00
tanjunchen
59a183f6b3 test/e2e/framework move func logClusterImageSources to test/e2e/e2e.go 2020-03-31 11:34:24 +08:00
Kubernetes Prow Robot
238d2c8776
Merge pull request #89639 from gavinfish/kubelet-metrics
e2e/framework: remove direct imports to /pkg/kubelet/...
2020-03-30 20:10:40 -07:00
tanjunchen
6003ff44e8 e2e/framework:security/ remove direct import /k8s.io/kubernetes/pkg/ 2020-03-31 09:54:43 +08:00
gavinfish
e50afd00e9 e2e/framework: remove direct imports to /pkg/kubelet/... 2020-03-31 09:31:54 +08: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
Kubernetes Prow Robot
740a7b1233
Merge pull request #89235 from oomichi/issue/89185
Enable import-boss check for integration test
2020-03-30 17:08:40 -07:00
Sean R. Sullivan
4ca2d5a9da Fixes kubectl apply tests to run; updates broken tests 2020-03-30 17:04:10 -07:00
Jordan Liggitt
343c1e7636 Fix client watch reestablishment handling of client-side timeouts 2020-03-30 17:48:00 -04:00
Kubernetes Prow Robot
184fe990aa
Merge pull request #89592 from dcbw/e2e-np-previous-logs
e2e/network: get previous pod logs on NetworkPolicy test failure
2020-03-30 14:20:40 -07:00
Kenichi Omichi
03c7bdcacc Enable import-boss check for integration test
Integration tests imported e2e test code and the dependency made two drawbacks:

- Hard to move test/e2e/framework into staging (#74352)
- Need to run integration tests always even if PRs are just changing e2e test code

This enables import-boss check for blocking such dependency.
2020-03-30 21:09:15 +00:00
Kubernetes Prow Robot
9df42c0342
Merge pull request #89641 from tanjunchen/remove-dependeny-20200330
test/e2e/framework/kubelet/:remove the direct dependency to k8s.io/kubernetes/pkg
2020-03-30 08:22:37 -07:00
Kubernetes Prow Robot
8d257ad315
Merge pull request #88118 from pohly/wait-for-persistent-volume-deleted-error
e2e/storage: check result of WaitForPersistentVolumeDeleted
2020-03-30 07:01:55 -07:00
tanjunchen
72558add6a test/e2e/framework/kubelet/: remove direct dependency k8s.io/kubernetes/pkg/kubelet/dockershim/metrics 2020-03-30 13:36:58 +08:00
Kubernetes Prow Robot
e03c7756c7
Merge pull request #89213 from tanjunchen/cleanup20200318-003
e2e/framework : pods.go remove direct imports to k8s.io/kubernetes/pkg/
2020-03-28 11:27:54 -07:00
Kubernetes Prow Robot
a75ee745fb
Merge pull request #89576 from tanjunchen/add-me-reviewer
add @tanjunchen as test/reviewer
2020-03-28 05:07:52 -07:00
Kubernetes Prow Robot
d73907fc25
Merge pull request #89380 from alculquicondor/perf-spreading
Add perf test case for Topology Spreading
2020-03-28 02:43:52 -07:00
Kubernetes Prow Robot
e3eb0532da
Merge pull request #89568 from SataQiu/staging-e2e-framework-20200327
e2e/framework: remove direct import to pkg/kubelet/util/format
2020-03-27 17:12:15 -07:00
Kubernetes Prow Robot
2d4253077d
Merge pull request #89539 from seans3/kubectl-apply-fix
Fixes problem where kubectl apply stops after first error
2020-03-27 17:11:53 -07:00
Kubernetes Prow Robot
4e9dd8fd36
Merge pull request #89454 from gavinfish/import-aliases
Update .import-aliases for e2e test framework
2020-03-27 14:35:54 -07:00
Kubernetes Prow Robot
5317a3160c
Merge pull request #89106 from chendave/refactor
Decouple yaml based integration test from legacy test
2020-03-27 12:07:53 -07:00
Dan Williams
fe74d08e60 e2e/network: get previous pod logs on NetworkPolicy test failure
Sometimes the pod has already been cleaned up by the time the test
tried to grab the logs.

Mar 27 16:19:38.066: INFO: Waiting for client-a-jt4tf to complete.
Mar 27 16:19:38.066: INFO: Waiting up to 5m0s for pod "client-a-jt4tf" in namespace "e2e-network-policy-c-9007" to be "success or failure"
Mar 27 16:19:38.072: INFO: Pod "client-a-jt4tf": Phase="Pending", Reason="", readiness=false. Elapsed: 6.270302ms
Mar 27 16:19:40.078: INFO: Pod "client-a-jt4tf": Phase="Pending", Reason="", readiness=false. Elapsed: 2.01233019s
Mar 27 16:19:42.086: INFO: Pod "client-a-jt4tf": Phase="Succeeded", Reason="", readiness=false. Elapsed: 4.020186873s
STEP: Saw pod success
Mar 27 16:19:42.086: INFO: Pod "client-a-jt4tf" satisfied condition "success or failure"
Mar 27 16:19:42.093: FAIL: Error getting container logs: the server could not find the requested resource (get pods client-a-jt4tf)

Full Stack Trace
github.com/openshift/origin/vendor/k8s.io/kubernetes/test/e2e/network.checkNoConnectivity(0xc00104adc0, 0xc0016b82c0, 0xc001666400, 0xc000c32000)
    /go/src/github.com/openshift/origin/_output/local/go/src/github.com/openshift/origin/vendor/k8s.io/kubernetes/test/e2e/network/network_policy.go:1457 +0x2a0
github.com/openshift/origin/vendor/k8s.io/kubernetes/test/e2e/network.testCannotConnect(0xc00104adc0, 0xc0016b82c0, 0x55587e9, 0x8, 0xc000c32000, 0x50)
    /go/src/github.com/openshift/origin/_output/local/go/src/github.com/openshift/origin/vendor/k8s.io/kubernetes/test/e2e/network/network_policy.go:1406 +0x1fc
github.com/openshift/origin/vendor/k8s.io/kubernetes/test/e2e/network.glob..func13.2.7()
    /go/src/github.com/openshift/origin/_output/local/go/src/github.com/openshift/origin/vendor/k8s.io/kubernetes/test/e2e/network/network_policy.go:285 +0x883
github.com/openshift/origin/pkg/test/ginkgo.(*TestOptions).Run(0xc001e47830, 0xc001e50b70, 0x1, 0x1, 0x0, 0x0)
    /go/src/github.com/openshift/origin/_output/local/go/src/github.com/openshift/origin/pkg/test/ginkgo/cmd_runtest.go:59 +0x41f
main.newRunTestCommand.func1(0xc00121b900, 0xc001e50b70, 0x1, 0x1, 0x0, 0x0)
    /go/src/github.com/openshift/origin/_output/local/go/src/github.com/openshift/origin/cmd/openshift-tests/openshift-tests.go:238 +0x15d
github.com/openshift/origin/vendor/github.com/spf13/cobra.(*Command).execute(0xc00121b900, 0xc001e50b30, 0x1, 0x1, 0xc00121b900, 0xc001e50b30)
    /go/src/github.com/openshift/origin/_output/local/go/src/github.com/openshift/origin/vendor/github.com/spf13/cobra/command.go:826 +0x460
github.com/openshift/origin/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0xc00121b180, 0x0, 0x60d2d00, 0x9887ec8)
    /go/src/github.com/openshift/origin/_output/local/go/src/github.com/openshift/origin/vendor/github.com/spf13/cobra/command.go:914 +0x2fb
github.com/openshift/origin/vendor/github.com/spf13/cobra.(*Command).Execute(...)
    /go/src/github.com/openshift/origin/_output/local/go/src/github.com/openshift/origin/vendor/github.com/spf13/cobra/command.go:864
main.main.func1(0xc00121b180, 0x0, 0x0)
    /go/src/github.com/openshift/origin/_output/local/go/src/github.com/openshift/origin/cmd/openshift-tests/openshift-tests.go:59 +0x9c
main.main()
    /go/src/github.com/openshift/origin/_output/local/go/src/github.com/openshift/origin/cmd/openshift-tests/openshift-tests.go:60 +0x341
STEP: Cleaning up the pod client-a-jt4tf
STEP: Cleaning up the policy.
2020-03-27 13:47:28 -05:00
tanjunchen
94db87234b add tanjunchen as /test reviewer 2020-03-27 22:56:21 +08:00
SataQiu
b748c702d9 e2e/framework: remove direct import to pkg/kubelet/util/format 2020-03-27 17:19:00 +08:00
Sean R. Sullivan
1083c0fe05 Adds integration test for apply failures when applying multiple resources 2020-03-26 22:33:04 -07:00
Kenichi Omichi
42bb845f40 Separate RestartControllerManager() as e2ekubesystem
RestartControllerManager() is kube-controller specific function
and it is better to separate the function as subpackage of e2e
test framework.
In addition, the function made invalid dependency into e2essh.
So this separates the function into e2ekubesystem subpackage.
2020-03-27 03:52:17 +00:00
Clayton Coleman
acb242f99c
test: Remove final user of startup-script image
It can be replaced with nc in busybox like other tests.
2020-03-26 23:51:55 -04:00
tanjunchen
27e133afe2 e2e/framework : pods.go remove direct imports to k8s.io/kubernetes/pkg/ 2020-03-27 11:42:22 +08:00
Kubernetes Prow Robot
c0526c60b3
Merge pull request #89216 from gavinfish/inte-benchmark-e2e
Remove dependency for benchmark integration tests from e2e fw
2020-03-26 18:46:23 -07:00
Dave Chen
49283364bf Decouple yaml based integration test from legacy test
- Move utilities or constants out so that both of them should be able
to run independently.
- Rename the legacy test so that it can eventually be deleted when the
perf dash changes is done
2020-03-27 08:45:59 +08:00
Kubernetes Prow Robot
9dd55b0555
Merge pull request #89509 from tanjunchen/remove-dependency-003
test/e2e/framework /service and /pv:remove direct dependency to k8s.io/kubernetes/pkg
2020-03-26 17:24:36 -07:00
Kubernetes Prow Robot
123691bd93
Merge pull request #89231 from andrewsykim/e2e-framework-ssh
e2e/framework: implement ssh exec internally
2020-03-26 17:24:23 -07:00
Kubernetes Prow Robot
708dd2ea7a
Merge pull request #89308 from zshihang/sync
sync api/v1/pod/util with api/pod/util
2020-03-26 14:10:49 -07:00
Caleb Woodbine
02f983d8c8 Update metadata 2020-03-27 08:59:33 +13:00
Aldo Culquicondor
9b2ff544ed Fix pod affinity performance test configuration
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2020-03-26 15:52:44 -04:00
Kubernetes Prow Robot
0dd3753b92
Merge pull request #89393 from Jefftree/bdd-linkage
Add CLI script for listing untested conformance behaviors
2020-03-26 12:48:36 -07:00
Kubernetes Prow Robot
f022274d8c
Merge pull request #88778 from ii/create-endpoints-resource-lifecycle-test
Create Endpoints resource lifecycle test - +5 endpoint coverage
2020-03-26 11:13:50 -07:00
tanjunchen
9b9b27d768 test/e2e/framework /service and /pv:remove direct dependency to k8s.io/kubernetes/pkg/ 2020-03-27 01:11:13 +08:00
tanjunchen
d7e787adce test/e2e/framework: remove direct dependency to k8s.io/kubernetes/pkg/controller 2020-03-26 23:21:22 +08:00
Patrick Ohly
c9004e704d e2e/storage: check result of WaitForPersistentVolumeDeleted
When deleting fails, the tests should be considered as failed,
too. Ignoring the error caused a wrong return code in the CSI mock
driver to go unnoticed (see
https://github.com/kubernetes-csi/csi-test/pull/250). The v3.1.0
release of the CSI mock driver fixes that.
2020-03-26 13:22:04 +01:00
Kubernetes Prow Robot
f8e62e33c9
Merge pull request #89502 from SataQiu/staging-e2e-20200326
e2e/framework: remove direct imports to pkg/util/taints
2020-03-26 03:34:25 -07:00
Kubernetes Prow Robot
295b53f7b4
Merge pull request #89214 from jingyih/update_etcd_server_3p4p4
Update default etcd server to 3.4.4 in k8s v1.19
2020-03-26 01:14:24 -07:00
SataQiu
d294e672c1 e2e/framework: remove direct imports to pkg/util/taints 2020-03-26 14:43:23 +08:00
Jefftree
074a676dbc kubetestgen -> kubeconform 2020-03-25 14:37:09 -07:00
Jefftree
77edd42619 Add CLI script for listing untested conformance behaviors 2020-03-25 14:37:09 -07:00
Kenichi Omichi
7398c83afd Move RestartApiserver() into e2e/network
The function is called from e2e/network test only, so this moves
the function into the test for reducing e2e/framework/util.go code
and removing invalid dependency on e2e test framework.
2020-03-25 20:23:25 +00:00
Kubernetes Prow Robot
a291908548
Merge pull request #89462 from wawa0210/change-sriovdp-ds-arch-label
beta.kubernetes.io/arch is already deprecated since v1.14, are targeted for removal in v1.18
2020-03-25 11:20:19 -07:00
Jie Shen
68a4b7d621
Move assertCleanup() to e2e kubectl (#89452)
* Move assertCleanup() to e2e kubectl

* Update test/e2e/kubectl/kubectl.go

Co-Authored-By: SataQiu <1527062125@qq.com>

Co-authored-by: SataQiu <1527062125@qq.com>
2020-03-25 11:20:06 -07:00
Aldo Culquicondor
671cd33986 Add perf test cases for topology spreading
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2020-03-25 10:06:09 -04:00
Aldo Culquicondor
c9314dde59 Add support for multiple label values in test cases
They are assigned in a round robin fashion

Signed-off-by: Aldo Culquicondor <acondor@google.com>
2020-03-25 10:06:09 -04:00
Kubernetes Prow Robot
3afbcad669
Merge pull request #89436 from oomichi/RestartKubelet
Move RestartKubelet() into e2e/storage/vsphere
2020-03-25 02:03:17 -07:00
Kubernetes Prow Robot
7e7c4d1021
Merge pull request #89272 from alculquicondor/perf-mixed-pods
Add multiple init pods to scheduler perf test cases
2020-03-25 00:29:02 -07:00
张潇
a6d0f8e3dc
beta.kubernetes.io/arch is already deprecated 2020-03-25 13:34:43 +08:00
张潇
0588958fd3
beta.kubernetes.io/os is already deprecated 2020-03-25 12:57:06 +08:00
drfish
dfab6b637f Update .import-aliases for e2e test framework 2020-03-25 11:40:02 +08:00
Kubernetes Prow Robot
aa4f8e9a39
Merge pull request #89405 from tanjunchen/move-websocket-subpackage-websocket
test/e2e/framework:move OpenWebSocketForURL to subpackage(new) websocket
2020-03-24 20:09:02 -07:00
Caleb Woodbine
9aa3c23ad3 Update DynamicClient fetch of Pod statement 2020-03-25 15:10:28 +13:00
Shihang Zhang
b56da85a77 sync api/v1/pod/util with api/pod/util and remove DefaultContainers 2020-03-24 16:42:32 -07:00
Kenichi Omichi
2158989d6f Move WaitForPersistentVolumeDeleted() to e2epv
The function is for persistent volumes and it doesn't have any
reason why it stays in core test framework. So this moves the
function into e2epv package for reducing e2e/framework/util.go
code.
2020-03-24 22:54:07 +00:00
Kubernetes Prow Robot
91766b86a9
Merge pull request #89387 from oomichi/NewAgnhostPod
Move NewAgnhostPod() to e2e/network
2020-03-24 15:27:53 -07:00
Kubernetes Prow Robot
dfe83809f3
Merge pull request #89379 from derekwaynecarr/increase-graceperiod-timeout
deflake grace period for pod deletion in node e2e
2020-03-24 15:27:44 -07:00
Kubernetes Prow Robot
89dfebb214
Merge pull request #89359 from gongguan/process
eviction by process number
2020-03-24 15:27:25 -07:00
Kubernetes Prow Robot
f898f45b20
Merge pull request #89070 from alculquicondor/static-partitioning
Add chunk size option to ParallelizeUntil
2020-03-24 15:27:02 -07:00
Caleb Woodbine
dacd32887f Update DeleteOptions 2020-03-25 11:24:14 +13:00
Caleb Woodbine
f64d348505 Update DeleteOptions 2020-03-25 11:22:31 +13:00
Caleb Woodbine
58c532b968 Update name of watchEvent and comment on timeout for watch 2020-03-25 11:05:40 +13:00
Caleb Woodbine
772eacadc1 Update naming of watchEvents 2020-03-25 10:50:03 +13:00
Caleb Woodbine
cdcff31585 Update conformance metadata release version to v1.19 2020-03-25 09:35:24 +13:00
Caleb Woodbine
fce812b502 Update conformance metadata to have release version v1.19 2020-03-25 09:31:04 +13:00
Kenichi Omichi
23066215f5 Move RestartKubelet() into e2e/storage/vsphere
Since 4e7c2f638d the function has been
called from storage vsphere e2e test only. This moves the function
into the test file for
- Reducing test/e2e/framework/util.go which is one of huge files
- Remove invalid dependency on e2e test framework
- Remove unnecessary TODO
2020-03-24 17:42:58 +00:00
Kubernetes Prow Robot
bf4cc5b3d9
Merge pull request #89408 from gavinfish/delete-cleanup
Delete Cleanup method in e2e util
2020-03-24 10:42:58 -07:00
tanjunchen
aa9d06d79b test/e2e/framework:move OpenWebSocketForURL to subpackage(new) websocket 2020-03-24 22:54:35 +08:00
Aldo Culquicondor
b01e3dc394 Add transient dependency to test/e2e/framework/.import-restrictions
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2020-03-24 10:37:50 -04:00
Aldo Culquicondor
e902e70d0d Use sqrt(n) chunk size in pod affinity and core scheduler 2020-03-24 10:29:59 -04: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
Kenichi Omichi
5c77461733 Move NewAgnhostPod() to e2e/network
because the function is called in e2e/network tests only.
2020-03-24 05:46:49 +00:00
Kubernetes Prow Robot
07a7c4902e
Merge pull request #89388 from oomichi/NewTestPod
Move NewTestPod() to e2e/scheduling
2020-03-23 21:57:00 -07:00
Kubernetes Prow Robot
cc06d2a2be
Merge pull request #89243 from SataQiu/staging-e2e-framework-20200319
e2e/framework: remove direct imports to /pkg/controller/nodelifecycle
2020-03-23 21:56:47 -07:00
gavinfish
6ea15783e9 Delete Cleanup method in e2e util 2020-03-24 11:44:09 +08:00
Kubernetes Prow Robot
a04c098d1d
Merge pull request #89386 from oomichi/GetFileModeRegex
Move GetFileModeRegex to e2e/common
2020-03-23 20:31:28 -07:00
Kubernetes Prow Robot
4738ba5b49
Merge pull request #89335 from gavinfish/rename-waitforpodcondition
Rename waitForPodCondition to improve code readability
2020-03-23 20:31:01 -07:00
Kubernetes Prow Robot
cadbfd806b
Merge pull request #89275 from justaugustus/go1139
Update to Golang 1.13.9
2020-03-23 20:30:48 -07:00
louisgong
0efb70c0a2 eviction by process number 2020-03-24 09:25:04 +08:00
Kubernetes Prow Robot
2ab6357df0
Merge pull request #88528 from ingvagabund/doc-how-to-extend-scheduler-perf-tests
[doc] scheduler_perf: describe suite configuration in more detail
2020-03-23 17:10:47 -07:00
Kenichi Omichi
d1361d10fe Move NewTestPod() to e2e/scheduling
because the function is called in e2e/scheduling tests.
2020-03-23 23:56:09 +00:00
Kenichi Omichi
5f81f5b96c Move GetFileModeRegex to e2e/common
because the function is used at e2e/common tests only.
2020-03-23 23:23:54 +00:00
Kubernetes Prow Robot
1da4f75e24
Merge pull request #85128 from kevtaylor/kep/VolumeSubpathExpansion-Conformance
Promote VolumeSubpathEnvExpansion e2e tests to Conformance
2020-03-23 15:32:47 -07:00
Stephen Augustus
b6179ac7b9 deps: Update to Golang 1.13.9
Signed-off-by: Stephen Augustus <saugustus@vmware.com>
Co-authored-by: Jeff Grafton <jgrafton@google.com>
2020-03-23 17:10:03 -04:00
Derek Carr
02e4ce6835 deflake grace period for pod deletion in node e2e 2020-03-23 15:23:54 -04:00
Aldo Culquicondor
5adc4c41e3 Add multiple init pods to perf test cases
Add test case with several init pods with affinity or antiaffinity.

Signed-off-by: Aldo Culquicondor <acondor@google.com>
2020-03-23 14:55:12 -04:00
Aldo Culquicondor
0e66e56e70 Use b.Fatal instead of klog.Fatal in scheduler perf tests
The test tool doesn't work properly with klog.Fatal

Signed-off-by: Aldo Culquicondor <acondor@google.com>
2020-03-23 14:53:15 -04:00
Kenichi Omichi
d191660c25 Use e2epod.WaitForPodTerminatedInNamespace 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 WaitForPodTerminated() with the e2epod function.
2020-03-22 17:43:33 +00:00
tanjunchen
bed22fbb44 WaitForPodReady is simply wrapper functions for e2epod package,
and they made an invalid dependency to sub e2e framework from the core framework.

So we can use e2epod.WaitTimeoutForPodReadyInNamespace to remove invalid dependency.

The main purpose of this pr is to handle the framework core package dependency subpackage pod.
2020-03-22 23:08:52 +08:00
Kubernetes Prow Robot
d23310a40e
Merge pull request #89324 from tanjunchen/remove-invalid-dependency-waitForPod-002
use e2epod.WaitForPodRunningInNamespaceSlow directly
2020-03-22 00:36:44 -07:00
Kubernetes Prow Robot
c3d483bf76
Merge pull request #89323 from tanjunchen/remove-invalid-dependency-waitForPod-001
use e2epod.WaitForPodNotFoundInNamespace directly
2020-03-21 21:58:43 -07:00
drfish
9d7dc80b48 Rename waitForPodCondition in lifecycle_test.go to improve code readability 2020-03-22 11:53:51 +08:00
Kubernetes Prow Robot
fb9810c341
Merge pull request #89210 from gavinfish/inte-node-e2e
Remove dependency for node integration tests from e2e fw
2020-03-21 20:44:44 -07:00
tanjunchen
aa52bfe4d6 use e2epod.WaitForPodRunningInNamespaceSlow directly 2020-03-21 15:51:49 +08:00
tanjunchen
d18e6569e0 use e2epod.WaitForPodNotFoundInNamespace directly 2020-03-21 15:11:40 +08:00
Kubernetes Prow Robot
53e86a814d
Merge pull request #89204 from tanjunchen/cleanup20200318-002
test/framework: psp.go skipper.go remove direct import /k8s.io/kubernetes/pkg
2020-03-20 23:08:44 -07:00
SataQiu
799cdbf7b0 e2e/framework: remove direct imports to /pkg/controller/nodelifecycle 2020-03-21 11:08:57 +08:00
Kubernetes Prow Robot
d3b2199b2f
Merge pull request #89321 from oomichi/WaitForPodNoLongerRunning
Use e2epod.WaitForPodNoLongerRunningInNamespace directly
2020-03-20 20:00:53 -07:00
Kubernetes Prow Robot
bf4bc4d883
Merge pull request #89283 from SataQiu/staging-e2e-framework-20200320
e2e/framework: remove direct imports to /pkg/client/conditions
2020-03-20 20:00:44 -07: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
Kenichi Omichi
12ff8f2861 Use e2epod.WaitForPodNoLongerRunningInNamespace 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 WaitForPodNoLongerRunning() with the e2epod function.
2020-03-20 21:05:01 +00:00
Kubernetes Prow Robot
332cab4f3b
Merge pull request #89223 from gavinfish/inte-framework-e2e
Remove dependency for integration framework tests from e2e fw
2020-03-20 14:02:23 -07:00
Kubernetes Prow Robot
8a7c682c06
Merge pull request #88949 from gavinfish/remove-node
Remove framework.go's dependency on e2e node sub fw
2020-03-20 14:02:09 -07:00
Kubernetes Prow Robot
ede025af1b
Merge pull request #89232 from apelisse/test-apply-status
Use discovery to test apply all status
2020-03-20 03:52:36 -07: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
990a3802f6
Merge pull request #89180 from oomichi/LogOutput
Move podlogs into e2e/storage/testsuites
2020-03-19 20:31:22 -07:00
Kubernetes Prow Robot
0fe5157009
Merge pull request #88923 from Jefftree/conformance-name
Fix Testname missing in conformance.yaml
2020-03-19 20:30:50 -07:00
tanjunchen
a3d802cb68 test/framework: psp.go skipper.go remove direct import /k8s.io/kubernetes/pkg 2020-03-20 10:13:44 +08:00
drfish
f5450543e0 Remove framework.go's dependency on e2e node sub fw 2020-03-20 10:01:51 +08: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
Antoine Pelisse
94cb60e0e8 Use discovery to test apply all status 2020-03-19 09:58:46 -07:00
Andrew Sy Kim
f26b8372f8 e2e/framework: implement ssh exec internally
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2020-03-19 11:43:04 -04: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
0f336e09e7
Merge pull request #89236 from liggitt/fix-gc-test
Restore orphaning check in gc test
2020-03-19 06:07:14 -07:00
Kubernetes Prow Robot
6d67bb3c02
Merge pull request #89228 from andrewsykim/e2e-framework-v1-helper
e2e/framework: remove import to pkg/apis/core/v1/helper
2020-03-19 06:06:56 -07:00
Kubernetes Prow Robot
1115ac231a
Merge pull request #89227 from adelina-t/serial_windows_test
Label Windows test as Serial.
2020-03-19 06:06:46 -07:00
Kubernetes Prow Robot
f01e0b2f70
Merge pull request #89192 from andrewsykim/e2e-framework-ports
e2e/framework: remove imports to pkg/master/ports
2020-03-19 06:06:37 -07:00
Kubernetes Prow Robot
b8a729b899
Merge pull request #89191 from misterikkit/vsphere-panic
Fix nil panic in vsphere tests
2020-03-19 06:06:29 -07:00
Kubernetes Prow Robot
2db51c85b9
Merge pull request #89187 from andrewsykim/e2e-framework-jobs
e2e/framework: remove imports to pkg/controller/job
2020-03-19 06:06:20 -07:00
Kubernetes Prow Robot
71839b58e3
Merge pull request #89186 from andrewsykim/e2e-framework-deployment-util
e2e/framework: remove direct imports to pkg/controller/deployment/util
2020-03-19 06:06:10 -07:00
Kubernetes Prow Robot
9bee0747a9
Merge pull request #89183 from andrewsykim/e2e-framework-storage-class
e2e/framework: remove direct import to pkg/apis/v1/storage/util
2020-03-19 06:06:00 -07:00
Odin Ugedal
a233b9aab0
Add verbose message when more than one kubelet is running 2020-03-19 13:08:08 +01:00
Odin Ugedal
8b6160a367
Add support for stopping kubelet in node-e2e
This makes it possible to stop the kubelet, do some work, and then
start it again.
2020-03-19 13:08:08 +01:00
Odin Ugedal
2830827442
Add support for removing unsupported huge page sizes
When kubelet is restarted, it will now remove the resources for huge
page sizes no longer supported. This is required when:
- node disables huge pages
- changing the default huge page size in older versions of linux
(because it will then only support the newly set default).
- Software updates that change what sizes are supported (eg. by changing
boot parameters).
2020-03-19 13:08:08 +01:00
Kubernetes Prow Robot
1aa64b25a5
Merge pull request #89139 from chendave/flags
Respect flags of testing package
2020-03-18 22:24:48 -07:00
Kubernetes Prow Robot
de931d569e
Merge pull request #89105 from andyzhangx/upgrade-40.2
Upgrade to azure-sdk v40.2.0
2020-03-18 22:24:29 -07:00
Kubernetes Prow Robot
f899ad704a
Merge pull request #89069 from enj/enj/i/drop_password_file
Remove support for basic authentication
2020-03-18 22:24:20 -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
Kubernetes Prow Robot
df989a45f0
Merge pull request #89011 from oomichi/move-GetClusterZones
Move GetClusterZones() to e2enode
2020-03-18 22:23:43 -07:00
Kubernetes Prow Robot
e6e6f7d4dc
Merge pull request #89010 from oomichi/remove-E2ETestNodePreparer
Remove unused E2ETestNodePreparer and functions
2020-03-18 22:23:33 -07:00
Kubernetes Prow Robot
b52f703d2c
Merge pull request #88941 from dims/add-version-command-line-parameter
Add version flag to e2e.test
2020-03-18 22:23:11 -07:00
drfish
437765db22 Remove dependency for integration framework tests from e2e fw 2020-03-19 10:18:59 +08:00
Jordan Liggitt
69eb837e3b Restore orphaning check in gc test 2020-03-18 18:04:19 -04:00
Jefftree
40d80195f2 Only check testname for missing 2020-03-18 14:54:06 -07:00
Jefftree
90cd496e72 Include testname 2020-03-18 14:54:06 -07:00
Kenichi Omichi
017eaf170a Move podlogs into e2e/storage/podlogs
The e2e framework package podlogs is used in e2e/storage/testsuites
only. In addition we considered we should have a single e2e framework
package for pod without the podlogs. So this moves the podlogs into
e2e/storage/podlogs for the e2e storage tests.
2020-03-18 17:44:12 +00:00
Andrew Sy Kim
145c1c123c e2e/framework: remove import to pkg/apis/core/v1/helper
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2020-03-18 13:18:39 -04:00
Adelina Tuvenie
d7995f3260 Label Windows test as Serial.
Windows test "[sig-windows] [Feature:Windows] Cpu Resources Container
limits should not be exceeded after waiting 2 minutes" should be run
serially to prevent flakyness.
2020-03-18 17:50:36 +01:00
drfish
af1e1f4435 Remove dependency for node integration tests from e2e fw 2020-03-18 20:27:15 +08:00
drfish
6cad278a8c Remove dependency for benchmark integration tests from e2e fw 2020-03-18 15:57:37 +08:00
toyoda
7499d80fd8 Use ExpectNotEqual in test/e2e/network/ 2020-03-18 16:30:56 +09:00
jingyih
f9e0e4c6b4 Update default etcd server to 3.4.4 2020-03-18 00:27:46 -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
b88ea8d2bb
Merge pull request #88930 from oomichi/Failf
Replace ExpectNoError(fmt.Errorf(..)) with funcs
2020-03-17 19:28:20 -07:00
Kubernetes Prow Robot
ed4c2dbf92
Merge pull request #88893 from kinvolk/invidian/kube-apiserver-so-reuseport
kube-apiserver: use SO_REUSEPORT when creating listener
2020-03-17 19:28:11 -07:00
Kubernetes Prow Robot
d88571833e
Merge pull request #88830 from msau42/update-pd
Update version of pd csi driver
2020-03-17 19:27:27 -07:00
Kubernetes Prow Robot
e5f1048945
Merge pull request #88805 from aleksandra-malinowska/gce-multizone-tests
ignore gcloud warning in test framework
2020-03-17 19:26:41 -07:00
Kubernetes Prow Robot
fbdda693b4
Merge pull request #88796 from tanjunchen/remove-TODO-20200304
test/e2e/framework:remove TODO
2020-03-17 19:26:27 -07:00
Kubernetes Prow Robot
7cadf86d75
Merge pull request #88770 from Jefftree/bdd-capture-behaviors
Capture conformance Behaviors in walk.go
2020-03-17 16:22:04 -07:00
Kubernetes Prow Robot
359f39c215
Merge pull request #88531 from claudiubelu/tests/configurable-private-image-pull
tests: Adds configurable docker conf for test
2020-03-17 16:21:19 -07: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
Kubernetes Prow Robot
44c103c40d
Merge pull request #87644 from gavinfish/remove_sub_resource
Move resource methods from e2e core util to e2e resource fw
2020-03-17 16:19:39 -07:00
Andrew Sy Kim
c1e2f147ce e2e/frameworK: refactor GetPodsForDeployment to not depend on
pkg/controller/deployment/utils

Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2020-03-17 18:38:52 -04:00
Andrew Sy Kim
f0f6c6fc81 e2e/framework: remove imports to pkg/master/ports
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2020-03-17 17:42:43 -04:00
Jonathan Basseri
7f17ef28a8 Fix nil panic in vsphere tests
During test cleanup, we iterate over nodes.Items, but if test fails
during setup, nodes may be nil.
2020-03-17 14:00:10 -07:00
Tim Allclair
acf38c5f8a Move PSP tests behind a feature tag 2020-03-17 13:58:34 -07:00
Andrew Sy Kim
6c7bb454d5 e2e/framework: remove imports to pkg/controller/job
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2020-03-17 16:55:56 -04:00
Andrew Sy Kim
d4d3f3dda8 e2e/framework: copied constants for default storage class annotations should be unexported
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2020-03-17 16:40:23 -04:00
Andrew Sy Kim
60cb0d3cc1 e2e/framework: remove direct import to pkg/apis/v1/storage/util
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2020-03-17 16:07:42 -04: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
Dave Chen
eedfb593a9 Respect flags of testing package
`go test -c -o "perf.test"`
`./perf.test --help` doesn't understand "help" flag without
calling `flag.Parse` explicitly.
2020-03-16 10:24:15 +08:00
Claudiu Belu
7389385a20 test images: Adds various fixes and cleanups to the image building process
Adds splitOsArch function to image-util.sh, which makes the script DRY-er.

When building a Windows test image, if REMOTE_DOCKER_URL is not set, skip the rest of the
building process for that image, which will save some time (no need to build binaries).

If a REMOTE_DOCKER_URL was not set for a particular OS version, exclude that image from the
manifest list. This fixes an issue where, if REMOTE_DOCKER_URL was not set for Windows Server 1909,
the Windows were completely excluded from the manifest list, including for Windows Server 1809
and 1903 which could have been built and pushed.

Sets "test-webserver" as the default CMD for kitten and nautilus. Since they are now based on
agnhost, they should be set to run test-webserver to maintain previous behaviour.
2020-03-14 15:18:10 -07:00
Antonio Ojea
2a095f434b e2e wait until controller manager pod ready 2020-03-14 12:17:25 +01:00
Mateusz Gozdek
dfe1f968ac
kube-apiserver: use SO_REUSEPORT when creating listener on Unix systems
So multiple instances of kube-apiserver can bind on the same address and
port, to provide seamless upgrades.

Signed-off-by: Mateusz Gozdek <mateusz@kinvolk.io>
2020-03-13 23:55:57 +01:00
andyzhangx
da20cc202f chore: upgrade to azure-sdk v40.2.0
chore: use autorest v0.9.6

fix go module issue

fix go module error
2020-03-13 11:51:25 +00:00
Antonio Ojea
334d46eed5
fix logging on e2e metrics grabber test 2020-03-13 09:48:39 +01:00
Kevin Taylor
468b3b40d8 Promote VolumeSubpathExpansion e2e tests to Conformance 2020-03-12 20:05:28 +00:00
Kubernetes Prow Robot
5bf4a4ca2f
Merge pull request #89078 from liggitt/kubectl-table-test
Remove kubectl column output test
2020-03-12 02:08:38 -07:00
Somtochi Onyekwere
ee41c6b1a4 Refactors MakeSecPods function 2020-03-12 07:14:08 +01:00
Jordan Liggitt
a35ca04dd6 Remove kubectl column output test 2020-03-11 22:59:51 -04:00
Monis Khan
df292749c9
Remove support for basic authentication
This change removes support for basic authn in v1.19 via the
--basic-auth-file flag.  This functionality was deprecated in v1.16
in response to ATR-K8S-002: Non-constant time password comparison.

Similar functionality is available via the --token-auth-file flag
for development purposes.

Signed-off-by: Monis Khan <mok@vmware.com>
2020-03-11 20:55:47 -04:00
Antonio Ojea
4361f8f052 wait until /metrics are ready on e2e test
Some e2e tests depend on the controller-manager to expose metrics
on the path /metrics.

It may happen that when the test runs, the pod is not available or the
URL not ready, causing it to fail.

Previously, the test were waiting until the pod was running, but we
need to wait until the /metrics URL is ready.
2020-03-11 14:32:03 +01:00
tanjunchen
97db7f4b99 move GetPodSecretUpdateTimeout from framework/utils to framework/pod 2020-03-11 15:48:15 +08:00
Kenichi Omichi
c586d8837a Move GetClusterZones() to e2enode 2020-03-10 18:16:54 +00:00
Kubernetes Prow Robot
c4a7d3cf16
Merge pull request #88903 from claudiubelu/test-images/sample-apiserver-fix
test images: ARG instructions should be first
2020-03-10 11:15:35 -07:00
Kenichi Omichi
19566b9c9f Remove unused E2ETestNodePreparer and functions
Since 59533f0cd1 E2ETestNodePreparer
and the related functions have been unused.
This removes them for cleanup.
2020-03-10 17:32:26 +00:00
Saverio Proto
326c25f7a2 Drop alpha gate for network tier annotation 2020-03-10 14:58:36 +01:00
Kubernetes Prow Robot
a35f54e3e8
Merge pull request #88982 from aojea/flakyvolumes
e2e: wait for controller manager pod to be ready
2020-03-10 03:29:36 -07:00
Kubernetes Prow Robot
5877945048
Merge pull request #88739 from julianvmodesto/diff-server-side-field-manager
Set field manager for kubectl diff --server-side
2020-03-09 18:57:35 -07:00
Kubernetes Prow Robot
b1c1187cca e2e: wait for controller manager pod to be ready
The MetricsGrabber may use the controller-manager pod
to gather metrics, however, it doesn't wait until
it is ready to serve, failing the test if this is the
case.

We wait until the controller-manager pod is running
before trying to get metrics from it.
2020-03-09 22:04:16 +01:00
Kubernetes Prow Robot
0bb125e731
Merge pull request #87487 from skilxn-go/master
Move TaintBasedEvictions feature gates to GA
2020-03-09 09:03:45 -07:00
skilxn-go
6b8fc8dc5e Move TaintBasedEvictions feature gates to GA 2020-03-09 10:49:00 +08:00
Clayton Coleman
d80981b657
test: Detect flakes caused by container teardown races on CRI
CRI returns a different reason than the dockershim, and we must also
catch the symptoms of https://github.com/kubernetes/kubernetes/issues/88766
in that environment.
2020-03-08 16:21:57 -04:00
drfish
f4da086cbe Move resource methods from e2e fw to e2e resource fw 2020-03-08 15:27:49 +08:00
Davanum Srinivas
8f3dfea11f
Add version flag to e2e.test 2020-03-07 18:33:02 -05:00
Kubernetes Prow Robot
672aa55ee4
Merge pull request #87777 from dbenoit17/master
fix range copy issue
2020-03-07 08:25:34 -08:00
Kubernetes Prow Robot
b30c9a3aba
Merge pull request #88929 from liggitt/expansions
client-go: plumb context to expansions methods
2020-03-06 20:35:34 -08:00
Kubernetes Prow Robot
988982a1f7
Merge pull request #88048 from mtaufen/provider-info-e2etest
Add e2e test for validating JWTs as OIDC tokens
2020-03-06 17:59:34 -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
Kubernetes Prow Robot
f52cbea102
Merge pull request #88910 from liggitt/metadata-context
Metadata client: plumb context
2020-03-06 13:18:04 -08:00
Jefftree
db714336a9 Update conformance.yaml to remove comments not part of Description 2020-03-06 11:37:35 -08:00
Jefftree
6da6380d1b Capture behaviors in walk.go 2020-03-06 11:09:25 -08:00
Jordan Liggitt
04a72d5ef9 client-go metadata: update callers 2020-03-06 11:07:54 -05:00
Jordan Liggitt
b7c2faf26c client-go dynamic client: add context to callers 2020-03-06 10:56:23 -05:00
Jordan Liggitt
b19dc3a474 client-go dynamic client: update DeleteOptions callers 2020-03-06 10:21:23 -05:00
Hemant Kumar
73611a473f Fix expected version for csidriver
Add a comment about GA feature
2020-03-06 08:21:26 -05:00
Christian Huffman
c6fd25d100 Updated CSIDriver references 2020-03-06 08:21:26 -05:00
Charles Eckman
aee9fde751 Add e2e test for validating JWTs as OIDC tokens
Adds an E2E test to deploy an agnhost container that runs the test.

Co-authored-by: Michael Taufen <mtaufen@google.com>
2020-03-05 13:58:52 -08:00
Kubernetes Prow Robot
0ad60b35c1
Merge pull request #88801 from jsafrane/snapshot-test-timeout
Fix GCE PD snapshot flakiness
2020-03-05 09:08:51 -08:00
Kubernetes Prow Robot
2f145e9422
Merge pull request #88249 from claudiubelu/tests/reduce-to-agnhost-dnsutils
tests: Replaces dnsutils image used with agnhost (part 4)
2020-03-05 09:08:37 -08:00
Kubernetes Prow Robot
1f2e1967d1
Merge pull request #88566 from Deepthidharwar/topology-mgr-numa-tests
Enable running cpu-mgr-multiNUMA e2e tests with Topology manager
2020-03-05 05:38:37 -08:00
Kubernetes Prow Robot
67c6767b7d
Merge pull request #88721 from Deepthidharwar/sriov-tm-bug
FIX SRIOV detection logic not to error out if device not present on the system
2020-03-05 02:58:50 -08:00
Jan Chaloupka
b09676921c [doc] scheduler_perf: describe suite configuration in more detail
The configuration file was design as a yaml file on purpose.
To easily extend the test cases without a need to modify
the testing binary. Also, it's possible to extend the configuration
itself to enrich individual test cases.
2020-03-05 11:42:05 +01:00
Kubernetes Prow Robot
364c66ed9c
Merge pull request #88828 from msau42/fix-skip-log
Fix log formatting for skipper.
2020-03-05 00:54:37 -08:00
Kubernetes Prow Robot
1afb554222
Merge pull request #88818 from claudiubelu/test-images/skips-windows
test images: Temporarely exclude Windows test images
2020-03-04 20:13:45 -08:00
Kubernetes Prow Robot
7a513b575a
Merge pull request #88440 from smarterclayton/container_success_fix
Ensure Kubelet always reports terminating pod container status
2020-03-04 20:13:04 -08:00
Kubernetes Prow Robot
7d6d790b43
Merge pull request #88414 from tanjunchen/resole-TODO
test/e2e/:resolve pending TODO: write a wrapper for ExpectNoErrorWithOffset()
2020-03-04 20:12:50 -08:00
Michelle Au
86c9b8ef57 Update version of pd csi driver
Change-Id: I1e6858cb641eb1b30b06ac95abe6a83c5312632e
2020-03-04 18:51:47 -08:00
Michelle Au
3ee30343cc Fix log formatting for skipper. "INFO" is already logged by Logf, and it
wasn't in the format syntax.

Change-Id: I760007c9c524bb465f428eb70e7fb30993475086
2020-03-04 17:43:24 -08:00
Kubernetes Prow Robot
d7e7136bbc
Merge pull request #88563 from mateuszlitwin/mlitwin-fix-permit-integration-test
fix TestCoSchedulinngWithPermitPlugin and test PermitPlugin
2020-03-04 17:26:37 -08:00
Julian V. Modesto
bacc2c4960 Set field manager for kubectl diff --server-side.
Bonus: check diff only dry-runs without persisting.

Co-authored-by: Takahiro HATORI <tahatori@zlab.co.jp>
2020-03-04 20:20:07 -05:00
Federico Paolinelli
c42b1ca783 Add SCTP e2e connectivity tests.
Pod2pod connectivity, and pod 2 service.

Signed-off-by: Federico Paolinelli <fpaoline@redhat.com>
2020-03-04 23:34:22 +01:00
Dan Winship
55d3408211 agnhost: add SCTP support to netexec 2020-03-04 23:34:15 +01:00
Caleb Woodbine
bf4f46b9fa Adjust endpoint watch timeout to 180 2020-03-05 10:24:25 +13:00
Caleb Woodbine
957ab9afaf Adjust RC watch timeout to 180, update progress log statement 2020-03-05 09:55:38 +13:00
Clayton Coleman
6d98b0a0f4
Test that an always-fail container can't report the pod Succeeded
The kubelet can race when a pod is deleted and report that a container succeeded
when it instead failed, and thus the pod is reported as succeeded. Create an e2e
test that demonstrates this failure.
2020-03-04 13:34:20 -05:00
Mateusz Litwin
b93e3d18e9 fix scheduler.TestCoSchedulinngWithPermitPlugin and test scheduler.PermitPlugin
After moving Permit() to the scheduling cycle test PermitPlugin should
no longer wait inside Permit() for another pod to enter Permit() and become waiting pod.
In the past this was a way to make test work regardless of order in
which pods enter Permit(), but now only one Permit() can be executed at
any given moment and waiting for another pod to enter Permit() inside
Permit() leads to timeouts.

In this change waitAndRejectPermit and waitAndAllowPermit flags make first
pod to enter Permit() a waiting pod and second pod to enter Permit()
either rejecting or allowing pod.

Mentioned in #88469
2020-03-04 08:45:36 -08:00
Kubernetes Prow Robot
b5b675491b
Merge pull request #86173 from soltysh/cli_defaults
stop defaulting kubeconfig to http://localhost:8080
2020-03-04 07:23:47 -08:00
Aleksandra Malinowska
c326149b4a ignore gcloud warning in test framework 2020-03-04 14:45:05 +01:00
Kubernetes Prow Robot
f692f5cfcd
Merge pull request #88049 from mtaufen/provider-info-agnhost
Update agnhost to test OIDC validation of JWT tokens
2020-03-04 03:43:47 -08:00
Jan Safranek
98b9c7b5e8 Fix GCE PD snapshot flakiness
It takes more than 5 minutes to restore a GCE PD snapshot + run a pod with
it. Therefore TestVolumeClientSlow is introduced.
2020-03-04 12:39:13 +01:00
Kubernetes Prow Robot
497a998ba6
Merge pull request #88654 from ddebroy/gmsa-disable1
Promote GMSA support for Windows to GA
2020-03-04 02:32:01 -08:00
Kubernetes Prow Robot
c2593d3fa7
Merge pull request #88669 from mkimuram/snapfromfile
Add FromFile and FromExistingClassName support for SnapshotClass in external storage e2e test
2020-03-04 01:10:00 -08:00
Kubernetes Prow Robot
71cfd2a3db
Merge pull request #88460 from soltysh/filename_exec
Wire --filename flag to exec
2020-03-04 01:09:47 -08:00
toyoda
bf58facaef Update waitForPDBCollectionToBeDeleted in e2e test 2020-03-04 17:31:50 +09:00
tanjunchen
453a05c03e test/e2e/framework:remove TODO 2020-03-04 13:00:37 +08:00
Deep Debroy
16d221e407 Promote GMSA to GA
Signed-off-by: Deep Debroy <ddebroy@docker.com>
2020-03-04 02:56:21 +00:00
Caleb Woodbine
ca3542273c Update Replica count check, undo capitalization for framework.Expect* statements 2020-03-04 15:44:46 +13:00
Caleb Woodbine
3fa4acb9b7 Ensure current Replica check is from ReplicationController watch 2020-03-04 14:55:11 +13:00
Caleb Woodbine
be382a812c Update test to create endpoint, patch addresses and ports for endpoint, ensure watch for DELETED 2020-03-04 14:24:02 +13:00
Caleb Woodbine
c715fec47d Update ReplicationController event watch check 2020-03-04 13:08:59 +13:00
Kubernetes Prow Robot
25d241eda2
Merge pull request #85642 from claudiubelu/tests/guestbook-workers-update-image
test images: Updates agnhost guestbook subcommand
2020-03-03 15:33:47 -08:00
Charles Eckman
5ceecd3ba3 Update agnhost to test OIDC validation of JWT tokens
Extends agnhost with the capability to validate a mounted token against
the API server's OIDC endpoints.

Co-authored-by: Michael Taufen <mtaufen@google.com>
2020-03-03 15:27:47 -08:00
Caleb Woodbine
054a886bf9 Remove sleep and final fetch of ReplicationController 2020-03-04 11:14:03 +13:00
Caleb Woodbine
de5859f7ce Add Endpoints resource lifecycle test 2020-03-04 11:09:48 +13:00
Masaki Kimura
401b85e547 Add FromFile and FromExistingClassName support for SnapshotClass in external storage e2e test 2020-03-03 20:28:32 +00:00
Caleb Woodbine
3b1e2249b0 Add ginkgo.By statements, TimeoutSeconds to the ReplicationController watch 2020-03-04 09:19:06 +13:00
Maciej Szulik
9dac1699bf
Wire --filename flag to exec 2020-03-03 12:16:52 +01:00
Kubernetes Prow Robot
9ee75e48c9
Merge pull request #88681 from Huang-Wei/fix-pts-e2e-flak
Fix an e2e flake for preemption with hard PodTopologySpread
2020-03-03 00:17:37 -08:00
Kubernetes Prow Robot
1c4f1edfba
Merge pull request #88746 from andrewsykim/test-framework-pkg-apis
test/e2e/framework: remove dependencies to internal APIs
2020-03-02 22:13:46 -08:00
Wei Huang
9902021ccd
Fix a PodTopologySpread e2e flake 2020-03-02 16:25:11 -08:00
Kubernetes Prow Robot
4838ac95ca
Merge pull request #88624 from claudiubelu/tests/windows-create-pod-fix
tests: Create pod for Windows test
2020-03-02 16:16:46 -08:00
Kubernetes Prow Robot
6c55e4b4f1
Merge pull request #88496 from chewong/fix-memory-limit-test-case
test: don't use hardcoded pod count for memory limit test
2020-03-02 16:16:27 -08:00
Kubernetes Prow Robot
a019609d5d
Merge pull request #87508 from jennybuckley/large-obj
Don't save managedFields if object is too large
2020-03-02 16:16:05 -08:00
Kubernetes Prow Robot
4b1ee392c1
Merge pull request #79083 from jackkleeman/client-cert-file-reload
Add ability to reload client certificates from disk
2020-03-02 16:15:53 -08:00
Kubernetes Prow Robot
a5048219ee
Merge pull request #76838 from claudiubelu/test-images/windows-support
test images: Adds Windows Container images support (part 1)
2020-03-02 16:15:38 -08:00
Kubernetes Prow Robot
26d497ac57
Merge pull request #88703 from tanjunchen/simplify-code
test/e2e/framework/service/:simplify function CreateTCPService and remove repeat const
2020-03-02 14:50:52 -08:00
andrewsykim
674e539fca test/e2e/framework: remove dependencies to internal APIs
Signed-off-by: andrewsykim <kim.andrewsy@gmail.com>
2020-03-02 16:09:15 -05:00
Kubernetes Prow Robot
24bf9e0327
Merge pull request #88727 from jsafrane/block-snapshot
Fix block snapshot tests
2020-03-02 11:43:36 -08:00
Kubernetes Prow Robot
e87cd59e1b
Merge pull request #88685 from fengzixu/move-util-functions
Refactor: move generic functions of integration test to util directory
2020-03-02 11:43:23 -08:00
David Eads
b19ad9e7a7
stop defaulting kubeconfig to http://localhost:8080 2020-03-02 18:32:16 +01:00
Jack Kleeman
929b1559a0 Add ReloadCertFromDisk flag to rest.Config and to kubeconfig which allows the provided client certificate files to be reloaded from disk (currently on every use)
Close outbound connections when using a cert callback and certificates rotate. This means that we won't get into a situation where we have open TLS connections using expires certs, which would get unauthorized errors at the apiserver

Attempt to retrieve a new certificate if open connections near expiry, to prevent the case where the cert expires but we haven't yet opened a new TLS connection and so GetClientCertificate hasn't been called.

Move certificate rotation logic to a separate function

Rely on generic transport approach to handle closing TLS client connections in exec plugin; no need to use a custom dialer as this is now the default behaviour of the transport when faced with a cert callback. As a result of handling this case, it is now safe to apply the transport approach even in cases where there is a custom Dialer (this will not affect kubelet connrotation behaviour, because that uses a custom transport, not just a dialer).

Check expiry of the full TLS certificate chain that will be presented, not only the leaf. Only do this check when the certificate actually rotates. Start the certificate as a zero value, not nil, so that we don't see a rotation when there is in fact no client certificate

Drain the timer when we first initialize it, to prevent immediate rotation. Additionally, calling Stop() on the timer isn't necessary.

Don't close connections on the first 'rotation'

Remove RotateCertFromDisk and RotateClientCertFromDisk flags.

Instead simply default to rotating certificates from disk whenever files are exclusively provided.

Add integration test for client certificate rotation

Simplify logic; rotate every 5 mins

Instead of trying to be clever and checking for rotation just before an
expiry, let's match the logic of the new apiserver cert rotation logic
as much as possible. We write a controller that checks for rotation
every 5 mins. We also check on every new connection.

Respond to review

Fix kubelet certificate rotation logic

The kubelet rotation logic seems to be broken because it expects its
cert files to end up as cert data whereas in fact they end up as a
callback. We should just call the tlsConfig GetCertificate callback
as this obtains a current cert even in cases where a static cert is
provided, and check that for validity.

Later on we can refactor all of the kubelet logic so that all it does is
write files to disk, and the cert rotation work does the rest.

Only read certificates once a second at most

Respond to review

1) Don't blat the cert file names
2) Make it more obvious where we have a neverstop
3) Naming
4) Verbosity

Avoid cache busting

Use filenames as cache keys when rotation is enabled, and add the
rotation later in the creation of the transport.

Caller should start the rotating dialer

Add continuous request rotation test

Rebase: use context in List/Watch

Swap goroutine around

Retry GETs on net.IsProbableEOF

Refactor certRotatingDialer

For simplicity, don't affect cert callbacks

To reduce change surface, lets not try to handle the case of a changing
GetCert callback in this PR. Reverting this commit should be sufficient
to handle that case in a later PR.

This PR will focus only on rotating certificate and key files.
Therefore, we don't need to modify the exec auth plugin.

Fix copyright year
2020-03-02 17:20:16 +00:00
Deepthi Dharwar
1ede096465 Enable topology-manager-e2e tests to run on MultiNUMA nodes.
Signed-off-by: Deepthi Dharwar <ddharwar@redhat.com>
2020-03-02 22:36:43 +05:30
Deepthi Dharwar
4abbce4549 Refactor CPUMananger-e2e-tests so that it be reused by topology-manager-e2e-testsuite.
Signed-off-by: Deepthi Dharwar <ddharwar@redhat.com>
2020-03-02 22:36:31 +05:30
Jan Safranek
f96c75bca2 Bump csi-driver-host-path version to get fixed block snapshots 2020-03-02 15:22:32 +01:00
Deepthi Dharwar
a4b59a5d7c Currently SRIOV detection logic is reporting error if it fails to detect SRIOV device
on the system. This patch aims to fix the same.

Signed-off-by: Deepthi Dharwar <ddharwar@redhat.com>
2020-03-02 19:31:37 +05:30
Jan Safranek
104db4f01b Fix block snapshot tests
Use InjectContent / TestVolumeClient to test a snapshot volume, since these
functions support raw block volumes.
2020-03-02 14:18:40 +01:00
Caleb Woodbine
5239ae44b6 Update delay time before deletion recheck 2020-03-02 15:42:23 +13:00
Rob Scott
132d2afca0
Adding IngressClass to networking/v1beta1
Co-authored-by: Christopher M. Luciano <cmluciano@us.ibm.com>
2020-03-01 18:17:09 -08:00
Caleb Woodbine
51d3f64b81 Fix conformance testdata 2020-03-02 14:23:29 +13:00
Caleb Woodbine
c33e3bdc28 Fix conformance testdata 2020-03-02 14:17:24 +13:00
Caleb Woodbine
67fb7c5989 Fix release number 2020-03-02 14:09:20 +13:00
Caleb Woodbine
40dadaaa9c Promote Pod Preemption Verification 2020-03-02 14:08:30 +13:00
Caleb Woodbine
947584d3b4 Fix metadata description 2020-03-02 13:57:17 +13:00
Caleb Woodbine
22f8a698ff Fix: metadata 2020-03-02 13:57:17 +13:00
Caleb Woodbine
633a72ce28 Promote: PodTemplate Lifecycle test 2020-03-02 13:57:17 +13:00
Caleb Woodbine
e5e3037868 Use max Replica count instead of hardcoded value 2020-03-02 13:46:41 +13:00
tanjunchen
b5cdb6e6cb test/e2e/:remove // TODO: write a wrapper for ExpectNoErrorWithOffset() 2020-03-01 23:00:11 +08:00
tanjunchen
b63be6a46d test/e2e/framework/service/:simplify function CreateTCPService 2020-03-01 22:33:42 +08:00
Claudiu Belu
1b71b2a9a2 tests: Replaces mounttest 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:

- mounttest
- mounttest-user

Additionally, removes the usage of the mounttest-user image and removes
it from kubernetes/test/images. RunAsUser is set instead of having that image.
2020-02-29 15:05:57 -08:00
Jordan Liggitt
f205e3dd59 Use only v1 CRD resources in e2e tests 2020-02-29 17:34:26 -05:00
Kubernetes Prow Robot
03b7f272c8
Merge pull request #88246 from munnerz/csr-signername-controllers
Update CSR controllers & kubelet to respect signerName field
2020-02-28 23:38:39 -08:00
fengzixu
b67a033de2 Refactor: move generic functions of integration test to util directory 2020-02-29 14:56:39 +09:00
Kubernetes Prow Robot
268d0a1d3a
Merge pull request #85870 from Jefftree/authn-netproxy
Use Network Proxy with Authentication & Authorizer Webhooks
2020-02-28 18:44:39 -08:00
Kubernetes Prow Robot
0d2844f564
Merge pull request #88666 from ingvagabund/scheduler-perf-do-not-override-throughput-labes
scheduler_perf: do not override throughput labels
2020-02-28 12:55:03 -08:00
Kubernetes Prow Robot
0046b4cefb
Merge pull request #88242 from jsafrane/cloning-test
Add block cloning test
2020-02-28 12:54:53 -08:00
Jan Chaloupka
5b3b4de972 scheduler_perf: do not override throughput labels
Throughput labels are currently initialized with a "Name" label.
So we need to append to the map instead of creating a new one.
2020-02-28 16:10:50 +01:00
Elijah Oyekunle
2e187415fd extend CRD map and set validation 2020-02-28 16:00:59 +01:00
Kubernetes Prow Robot
4e4757772f
Merge pull request #88538 from PatrickLang/patch-1
Updating OWNERS for Windows+Azure tests
2020-02-28 02:28:38 -08:00
Jan Safranek
347d841948 Bump CSI hostpath driver
To get block cloning support
2020-02-28 10:45:43 +01:00
Claudiu Belu
06062b15e9 test images: ARG instructions should be first
A few other Dockerfiles had the ARG duplicated as well.
2020-02-28 01:31:05 -08:00
Kubernetes Prow Robot
e25ff53a6f
Merge pull request #88540 from damemi/move-extender-api-to-staging
Move scheduler extender API V1 to staging k8s.io/kube-scheduler
2020-02-27 20:20:52 -08:00
Kubernetes Prow Robot
d6a5fa3bec
Merge pull request #88520 from bertinatto/fix-csi-mock-test-for-conformance
Don't rely on contents of optional Condition fields in CSI mock test
2020-02-27 20:20:38 -08:00
Claudiu Belu
ce30d2d5c8 test images: Skip building manifest list if no image was pushed
For Windows-only images, if there is no image built / pushed, you cannot create
a manifest list.
2020-02-27 19:05:47 -08:00
Kubernetes Prow Robot
5708511499
Merge pull request #88708 from mikedanese/deleteopts
Migrate clientset metav1.DeleteOpts to pass-by-value
2020-03-05 23:09:23 -08:00
Kubernetes Prow Robot
f5df777d50
Merge pull request #88872 from smarterclayton/fix_flake
test: Properly detect container runtime flake in e2e test
2020-03-05 21:40:23 -08:00
Kubernetes Prow Robot
974a8a014f
Merge pull request #88847 from claudiubelu/image-promoter/build-and-push
Image Promoter fixes
2020-03-05 20:04:56 -08:00
Kubernetes Prow Robot
50dd75f9c5
Merge pull request #88773 from vpickard/e2e-topology-manager-sriovdpReady
e2e-topology-manager: Wait for SR-IOV device plugin
2020-03-05 20:04:38 -08:00
Kubernetes Prow Robot
e23e7204f2
Merge pull request #88558 from egernst/e2e_node-PodOverhead
e2e node pod overhead
2020-03-05 20:04:11 -08:00
Kubernetes Prow Robot
34c4407d34
Merge pull request #88152 from fengzixu/master
cleanup: move the test of TaintBasedEvictions features to sig-node
2020-03-05 20:03:43 -08: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
Clayton Coleman
8c35e32a40
test: Properly detect container runtime flake in e2e test
The condition was not part of the message and so would not
match:

OCI runtime create failed: container_linux.go:349: starting container process caused "process_linux.go:449: container init caused \"rootfs_linux.go:58: mounting \\\"/var/lib/kubelet/pods/128aea1f-bde3-43d5-8b5f-dd86b9a5ef33/volumes/kubernetes.io~secret/default-token-v55hm\\\" to rootfs \\\"/var/lib/docker/overlay2/813487ba91d534ded546ae34f2a05e7d94c26bd015d356f9b2641522d8f0d6da/merged\\\" at \\\"/var/run/secrets/kubernetes.io/serviceaccount\\\" caused \\\"stat /var/lib/kubelet/pods/128aea1f-bde3-43d5-8b5f-dd86b9a5ef33/volumes/kubernetes.io~secret/default-token-v55hm: no such file or directory\\\"\"": unknown

Updated the check and regex.
2020-03-05 14:20:59 -05:00
vpickard
61565b3f6c e2e-topology-manager: Wait for SR-IOV device plugin
Make sure the SR-IOV device plugin is ready, and that
there are enough SR-IOV devices allocatable before
spinning up test pods.

Signed-off-by: vpickard <vpickard@redhat.com>
2020-03-04 10:07:35 -05:00
fengzixu
076132e38a cleanup: move the test of TaintBasedEvictions features to sig-node
1. move the integration test of TaintBasedEvictions to test/integration/node
2. move the e2e test of TaintBasedEvictions e2e test/e2e/node
3. modify the conformance file to adapt the TaintBasedEviction test
2020-03-04 10:28:00 +09:00
Eric Ernst
aa12e1f8c4 e2e_node add test for PodOverhead feature
This test will verify that the Pod cgroup created takes Overhead into
account.

Signed-off-by: Eric Ernst <eric@amperecomputing.com>
2020-02-28 23:00:39 +00:00
Jefftree
1b38199ea8 pass Dialer instead of egressselector to webhooks 2020-02-27 17:47:23 -08:00
Jefftree
d318e52ffe authentication webhook via network proxy 2020-02-27 17:47:23 -08:00
Kubernetes Prow Robot
0bd694033a
Merge pull request #88556 from Huang-Wei/sched-e2e-flake-part2
Fix a scheduler e2e bug on Preemption
2020-02-27 16:12:39 -08:00
jennybuckley
ccd9e4e2de Don't save managedFields if object is too large 2020-02-27 12:41:44 -08:00
Kubernetes Prow Robot
641616362d
Merge pull request #88133 from julianvmodesto/dry-run-tests
Cleanup --dry-run values in tests, docs, and scripts
2020-02-27 11:33:42 -08:00
Mike Dame
18ffaf5608 Move scheduler extender API V1 to staging k8s.io/kube-scheduler 2020-02-27 12:10:59 -05:00
James Munnelly
d5dae04898 certificates: update controllers to understand signerName field
Signed-off-by: James Munnelly <james.munnelly@jetstack.io>
2020-02-27 15:54:31 +00:00
James Munnelly
d7e10f9869 Add Certificate signerName admission plugins 2020-02-27 15:50:14 +00:00
Claudiu Belu
acf84351e4 test images: Rebases nautilus and kitten images
The current agnhost version is 2.12, 2.11 was not previously built as the
VERSION bumps merged one after the other, and the Image Promoter did not get to
build the 2.11 image.
2020-02-27 06:04:01 -08:00
Claudiu Belu
117cbda487 Image Promoter: Allows images to be pushed immediately after being built
In the current version, due to how make works, when building all the conformance
images (make all-push WHAT=all-conformance), ALL the images are being built first
before being pushed.

This PR will allow images to be built and pushed immediately afterwards, so the first
images that have been succesfully built are already pushed and promotable, even if
the the task failed on the last image, or it timed out.
2020-02-27 06:00:03 -08:00
Kubernetes Prow Robot
13beb9b3ce
Merge pull request #87648 from ialidzhikov/enh/golang@1.13.7
Update to golang@1.13.8
2020-02-27 05:17:27 -08:00
James Munnelly
a983356caa Add signerName field to CSR resource spec
Signed-off-by: James Munnelly <james.munnelly@jetstack.io>
2020-02-27 10:17:55 +00:00
Jan Safranek
1f9f2390cb Add block cloning tests
Rework the tests to use InjectContent/TestVolumeClient when at it.
2020-02-27 09:56:15 +01:00
Kubernetes Prow Robot
aaca31c35e
Merge pull request #88453 from Pulkit07/issue882820
[refactor] fold PreemptionExecutionPath into the existing top-level SIGDescribe
2020-02-27 00:15:46 -08:00
ialidzhikov
e26fff5cbc Update to golang@1.13.8
Signed-off-by: ialidzhikov <i.alidjikov@gmail.com>
2020-02-27 09:27:48 +02:00
Claudiu Belu
b6b60f7fa5 test images: Temporarely exclude Windows test images
A previous PR (#76838) introduced the ability to build and publish
Windows Test Images to kubernetes/test/images/image-util.sh.

Additionally, that PR also configured the Image Promoter to use a
few Windows Remote Docker build nodes to build the Windows Test Images,
however, there is a minor issue: the build container has a different $HOME
folder than expected (is: /builder/home, expected: /root - since it's the
root user), and the Remote Docker credentials are mounted in /root.

Because of that, image-build.sh cannot find the credentials it needs.
This will have to be properly fixed, but for now, we can just skip
the Windows image building part.
2020-02-26 22:51:26 -08:00
Claudiu Belu
c57f20b712 tests: Replaces dnsutils image 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:

- dnsutils

dnsmasq is a Linux specific binary. In order for the tests to also
pass on Windows, CoreDNS should be used instead.
2020-02-26 21:51:23 -08:00
Wei Huang
ef786c9fa2
Setting a Pod's nodeAffinity instead of setting .spec.nodeName directly 2020-02-26 19:06:05 -08:00
Caleb Woodbine
2622a6cace Fix formatting and BUILD 2020-02-27 14:48:39 +13:00
Wei Huang
517a41fe84
Fix an "index out of bound" issue in scheduler preemption e2e 2020-02-26 17:05:46 -08:00
Stephen Augustus
e64169d6b5 build: Enable kube-cross push/pull from K8s Infra GCR
- Search/replace Google Infra kube-cross locations for K8s Infra
- Update kube-cross make targets
  - Don't attempt to pre-pull image (docker build --pull)
    This prevents CI failures when the image under test doesn't exist
    yet in the registry.
  - 'make all' now builds and pushes the kube-cross image
  - Allow 'TAG' to be specified via env var
  - Use 'KUBE_CROSS_VERSION' to represent the kube-cross version
  - Tag kube-cross images with both a kubernetes version
    ('git describe') and a kube-cross version
- Add a GCB (Google Cloud Build) config file (cloudbuild.yaml)

Signed-off-by: Stephen Augustus <saugustus@vmware.com>
2020-02-26 16:51:01 -05:00
Kubernetes Prow Robot
1deac1e466
Merge pull request #88526 from alculquicondor/multiprofiles-test
Add unit and integration tests for running multiple scheduling profiles
2020-02-26 13:33:49 -08:00
Caleb Woodbine
6b8b08c8ab Create ReplicationController lifecycle test 2020-02-27 09:53:35 +13:00
Kubernetes Prow Robot
9821d0e47e
Merge pull request #88486 from Jefftree/schnake-pr
Adds custom reporter and logic to generate conformance docs and list of tests
2020-02-26 11:53:35 -08:00
Kubernetes Prow Robot
1f11cac310
Merge pull request #88315 from pohly/csi-patch-nodename
e2e: avoid setting NodeName for CSI driver deployments
2020-02-26 11:53:20 -08:00
Pulkit Goyal
10805e0452 [refactor] fold PreemptionExecutionPath into the existing top-level SIGDescribe 2020-02-26 23:17:56 +05:30
Kubernetes Prow Robot
d98975217a
Merge pull request #88525 from mborsz/bench3
Reorder conditions in FindMatchingVolume to avoid calling volumeutil.CheckNodeAffinity in trivial cases
2020-02-26 09:46:40 -08:00
Aldo Culquicondor
07c4982245 Add unit and integration tests for multiple profiles support
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2020-02-26 10:14:03 -05: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
Maciej Borsz
7d59ea8394 Reorder conditions in FindMatchingVolume to avoid checking NodeAffinity
in trivial cases.
2020-02-26 09:20:38 +01:00
Kubernetes Prow Robot
16a7650e2b
Merge pull request #86101 from PatrickLang/fix-cpumaximum
Fix cpu resource limit on Windows
2020-02-26 00:20:26 -08:00
Kubernetes Prow Robot
b6b494b448
Merge pull request #88552 from Huang-Wei/sched-e2e-flake-part1
Fix a scheduler e2e bug on PodTopologySpread scoring
2020-02-25 21:02:54 -08:00
Caleb Woodbine
be7332e917 Fix BUILD 2020-02-26 16:54:20 +13:00
Caleb Woodbine
54f9654799 Fix build failure; Remove unrelated code 2020-02-26 16:10:25 +13:00
Kubernetes Prow Robot
fd5f5cc285
Merge pull request #88471 from claudiubelu/tests/fix-hybrid-network
tests: Fixes Hybrid cluster network test
2020-02-25 18:32:50 -08:00
Kubernetes Prow Robot
86c8a23052
Merge pull request #88009 from davidz627/fix/pdVer
Update version of gcp-compute-persistent-disk-csi-driver used in in-tree tests
2020-02-25 18:32:26 -08:00
Caleb Woodbine
9a8e1a1462 Fix: types.go in BUILD file 2020-02-26 15:07:45 +13:00
Caleb Woodbine
4f1a8e5e38 Add: test to ensure that an event can be fetched, patched, deleted, and listed 2020-02-26 15:07:45 +13:00
Kubernetes Prow Robot
f7c37d387d
Merge pull request #88285 from alculquicondor/multiprofiles-runtime
Add support for multiple scheduling profiles
2020-02-25 16:48:26 -08:00
Wei Huang
5da37d5b5e
Fix a scheduler e2e bug on PodTopologySpread scoring 2020-02-25 15:34:11 -08:00
David Zhu
c6c0bb254a Update version of GCE PD CSI Driver deployed in tests 2020-02-25 13:25:05 -08:00
Kubernetes Prow Robot
b5e95fc73d
Merge pull request #88409 from aojea/affinity
deflake e2e session affinity tests
2020-02-25 11:59:04 -08:00
Patrick Lang
33ef66b927 Updating OWNERS for Windows+Azure tests 2020-02-25 19:56:03 +00:00
Claudiu Belu
8cb84feef3 test images: Updates agnhost guestbook
A previous PR replaced the usage of Redis in the guestbook app test
with Agnhost. The replacement went well for Linux setups and Containers,
which is why the tests are green, but there is a network particularity on
Windows setups which won't allow the test to pass.

The issue was observed with another test hitting the same issue:
https://github.com/kubernetes/kubernetes/issues/83072

Here's exactly what happens during the test:

- frontend containers are created, having the /guestbook endpoint. Its main
  purpose is to forward the call to either agnhost-master (cmd=set), or
  agnhost-slave (cmd=get).
- agnhost-master container is created, having the /set endpoint, and the
  /register endpoint, through which the agnhost-slave containers would
  register to it. Its purpose is to propagate all data received through /set
  to its clients.
- agnhost-slave containers are created, having the /set and /get endpoints.
  They would register to agnhost-master, and then receive any and all updates
  from it, which was then served through the /get endpoint.

For simplicity, all 3 types have the same agnhost subcommand (agnhost guestbook), being
able to satisfy its given purpose. For this, HTTP servers were being used, including
for the /register endpoints. agnhost-master would send its /set updates as /set HTTP
requests. However, because of the issue listed above, agnhost-master did not receive
the client's IP, but rather the container host's IP, resulting in the request being
sent to the wrong destination.

This PR updates the agnhost guestbook subcommand. Now, the agnhost subscriber nodes will
send their own IP to the /register endpoint (/endpoint?host=myip).
2020-02-25 09:45:43 -08:00
Aldo Culquicondor
c048858471 Support multiple scheduling profiles in a single scheduler
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2020-02-25 11:31:20 -05:00
Kubernetes Prow Robot
fe9073b8c1
Merge pull request #88318 from mborsz/bench
Add BenchmarkSchedulingWaitForFirstConsumerPVs benchmark
2020-02-25 07:52:49 -08:00
Maciej Borsz
bd8ed0a2a7 Add BenchmarkSchedulingWaitForFirstConsumerPVs benchmark 2020-02-25 14:41:14 +01:00
Fabio Bertinatto
34206a610a Don't rely on contents of optional Condition fields in CSI mock test
In order to promote the volume limits e2e test (from CSI Mock driver)
to Conformance, we can't rely on specific output of optional Condition
fields. Thus, this commit changes the test to only check the presence
of the right condition and verify that the optional fields are not empty.
2020-02-25 13:08:57 +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
Kubernetes Prow Robot
74c0fca37e
Merge pull request #88314 from bertinatto/remove-node-labels-csimock
Avoid adding labels to nodes in CSI mock driver
2020-02-24 19:07:15 -08:00
Ernest Wong
45d69b3a5a
test: don't use hardcoded pod count for memory limit test 2020-02-24 14:34:51 -08:00
John Schnake
2683b1065c Update the conformance list and doc generation logic
The existing walk.go and conformance.txt have a few shortcomings
which we'd like to resolve:
 - difficult to get the full test name due to test context nesting
 - complicated AST logic and understanding necessary due to the
different ways a test can be invoked and written

This changes the AST parsing logic to be much more simple and simply
looks for the comments at/around a specific line. This file/line
information (and the full test name) is gathered by a custom ginkgo
reporter which dumps the SpecSummary data to a file.

Also, the SpecSummary dump can, itself, be potentially useful for
other post-processing and debugging tasks.

Signed-off-by: John Schnake <jschnake@vmware.com>
2020-02-24 14:00:44 -08:00
Kubernetes Prow Robot
607ed67754
Merge pull request #88415 from ingvagabund/readme-for-metrics-based-scheduler-perf-tests
scheduler_perf: describe how to run BenchmarkPerfScheduling manually
2020-02-24 13:11:47 -08:00
Kubernetes Prow Robot
624da8b9a3
Merge pull request #88110 from fromanirh/refactor-get-current-kubelet-conf
e2e: e2e_node: refactor getCurrentKubeletConfig
2020-02-24 13:11:36 -08:00
Patrick Lang
886214f48c Fix recent context change after rebase 2020-02-24 19:53:25 +00:00
Patrick Lang
63ff616aa8 Adding Windows CPU limit tests 2020-02-24 19:46:39 +00:00
Jan Chaloupka
0f3e0b40f6 scheduler_perf: describe how to run BenchmarkPerfScheduling manually 2020-02-24 19:12:00 +01:00
Antonio Ojea
64c4876ccd
Add e2e session affinity timeout test
The service session affinity allows to set the maximum session
sticky timeout.
This commit adds e2e tests to check that the session is sticky
before the timeout and is not after.
2020-02-24 09:48:18 +01:00
Antonio Ojea
e268f033b6
Revert "Mark session affinity tests as [Flaky]"
This reverts commit f00ac0694b.
2020-02-24 09:48:18 +01:00
Antonio Ojea
457c05feb8
deflake e2e session affinity tests
Executing commands in pods is expensive in terms of time and the
execution time is unpredictable and random.
The session affinity tests send several http requests from a pod
to check that the session is sticky. Instead of executing one
http request at a time, we can execute several requests from the
pod at one time and process the output.
2020-02-24 09:48:18 +01:00
Claudiu Belu
fdec0ee121 tests: Create pod for Windows test
A previous commit (#88471) changed the createTestPod function, but didn't update
the service.go consumer, leading to a pod not being created.
2020-02-23 02:09:14 -08:00
Claudiu Belu
1a8183d262 tests: Adds configurable docker conf for test
The image "gcr.io/authenticated-image-pulling/windows-nanoserver:v1" is not a
manifest list, and it is only useful for Windows Server 1809, which means that the
test "should be able to pull from private registry with secret" will fail for
environments with Windows Server 1903, 1909, or any other future version we might
want to test.

This commit adds the the ability to have an alternative private image to pull by
using a configurable docker config file which contains the necessary credentials
needed to pull the image.
2020-02-22 22:21:28 -08:00
Kubernetes Prow Robot
9a8e869590
Merge pull request #88417 from aramase/conformance-nodeport
check ip family for node port connectivity test
2020-02-21 22:30:56 -08:00
Kubernetes Prow Robot
8ac7a5bdc1
Merge pull request #88374 from tanjunchen/remove-TODO-simplify-code
test/e2e/framework/node/:remove TODO and and make some functions private
2020-02-21 18:32:13 -08:00
Kubernetes Prow Robot
26f8535838
Merge pull request #88354 from jiahuif/nodee2e-stack-protector-flags
node-e2e testing: fix alias for stack protector kernel config.
2020-02-21 18:31:51 -08:00
Kubernetes Prow Robot
23045f9247
Merge pull request #88057 from julianvmodesto/remove-deprecated-rolling-update
Remove deprecated rolling-update command
2020-02-21 18:31:30 -08:00
Kubernetes Prow Robot
c69c91987b
Merge pull request #87811 from mborsz/pv
Remove unnecessary calls to GCE API after PD is created
2020-02-21 18:31:01 -08:00
Kubernetes Prow Robot
2e0760c659
Merge pull request #87611 from claudiubelu/test-images/updates-readme
test images: Adds Image Promoter details in the README
2020-02-21 18:30:48 -08:00
Kubernetes Prow Robot
3631887a28
Merge pull request #87215 from egernst/e2e-scheduler
E2e scheduler: introduce e2e test for PodOverhead
2020-02-21 15:44:47 -08:00
Abhishek Raut
f3038d5f5a Add e2e test for stacked NetworkPolicies with overlapping CIDR
Add a new e2e test to test multiple stacked NetworkPolicies with
Except clauses in IPBlock which overlaps with an allowed CIDR in
another NetworkPolicy. This test ensures that the order of the
creation of NetworkPolicies should not matter while evaluating
a Pods access to another Pod.
2020-02-21 15:32:04 -08:00
Anish Ramasekar
c811fc58ef
check ip family for node port connectivity test 2020-02-21 14:43:06 -08:00
Jiahui Feng
68b7564e7e fix alias for stack protector kernel config.
- fix YAML syntax
- alias -> aliases
- no need for CONFIG prefix
- add renamed config since 4.18
2020-02-21 11:04:48 -08:00
Eric Ernst
1d896db61c e2e-scheduling: add basic PodOverhead test
Add a test to verify that Overhead is being considered during
predication.

Signed-off-by: Eric Ernst <eric.ernst@intel.com>
2020-02-21 08:42:41 -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
Claudiu Belu
bb0a5ab016 tests: Fixes Hybrid cluster network test
Previously, we've centralized several images into agnhost, including
test-webserver.

The Hybrid cluster network test was using the test-webserver image, and
was updated to use agnhost, but without properly making it so it behaves like
test-webserver, resulting in a failing test.
2020-02-21 04:37:45 -08:00
tanjunchen
7c3f6fa323 test/e2e/framework/node/:remove TODO and make some functions private 2020-02-21 18:45:09 +08:00
Claudiu Belu
91dc590cde test images: Adds building README
Adds a README explaining the image building process, including the
Windows Container image building process.
2020-02-21 02:11:26 -08:00
Claudiu Belu
b71fbdb364 Image Promoter: Adds Windows build nodes for Windows test images
We have added and enabled the Image Promoter on the k/k test images, which
will build the conformance images after a PR that affects kubernetes/test/images
merges.

We have added support for image-util.sh to handle external Windows Docker connections
in order to build Windows images.

This PR enables the Image Promoter to use some Windows nodes to build the necessary
Windows images.
2020-02-21 02:09:49 -08:00
Claudiu Belu
fe15a46939 test images: Use multiple Windows nodes to build images
In order to build Windows container images for multiple OS versions,
--isolation=hyperv is required. However, not all clouds / nodes supports
or have it enabled by default, which is why we're going to rely on
having multiple nodes to build the Windows images, until this issue
is addressed.
2020-02-21 02:09:49 -08:00
Claudiu Belu
3cdb7a89cb test images: Adds multiple Windows channels support
This commit adds support for building test images for multiple
Windows versions, as we have to support both LTS and SAC channels.

With this, the format for Windows images in the BASEIMAGE files is:

OS/ARCH/OS_VERSION

Also adds --isolation-hyperv to the Windows docker build command, making sure
that container images for multiple OS versions can be built using the same
Windows node.
2020-02-21 02:09:49 -08:00
Claudiu Belu
296464d968 test images: Adds Windows support (part 1)
Adds Windows support to the test/images/image-util.sh script.

A Windows node with Docker installed is required to build Windows images.
The connection URL to it must be set in the REMOTE_DOCKER_URL env variable.
Additionally, the authentication to the remote docker node is done through
certificates, which must be found in ~/.docker.

By default, the REMOTE_DOCKER_URL env variable is set to "" in the Makefile,
and because of it, the image-util.sh script will skip building and pushing
Windows images.

Added GOOS argument to the go build process in order to be able to build
Windows binaries. Additionally, the OS env variable was added to the images
Makefiles (default value is "linux") in order to maintain default behaviour.

Some images require a different Dockerfile for Windows images, since they
have different ways of installing dependencies. Because of this, if a image
needs to be built for Windows, it will first check for a Dockerfile_windows
file instead of the default one. If there isn't one, it means that the
same Dockerfile can be used for both Windows and Linux.

All Windows images will be based on the image
"mcr.microsoft.com/windows/servercore:ltsc2019". There are a couple of features
that are needed from this image, especially powershell.

Added busybox image for Windows. Most Windows images will be based on it, which
will help reduce the command line differences between Linux and Windows, but
not entirely.

Added Windows support for agnhost image.
2020-02-21 02:09:49 -08:00
Claudiu Belu
a4ceb143dd images: Changes the image naming template
Changes the image naming template from:

$REGISTRY/$image-$arch:$TAG

to

$REGISTRY/$image:$TAG-$os_name-$arch

The previous naming template would generate a plethora of images (Ai * N images,
where Ai is the number of OS/architectures for the image i and N is the number
of images), while the new naming template will reduce the number of images to N.

The new template also includes the OS name, as we plan to integrate Windows
images into the manifest lists as well.
2020-02-21 02:09:49 -08:00
Claudiu Belu
25b7a13864 images: Configurable BASEIMAGE hierarchy
When building images, their REGISTRY can be set to a custom
one, instead of the default "gcr.io/kubernetes-e2e-test-images" or
"us.gcr.io/k8s-artifacts-prod/e2e-test-images".
Some images are based on other images we're already building
(e.g.: kitten, nautilus), but their base images
are set in the default registry name, which can be undesirable.

This commit addresses this issue.
2020-02-21 02:09:49 -08:00
Claudiu Belu
efcdb929de images: Adds linux/ prefix to BASEIMAGE entries
Windows images will require other base images, and thus, we will need
to explicitly specify the OS type a base image is for in order to
avoid confusion or errors.
2020-02-21 02:09:49 -08:00
Claudiu Belu
22a5fbcfa9 test images: Bumps image versions
The way the images are built is going to be changed, and in order to avoid
overwritting and breaking the current images, the image versions are bumped.
2020-02-21 02:09:49 -08:00
Kubernetes Prow Robot
d675e55915
Merge pull request #88299 from kolyshkin/e2e-framework-log
e2e/test/framework: optimize PrunedStack()
2020-02-20 21:20:46 -08:00
Kubernetes Prow Robot
468af72a15
Merge pull request #88301 from abhiraut/e2e-except
Add e2e test to test Except clause in NetworkPolicy
2020-02-20 16:30:41 -08:00
Kubernetes Prow Robot
1591590030
Merge pull request #88292 from julianvmodesto/add-dry-run
Add --dry-run=server|client|none to more kubectl commands
2020-02-20 16:30:25 -08:00
Kubernetes Prow Robot
57764e34d4
Merge pull request #87921 from Deepthidharwar/cpu-mgr-e2etest-NUMA-nodes
e2e test CPU-Manager: Extend CPUManager e2e tests to run on MultiNUMA node with/without HT
2020-02-20 16:29:57 -08:00
Eric Ernst
e5760015d2 e2e-framework-node: add runtimeclass to dedup code
Similar functionality is required across e2e tests for RuntimeClass.
Let's create runtimeclass as part of the framework/node package.

Signed-off-by: Eric Ernst <eric.ernst@intel.com>
2020-02-20 15:58:52 -08:00
Kir Kolyshkin
78e98da1db test/e2e/framework/log: optimize PrunedStack()
Use bytes instead of strings, and slice in-place filter
(see https://github.com/golang/go/wiki/SliceTricks#filter-in-place)
to avoid copying strings around.

In my benchmark it shows almost 2x improvement:

BenchmarkString-8    	 1477207	     10198 ns/op
BenchmarkBuffer-8    	 1561291	      7622 ns/op
BenchmarkInPlace-8   	 2295714	      5202 ns/op

String is the original implementation, Buffer is an intermediary
one that uses strings.Builder, and InPlace is the one from this commit.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2020-02-20 12:58:26 -08:00
Abhishek Raut
a980a1fa24 Add e2e test to test Except clause in NetworkPolicy
Add a new e2e test to test the Except clauses in IPBlock CIDR
based NetworkPolicies. This test adds an egress rule which
allows client to connect to a CIDR which includes the
ServerPod's IP, however carves an except subnet which excludes
this ServerPod.
2020-02-20 11:32:00 -08:00
Kubernetes Prow Robot
3ae1b0ce80
Merge pull request #88234 from fromanirh/topomgr-e2e-tests-multicnt
e2e topology manager: single-numa-node multi container tests
2020-02-20 10:35:56 -08:00
Francesco Romani
64904d0ab8 e2e: topomgr: extend tests to all the policies
Per https://github.com/kubernetes/enhancements/blob/master/keps/sig-node/0035-20190130-topology-manager.md#multi-numa-systems-tests
we validate only the results for single-numa node policy,
because the is no a simple and reliable way to validate
the allocation performed by the other policies.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2020-02-20 18:22:34 +01:00
Kubernetes Prow Robot
51e8cafd70
Merge pull request #88353 from roycaihw/deflake/run-crd-test
run_crd_tests: wait for pruned CR to be invisible from API
2020-02-20 03:07:14 -08:00
Francesco Romani
a249b93687 e2e: topomgr: address reviewer comments
Signed-off-by: Francesco Romani <fromani@redhat.com>
2020-02-20 10:31:09 +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
Haowei Cai
aecce98a54 wait for pruned CR to be invisible from API 2020-02-19 17:41:13 -08:00
Kubernetes Prow Robot
96dfa3f605
Merge pull request #88341 from tnqn/flaky-networkpolicy-e2e
NetworkPolicy e2e test should wait for Pod ready
2020-02-19 16:12:11 -08:00
Kubernetes Prow Robot
992aa00a46
Merge pull request #85819 from nan-yu/pdb_e2etest
Add more tests for the pod disruption budget endpoints
2020-02-19 16:11:04 -08:00
Julian V. Modesto
a9ec444d74 Add --dry-run to more kubectl commands.
- delete
- taint
- replace
2020-02-19 17:53:21 -05:00
Kubernetes Prow Robot
d4c5637680
Merge pull request #88200 from liu-cong/benchmark
Make MetricCollector configurable for scheduler benchmark tests
2020-02-19 09:38:26 -08:00
Quan Tian
92759ea642 NetworkPolicy e2e test should wait for Pod ready
The test "should enforce egress policy allowing traffic to a server in a
different namespace based on PodSelector and NamespaceSelector
[Feature:NetworkPolicy]" is flaky because it doesn't wait for the server
Pod to be ready before testing traffic via its service, then even the
NetworkPolicy allows it, the SYN packets will be rejected by iptables
because the service has no endpoints at that moment.

This PR fixes it by making it wait for Pods to be ready like other
tests.
2020-02-20 00:32:12 +08:00
Francesco Romani
833519f80b e2e: topomgr: properly clean up after completion
Due to an oversight, the e2e topology manager tests
were leaking a configmap and a serviceaccount.
This patch ensures a proper cleanup

Signed-off-by: Francesco Romani <fromani@redhat.com>
2020-02-19 17:15:42 +01:00
Francesco Romani
7c12251c7a e2e: topomgr: add multi-container tests
Add tests to check alignment of pods which contains more than one
container.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2020-02-19 17:15:42 +01:00
Francesco Romani
8e9d76f1b9 e2e: topomgr: validate all containers in pod
Up until now, the test validated the alignment of resources
only in the first container in a pod. That was just an overlook.
With this patch, we validate all the containers in a given pod.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2020-02-19 17:15:42 +01:00
Francesco Romani
ddc18eae67 e2e: topomgr: autodetect NUMA position of VF devs
Add autodetection code to figure out on which NUMA node are
the devices attached to.
This autodetection work under the assumption all the VFs in
the system must be used for the tests.
Should not this be the case, or in general to handle non-trivial
configurations, we keep the annotations mechanism added to the
SRIOV device plugin config map.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2020-02-19 17:15:42 +01:00
Francesco Romani
0c2827cb50 e2e: topomgr: remove single-numa node hack
On single-NUMA node systems the numa_node of sriov devices was
sometimes reported as "-1" instead of, say, 0. This makes some
tests that should succeed[0] fail unexpectedly.

The reporting works as expected on real multi-NUMA node systems.

This small workaround was added to handle this corner case,
but it makes overall the code less readable and a bit too lenient,
hence we remove it.

+++

[0] on a single NUMA node system some resources are obviously
always aligned if the pod can be admitted. It boils down to the
node capacity at pod admittal time.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2020-02-19 17:15:41 +01:00
Francesco Romani
bb6beb99e5 e2e: topomgr: early check to detect VFs, not PFs
The e2e_node topology_manager check have a early, quick check
to rule out systems without sriov device, thus skipping the tests.

The first version of the ckeck detected PFs, (Physical Functions),
under the assumption that VFs (Virtual Functions) were already been
created. This works because, obviously, you can't have VFs without PFs.

However, it's a little safer and easier to understand if we check
firectly for VFs, bailing out from systems which don't provide them.

Nothing changes for properly configured test systems.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2020-02-19 17:15:41 +01:00
Kubernetes Prow Robot
507a2decf9
Merge pull request #88228 from pohly/node-podlog
podlogs: include node name in prefix
2020-02-19 03:28:25 -08:00
Patrick Ohly
0ec85320cf podlogs: include node name in prefix
This is useful for logs from daemonset pods because for those it is
often relevant which node they ran on because they interact with
resources or other pods on the host.

To keep the log prefix short, it gets limited to a maximum length of
10 characters.
2020-02-19 10:10:23 +01: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
Kubernetes Prow Robot
3a828af963
Merge pull request #88247 from kolyshkin/e2e-node-selinux-fix
test/e2e/node: fix selinux test failure
2020-02-18 20:58:51 -08:00
Kubernetes Prow Robot
cc36dda7e7
Merge pull request #88288 from sbezverk/endpointslice_v1beta1
Switch EndpointSlice e2e test to use discovery v1beta1 api
2020-02-18 19:10:35 -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
Kubernetes Prow Robot
5ab1f3464c
Merge pull request #88126 from johnbelamaric/behaviors-readme
Add a README describing behaviors
2020-02-18 14:04:41 -08:00
Kubernetes Prow Robot
1b2a81e6ad
Merge pull request #87578 from Jefftree/bdd-tooling
Add tooling around validation for Behavior Driven Conformance
2020-02-18 14:04:25 -08:00
Cong Liu
7f56c753b3 Make MetricCollector configurable for scheduler benchmark tests 2020-02-18 14:02:57 -08:00
Serguei Bezverkhi
5b7ae34ead Switch EndpointSlice to use discovery v1beta1 api
Signed-off-by: Serguei Bezverkhi <sbezverk@cisco.com>
2020-02-18 16:52:21 -05:00
Nan Yu
b757ca16e2 Add more E2E tests for the ../poddisruptionbudgets endpoint 2020-02-18 11:19:30 -08:00
John Belamaric
ca399e6315 Add a README describing behaviors 2020-02-18 09:23:46 -08:00
Kir Kolyshkin
70a2857998 test/e2e/node: fix selinux test failure
Commit 69a473be3 broke the test case (that was checking
that a file from a volume can't be read) by adding a
(wrong) assumption that error should be nil.

Fix the assumption (we do expect the error here).
Note that we were checking file contents before; now when
we check the error from read, checking the contents is
redundant.

The other issue with the test is SELinux should be in enforcing
mode for this to work, so let's check that first to avoid
false positives.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2020-02-17 09:46:59 -08:00
tanjunchen
119f4df9c5 test/e2e/framework:remove unused code and move const 2020-02-17 23:31:50 +08:00
tanjunchen
9c8d4bedcc test/e2e/framework:remove TODO and make func private 2020-02-17 22:17:54 +08:00
Kubernetes Prow Robot
48def7e7c3
Merge pull request #88105 from Huang-Wei/pts-e2e
Graduate PodTopologySpread to Beta
2020-02-16 18:59:28 -08:00
Kubernetes Prow Robot
3d09d25292
Merge pull request #87992 from marosset/windows-kubelet-stats-test-serial
Run Windows kubelet stats e2e tests serially to reduce test flakes
2020-02-16 10:39:27 -08:00
Francesco Romani
53cda47913 update bazel configuration
Signed-off-by: Francesco Romani <fromani@redhat.com>
2020-02-16 10:07:12 +01:00
Kubernetes Prow Robot
3b22fcc7bd
Merge pull request #88189 from skilxn-go/RemovePreScoreNodeListArguments
[Scheduler Framework]Remove `FilteredNodesStatuses` argument from `PreScore`'s interface
2020-02-15 13:29:28 -08:00
Kubernetes Prow Robot
1c60045db0
Merge pull request #88173 from BenTheElder/gives-a-whole-new-pause
upgrade pause everywhere
2020-02-15 02:11:27 -08:00
skilxn-go
8fd0d8028f Remove FilteredNodesStatuses argument from PreScore interface 2020-02-15 13:53:04 +08:00
Julian V. Modesto
d97169f59a Clean up --dry-run values.
- Clean up --dry-run values in tests, docs, and scripts
- Fix --dry-run for auth reconcile and add a test
2020-02-15 00:43:30 -05:00
Wei Huang
c93dffdfc4
E2E tests for PodTopologySpread 2020-02-14 16:48:35 -08:00
Benjamin Elder
3fb7183215 bump pause to 3.2 in test/ 2020-02-14 14:03:19 -08: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
Kubernetes Prow Robot
4a45ae3236
Merge pull request #87645 from fromanirh/topomgr-e2e-tests
e2e-topology-manager: single-NUMA-node test
2020-02-14 08:06:19 -08:00
Kubernetes Prow Robot
4e8a7f4a4b
Merge pull request #87355 from mattjmcnaughton/mattjmcnaughton/remove-unnecessary-sudo-from-e2e
Clean up TODO around running test as sudo
2020-02-14 06:10:17 -08:00
Francesco Romani
bb770c0325 e2e: getCurrentKubeletConfig: move in subpkg
Address review comments and move the helper function
in the `framework/kubelet` package to avoid circular deps
(see https://github.com/kubernetes/kubernetes/issues/81245)

Signed-off-by: Francesco Romani <fromani@redhat.com>
2020-02-14 10:51:08 +01:00
Kubernetes Prow Robot
0e37bcedef
Merge pull request #88144 from gavinfish/crlf-lf
Change line terminators from CRLF to LF
2020-02-13 22:44:43 -08:00
Kubernetes Prow Robot
1e84adb6af
Merge pull request #88139 from BenTheElder/pause-manifest
switch pause to docker manifest instead of manifest-tool
2020-02-13 22:44:30 -08:00
Julian V. Modesto
932500c015 Remove deprecated rolling-update command 2020-02-13 23:52:53 -05:00
Kubernetes Prow Robot
4c08717513
Merge pull request #88143 from Huang-Wei/GetPodsInNamespace-bug
Fix a bug in e2epod function
2020-02-13 19:48:26 -08:00
Kubernetes Prow Robot
12eeb34a6d
Merge pull request #88140 from wongma7/websocket-header
Construct http Request using http.NewRequest
2020-02-13 19:48:17 -08:00
Deepthi Dharwar
3342e4a09a Extend CPUManager e2e tests to run on MultiNUMA node with/without HT 2020-02-14 07:59:13 +05:30
drfish
6e933199c9 Change line terminators from CRLF to LF 2020-02-14 09:55:45 +08:00
Kubernetes Prow Robot
e5524f5f1a
Merge pull request #88099 from cheftako/master
Fix gce-cos-master-reboot test
2020-02-13 16:55:33 -08:00
Kubernetes Prow Robot
b5af3b86ed
Merge pull request #87079 from gavinfish/drfish_typo_resetting
Fix typo from reseting to resetting
2020-02-13 16:54:32 -08:00
Kubernetes Prow Robot
176f74e370
Merge pull request #85909 from tnqn/failing-networkpolicy-test
Fix a failing test in NetworkPolicy e2e
2020-02-13 16:54:18 -08:00
Wei Huang
c83a860e9d
Fix a bug in e2epod function 2020-02-13 16:45:16 -08:00
Matthew Wong
ef8627c95e Construct http Request using http.NewRequest 2020-02-13 23:14:42 +00:00
Benjamin Elder
becc4b7d57 remove unused manifest-tool rules 2020-02-13 14:58:26 -08:00