Commit Graph

7524 Commits (e1af0c5fb150ecabc82acf08fe3af85d89af4344)

Author SHA1 Message Date
k8s-ci-robot e1a1aa2112
Merge pull request #69695 from justinsb/service_utils_typos
e2e: fix some small typos
2018-10-11 20:46:30 -07:00
k8s-ci-robot b516a99a01
Merge pull request #69568 from bclau/fixes-webhook-test
Fixes webhook test failures
2018-10-11 19:35:42 -07:00
k8s-ci-robot b3033a7278
Merge pull request #67934 from tanshanshan/typo828
fix spelling mistakes
2018-10-11 18:26:24 -07:00
k8s-ci-robot cdf264cab5
Merge pull request #69651 from justinsb/faster_dns_e2e
e2e: speed up DNS tests
2018-10-11 15:22:25 -07:00
Justin Santa Barbara ee1b0c81a7 e2e: fix some small typos 2018-10-11 13:06:42 -07:00
k8s-ci-robot 632df63061
Merge pull request #68822 from pohly/csi-pod-creation
CSI E2E: retry csi-pod creation
2018-10-11 12:32:28 -07:00
Justin Santa Barbara ed7840ad50 e2e: speed up DNS tests
Poll a little more often, and use PollImmediate instead of Poll.
2018-10-10 19:33:57 -07:00
Justin Santa Barbara 9023dae86b e2e: remove workarounds for etcd2 test jobs
Now we've removed support for etcd2, we should make sure we're testing
chunking fully.
2018-10-10 19:31:57 -07:00
k8s-ci-robot 9c94363ef9
Merge pull request #69105 from pohly/e2e-settings
E2E settings
2018-10-10 12:01:07 -07:00
k8s-ci-robot 830e09cc96
Merge pull request #46517 from goblain/cli-port-forward-listen
port-forward listen on address
2018-10-09 12:38:55 -07:00
k8s-ci-robot 637ba154c8
Merge pull request #65189 from juanvallejo/jvallejo/path-fixes-cmd-copy
fix paths w shortcuts when copying from pods
2018-10-09 10:14:28 -07:00
juanvallejo e55a28d169
fix paths w shortcuts when copying from pods
Addresses an issue where copying from a remote location containing path
shortcuts (podName:../../../tmp/foo) causes an index out of range panic.
2018-10-09 10:27:54 -04:00
k8s-ci-robot 321313b19e
Merge pull request #69004 from mgdevstack/master-pods-websocket-conformance
Promote pod's websocket based NodeConformance tests to Conformance
2018-10-08 22:28:12 -07:00
k8s-ci-robot a34123d9c3
Merge pull request #67901 from dims/drop-flaky-test-from-conformance
Remove conformance tag from flaky test
2018-10-08 19:24:58 -07:00
Claudiu Belu 6db2dadc87 Fixes webhook test failures
The test "Should be able to deny attaching pod" can randomly fail
because it never waits for the pod to enter a "Running" state. Because
of this, the "kubectl attach" command can potentially fail, if the pod is
not in the correct state.

Additionally, if the "kubectl attach" actually manages to attach, then the
test will hang. The command should be executed with a timeout.
2018-10-08 16:55:33 -07:00
k8s-ci-robot 981a064c85
Merge pull request #68793 from aveshagarwal/master-rhbz-1628998
Fix DS tests to set node selectors related annotations on test namespaces to empty.
2018-10-08 10:41:57 -07:00
Radek Pieczonka 4643c6e95e port-forward listen on address
adds an address flag to kubectl port-forward to allow to bind to a different ip then localhost
2018-10-07 22:18:18 +02:00
k8s-ci-robot c00f19bd15
Merge pull request #68403 from wgliang/master.deprecate-Parallelize
Replace Parallelize with function ParallelizeUntil and formally depre…
2018-10-06 09:40:07 -07:00
k8s-ci-robot bc135bd328
Merge pull request #69198 from mkumatag/fix-tests
Use proper manifest images
2018-10-05 20:25:23 -07:00
k8s-ci-robot 0abb0f533a
Merge pull request #69377 from justinsb/avoid_spurious_highlighting
e2e: change test strings to avoid error highlighting
2018-10-05 18:47:51 -07:00
k8s-ci-robot 0f17e9ade6
Merge pull request #69386 from cblecker/go-1.11
Update to go1.11.1
2018-10-05 17:35:51 -07:00
k8s-ci-robot 13705ac81e
Merge pull request #68310 from cheftako/cpiMove
Moving the cloudprovider interface to staging.
2018-10-05 13:29:01 -07:00
Christoph Blecker 97b2992dc1
Update gofmt for go1.11 2018-10-05 12:59:38 -07:00
Patrick Ohly 4423735dc3 e2e: update bazel BUILD files
Generated via hack/update-bazel.sh.
2018-10-05 14:28:03 +02:00
Patrick Ohly 7305a3e395 e2e/lifecycle: decentralized settings
Tests settings should be defined in the test source code itself
because conceptually the framework is a separate entity that not all
test authors can modify.

For the sake of backwards compatibility the name of the command line
flags are not changed.
2018-10-05 14:24:35 +02:00
Patrick Ohly 752203d3fa e2e/instrumentation: decentralized settings
Tests settings should be defined in the test source code itself
because conceptually the framework is a separate entity that not all
test authors can modify.

Using the new framework/config code also has several advantages:
- defaults can be set with less code
- no confusion around what's a duration
- the options can also be set via command line flags

While at it, a minor bug gets fixed:
- readConfig() returns only defaults when called while
  registering Ginkgo tests because Viperize() gets called later,
  so the scale in the logging soak test couldn't really be configured;
  now the value is read when the test runs and thus can be changed

The options get moved into the "instrumentation.logging"
resp. "instrumentation.monitoring" group to make it more obvious where
they are used. This is a breaking change, but that was already
necessary to improve the duration setting from plain integer to a
proper time duration.
2018-10-05 14:24:35 +02:00
Patrick Ohly 8cde9c08f0 e2e/storage: decentralized settings
Tests shouldn't have to use the central context for their settings,
because conceptually tests and framework get developed independently.

This does not yet use the new framework/config utility code because
that code still needs to be reviewed.

Besides moving the flags, they also get renamed from the top-level
"--csiImage{Version|Registry}" to
"--storage.csi.image.{version|registry}". These flags were introduced
fairly recently and shouldn't be in use much, so now is a good time to
introduce a hierarchical naming for storage flags, in particular
because more flags will be added soon.
2018-10-05 14:24:35 +02:00
Patrick Ohly cf0dcc6ab2 e2e: clarify and enhance configuration support
Storing settings in the framework's TestContext is not something that
out-of-tree test authors can do because for them the framework is a
read-only upstream component. Conceptually the same is true for
in-tree tests, so the recommended approach is to define configuration
settings in the code that uses them.

How to do that is a bit uncertain. Viper has several
drawbacks (maintenance status uncertain, cannot list supported
options, cannot validate the configuration file). How to handle
configuration files is currently getting discussed for kubeadm, with
similar concerns about
Viper (https://github.com/kubernetes/kubeadm/issues/1040).

Instead of making a choice now for E2E, the recommendation is that
test authors continue to define command line flags as before, except
that they should do it in their own code and with better flag names.

But the ability to read options also from a file is useful, so
several enhancements get added:
- all settings defined via flags can also be read from a
  configuration file, without extra work for test authors
- framework/config makes it possible to populate a struct directly
  and define flags with a single function call
- a path and file suffix can be given to --viper-config (as in
  "--viper-config /tmp/e2e.json") instead of expecting the file in
  the current directory; as before, just plain "--viper-config e2e"
  still works
- if "--viper-config" is set, the file must exist; otherwise the
  "e2e" config is optional (as before)
- errors from Viper are no longer silently ignored, so syntax errors
  are detected early
- Viper support is optional: test suite authors who don't want
  it are not forced to use it by the e2e/framework
2018-10-05 14:22:18 +02:00
Guoliang Wang c2622dd9d8 Replace Parallelize with function ParallelizeUntil and formally deprecate the Parallelize 2018-10-05 17:56:56 +08:00
k8s-ci-robot 766d860f86
Merge pull request #69021 from mgdevstack/master-kubelet-conformance
Promote kubelet NodeConformance tests to Conformance
2018-10-04 18:19:25 -07:00
Walter Fender f3f46d5f5a Moving the cloudprovider interface to staging.
Individual implementations are not yet being moved.
Fixed all dependencies which call the interface.
Fixed golint exceptions to reflect the move.
Added project info as per @dims and
https://github.com/kubernetes/kubernetes-template-project.
Added dims to the security contacts.
Fixed minor issues.
Added missing template files.
Copied ControllerClientBuilder interface to cp.
This allows us to break the only dependency on K8s/K8s.
Added TODO to ControllerClientBuilder.
Fixed GoDeps.
Factored in feedback from JustinSB.
2018-10-04 14:41:20 -07:00
k8s-ci-robot 166490a473
Merge pull request #69103 from pohly/testfiles
E2E: handling extra files
2018-10-04 13:39:49 -07:00
k8s-ci-robot c568da3ab4
Merge pull request #69384 from oomichi/add-distros
Update options of master/node-os-distro
2018-10-04 10:09:45 -07:00
k8s-ci-robot 16256296d2
Merge pull request #69353 from davidz627/fix/provisionerName
Update provisioner name and don't supply zone in GCE PD CSI test
2018-10-03 15:21:59 -07:00
k8s-ci-robot 10368ee68b
Merge pull request #68915 from oomichi/issue/68914
Add fall-back to get node IP on host_path tests
2018-10-03 13:01:54 -07:00
Kenichi Omichi b259e91420 Update options of master/node-os-distro
Some e2e tests are skipped by depending on Linux distribution of
master and node, and the options can be one of "debian", "ubuntu",
"gci" or "custom". This updates the help message of the options.
2018-10-03 17:44:28 +00:00
k8s-ci-robot c635e19e59
Merge pull request #69349 from davidz627/fix/gcePDCSITest
Add PodSecurityPolicy Binding back to GCE PD CSI Test and make non-serial
2018-10-03 10:38:16 -07:00
Justin Santa Barbara 153f91693b e2e: change test strings to avoid error highlighting
The words "error" and "fail" are magic in test output, and are
highlighted in the build logs.  Change some test strings to avoid
hitting the highlighting in normal operation.
2018-10-03 09:37:26 -07:00
k8s-ci-robot c179a9c9df
Merge pull request #67356 from yliaog/master
Moved staging/src/k8s.io/client-go/tools/bootstrap to staging/src/k8s…
2018-10-02 20:35:51 -07:00
k8s-ci-robot 2d67d782de
Merge pull request #69225 from gnufied/volume-limit-tidy-up
Enable volume limit feature by default
2018-10-02 17:03:32 -07:00
David Zhu fa41fa9acd Update provisioner name and don't supply zone in GCE PD CSI test 2018-10-02 16:52:14 -07:00
David Zhu fd18fc548d Remove redundant [Serial] tags and dont delete CRD's at the end of test 2018-10-02 16:01:38 -07:00
David Zhu e7af381538 Add Pod Security Policy back in to GCE PD Cluster Role 2018-10-02 14:42:14 -07:00
Hemant Kumar e38cfb61be Add a e2e test to check node limits 2018-10-02 13:59:05 -04:00
Yu Liao fc21115c3f Moved staging/src/k8s.io/client-go/tools/bootstrap to staging/src/k8s.io/cluster-bootstrap 2018-10-02 09:46:13 -07:00
k8s-ci-robot 59957af125
Merge pull request #69283 from chrisohaver/trackdns2
Add option to track dns pods
2018-10-02 05:35:33 -07:00
k8s-ci-robot a27adf1612
Merge pull request #69300 from mrunalp/subpath_test_wait_for_event
test: Wait for pod event to show up
2018-10-02 01:12:00 -07:00
k8s-ci-robot a9823bc314
Merge pull request #69154 from pohly/csi-0.4.0
CSI sidecar containers 0.4.0
2018-10-02 01:11:51 -07:00
Patrick Ohly 20c9549c10 e2e: update bazel BUILD files
Generated via hack/update-bazel.sh.
2018-10-02 08:31:03 +02:00
Patrick Ohly 212af1ac29 e2e: abstract access to additional files
The new test/e2e/framework/testfiles package makes it possible to
write tests that do not depend on a specific way of providing
additional test files at runtime. Such tests and the framework are
then more easily reused in other test suites.

In the test/e2e suite file access is enabled based on the existing
"repo-root" command line parameter and the built-in bindata. Tests
using the new API will first check for files under "repo-root" and
then fall back to the builtin data. This way, users of a test binary
can modify those files without having to rebuild the binary.

"repo-root" is still needed because at least some tests check for
additional files (secret.yaml, via ingress_utils.go) that are not part
of the upstream source code and thus may or may not be built into a
test binary.

Tests using bindata or repo-root directly get modified to use the new
API, or removed when they are obsolete: test/e2e/examples.go depended
on files that were removed in
https://github.com/kubernetes/kubernetes/pull/61246 and thus can no
longer be run in Kubernetes. Moving the tests to kubernetes/examples
is tracked in https://github.com/kubernetes/examples/issues/214.

The file removal did not break the automated E2E testing probably
because the tests are under the Feature:Example tag and thus not
enabled during normal CI runs.

Removing also the obsolete tests makes it simpler to rework the
"repo-root" setting because less code uses it.

Related-to: #66649 and #23987
2018-10-02 08:31:03 +02:00