Commit Graph

12446 Commits (4c18fbcbb58c6b3d649498a4c53736f76a764d7e)

Author SHA1 Message Date
Kubernetes Prow Robot b862590bfc
Merge pull request #73847 from wojtek-t/watch_metric
Add metric exposing amount of processed init events in watchcache
2019-02-10 03:47:35 -08:00
Patrick Ohly 54d8f1648f e2e/storage: improve PV checking
TestDynamicProvisioning had multiple ways of choosing additional
checks:
- the PvCheck callback
- the builtin write/read check controlled by a boolean
- the snapshot testing

Complicating matters further, that builtin write/read test had been
more customizable with new fields `NodeSelector` and
`ExpectUnschedulable` which were only set by one particular test (see
https://github.com/kubernetes/kubernetes/pull/70941).

That is confusing and will only get more confusing when adding more
checks in the future. Therefore the write/read check is now a separate
function that must be enabled explicitly by tests that want to run it.
The snapshot checking is also defined only for the snapshot test.

The test that expects unschedulable pods now also checks for that
particular situation itself. Instead of testing it with two pods (the
behavior from the write/read check) that both fail to start, only a
single unschedulable pod is created.

Because node name, node selector and the `ExpectUnschedulable` were
only used for checking, it is possible to simplify `StorageClassTest`
by removing all of these fields.

Expect(err).NotTo(HaveOccurred()) is an anti-pattern in Ginkgo testing
because a test failure doesn't explain what failed (see
https://github.com/kubernetes/kubernetes/issues/34059). We avoid it
now by making the check function itself responsible for checking
errors and including more information in those checks.
2019-02-09 14:20:17 +01:00
Patrick Ohly 5b8826b610 e2e/storage: use different names for test pods
When the provisioning test gets stuck, the log fills up with messages
about waiting for a certain pod to run. Now the pod names are
pvc-[volume-tester|snapshot]-[writer|reader] plus the random
number appended by Kubernetes. This makes it easier to see where the
test is stuck.
2019-02-09 14:20:17 +01:00
Patrick Ohly e92bdd14cc e2e/storage: remove unnecessary empty string checks
There is no need to check for empty strings, we can also directly
initialize structs with the value. The end result is the same when the
value is empty (empty string in the struct).
2019-02-09 14:20:17 +01:00
Patrick Ohly 315266b25e e2e: refine snapshot test
This addresses the two remaining change requests from
https://github.com/kubernetes/kubernetes/pull/69036:
- replace "csi-hostpath-v0" name check with capability
  check (cleaner that way)
- add feature tag to "should create snapshot with defaults" because
  that is an alpha feature

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
2019-02-09 14:20:17 +01:00
Patrick Ohly f8536e8e42 e2e: fix snapshot skip test
Even if snapshots are supported by the driver interface, the driver or
suite might still want to skip a particular test, so those checks
still need to be executed.
2019-02-09 14:19:37 +01:00
Andrew Kim ca6a051b00 remove cloud provider dependencies to pkg/volume
Co-authored-by: Weibin Lin <linweibin1@huawei.com>
2019-02-09 01:16:55 -05:00
Chao Xu e90409d735 add integration test 2019-02-08 16:15:43 -08:00
Kubernetes Prow Robot 8f7ccf8d4c
Merge pull request #69036 from wackxu/snapshottest
add e2e test for snapshot
2019-02-08 13:14:04 -08:00
Kubernetes Prow Robot 834c9a5e3d
Merge pull request #72491 from liggitt/delegated-auth-permissions
Ensure controller manager and scheduler can perform delegated auth checks
2019-02-08 11:53:52 -08:00
Yu Liao fa6699dc4d there could be existing resource quotas, count them first and check the
expected is the existing + 1
2019-02-08 11:35:56 -08:00
Michelle Au ddc1a9c8c8 add msau42 to approvers for volume e2es 2019-02-08 11:34:02 -08:00
Kubernetes Prow Robot 54a578d3a1
Merge pull request #72012 from yeya24/patch-1
fix typos lable -> label
2019-02-08 10:36:05 -08:00
Kubernetes Prow Robot b50c643be0
Merge pull request #73540 from rlenferink/patch-5
Updated OWNERS files to include link to docs
2019-02-08 09:05:56 -08:00
Jordan Liggitt 4212a9a05a Ensure controller manager and scheduler can perform delegated auth checks 2019-02-08 11:15:52 -05:00
wojtekt 0a0835e92d Add metric exposing amount of processed init events in watchcache 2019-02-08 13:03:33 +01:00
Kubernetes Prow Robot a7966022d7
Merge pull request #73714 from tallclair/debian-base
Bump debian-* base image versions to latest
2019-02-07 19:44:44 -08:00
Kubernetes Prow Robot eac19a3ab9
Merge pull request #73616 from dims/move-part-of-kubelet-apis-well-known-lables
move pkg/kubelet/apis/well_known_labels.go to staging/src/k8s.io/api/core/v1/
2019-02-07 19:44:34 -08:00
Jiaying Zhang 8408188cdf Update CudaVectorAdd test image to be built with Cuda10 docker image.
The previous version of CudaVectorAdd test image can still be used
in our testing. A later change will extend the existing gpu e2e tests
to run pods with two containers. One with CudaVectorAdd version1 and
the other with CudaVectorAdd version2 so that we can test both
Cuda versions.
2019-02-07 13:29:48 -08:00
Kubernetes Prow Robot 713eaf450f
Merge pull request #73511 from vikaschoudhary16/image-only
Add image for sample-device-plugin
2019-02-07 04:59:11 -08:00
vikaschoudhary16 0ec6bdd2b5 Add image for sample-device-plugin 2019-02-07 11:28:28 +05:30
Kubernetes Prow Robot 3dedf4b7f6
Merge pull request #73525 from cofyc/fix71237-intree
Implement localDriver with various local volume types
2019-02-06 10:44:37 -08:00
Kubernetes Prow Robot ae45068688
Merge pull request #72323 from danielqsj/dockershim
Change docker metrics to conform metrics guidelines
2019-02-06 09:30:54 -08:00
Kubernetes Prow Robot fcb0d60d4c
Merge pull request #73716 from deads2k/delete-all
add --all-namespaces to kubectl delete
2019-02-06 01:20:15 -08:00
Yecheng Fu aa87e4b57c Implement localDriver 2019-02-06 12:28:28 +08:00
Kubernetes Prow Robot 9384e93dc1
Merge pull request #73749 from wongma7/subpath-init-write-multiple
Fix multiple subpaths e2e: read/write in same container
2019-02-05 13:57:02 -08:00
Kubernetes Prow Robot 3f933ec7c4
Merge pull request #72407 from aespejel/fix_resource_consumer_metrics_endpoint
Fixed /metrics endpoint for resource consumer
2019-02-05 12:08:49 -08:00
Kubernetes Prow Robot fdfc3b86d8
Merge pull request #73258 from Betula-L/master
fix test config pod spec affinity mishandling
2019-02-05 10:48:59 -08:00
Davanum Srinivas b975573385
move pkg/kubelet/apis/well_known_labels.go to staging/src/k8s.io/api/core/v1/
Co-Authored-By: Weibin Lin <linweibin1@huawei.com>

Change-Id: I163b2f2833e6b8767f72e2c815dcacd0f4e504ea
2019-02-05 13:39:07 -05:00
David Eads 66b1f5ba67 add --all-namespaces to 2019-02-05 13:37:14 -05:00
Matthew Wong 613d8bb8ea Fix multiple subpaths e2e: read/write in same container 2019-02-05 10:55:27 -05:00
Kubernetes Prow Robot ffec91179d
Merge pull request #70156 from nagiesek/fix_pqdn_tests
Removes PQDNs from conformance tests and places them in their own tests
2019-02-05 06:47:28 -08:00
Kubernetes Prow Robot e91e032de2
Merge pull request #73522 from tnozicka/e2e-add-exec-debug
Enhance debuggability of e2e tests using exec command
2019-02-05 03:18:31 -08:00
Alfredo Espejel 688e1d1053 Fixed resource consumer to expose /metrics instead of /Metrics 2019-02-05 10:15:42 +01:00
Kubernetes Prow Robot 641b2adcd3
Merge pull request #73318 from wongma7/subpath-init-write
Do writes in init container before trying reads
2019-02-04 18:28:14 -08:00
Kubernetes Prow Robot 2a5a41a08b
Merge pull request #72947 from apelisse/wip-feature-serverside-apply-merge
Merge feature-serverside-apply back in master
2019-02-04 18:28:03 -08:00
Kubernetes Prow Robot 6a149864fb
Merge pull request #73285 from tallclair/typed-runtimeclass
Migrate RuntimeClass support to the generated typed client
2019-02-04 16:13:30 -08:00
jennybuckley 6b2e4682fe Minor fixes 2019-02-04 13:51:49 -08:00
Antoine Pelisse b55417f429 Plugin FieldManager in CRD handler, change to API 2019-02-04 13:51:49 -08:00
Antoine Pelisse 0e1d50e70f API Machinery, Kubectl and tests 2019-02-04 13:51:48 -08:00
Roy Lenferink b43c04452f Updated OWNERS files to include link to docs 2019-02-04 22:33:12 +01:00
Kubernetes Prow Robot 732cb10019
Merge pull request #73402 from pohly/e2e-vendor-parameter
e2e: reject unknown providers
2019-02-04 12:59:06 -08:00
Tim Allclair 1b9d0c1094 Bump debian-* base image versions to latest 2019-02-04 11:58:51 -08:00
Kubernetes Prow Robot 9d6ebf6c78
Merge pull request #73467 from ashishranjan738/newpackage
Refactor to use k8s.io/utils/net/ package instead of kubernetes/pkg/util/net/sets
2019-02-04 11:43:14 -08:00
Kubernetes Prow Robot 1a0a841abe
Merge pull request #73204 from bclau/tests/adds-linuxonly-tag
Adds [LinuxOnly] tag to conformance tests that cannot be run on Windows
2019-02-04 09:36:09 -08:00
Kubernetes Prow Robot 6ed54138ee
Merge pull request #73175 from soltysh/fix_jobttl
Report proper namespace in TTLAfterFinished test
2019-02-04 09:35:58 -08:00
Kubernetes Prow Robot d61aab2063
Merge pull request #72594 from pbarker/audit-proxy
audit-proxy image for dynamic audit e2e test
2019-02-04 09:35:46 -08:00
Kubernetes Prow Robot b4a02c359b
Merge pull request #71746 from rctl/rctl-wait-all
Add support for waiting by label selector or on all resources
2019-02-04 06:21:00 -08:00
Kubernetes Prow Robot d5a1ebbd33
Merge pull request #73634 from JoeWrightss/patch-2
Fix some typos in comment
2019-02-04 05:09:47 -08:00
Kubernetes Prow Robot c5da2c559f
Merge pull request #73270 from mm4tt/dump_systemd_journal
Allow dumping full systemd journal in log-dump.sh.
2019-02-04 00:30:13 -08:00
Ashish Ranjan 7be223e798 Refactor to use k8s.io/utils/net/ package instead of kubernetes/pkg/util/net/sets
Signed-off-by: Ashish Ranjan <ashishranjan738@gmail.com>
2019-02-04 10:34:53 +05:30
Kubernetes Prow Robot 0bd35d1b68
Merge pull request #73448 from AdamDang/patch-21
Fix some error in returned message
2019-02-03 18:20:51 -08:00
Matt Matejczyk 35543f8989 Allow dumping full systemd journal in log-dump.sh.
The feature is gated behind a newly introduced 'dump-systemd-journal' flag.
We want to dump the full systemd journal in our scalability performance tests.
2019-02-03 21:28:37 +01:00
Rasmus Jönsson 4c31e9855d Add support for waiting by label selector or on all resources
Add test for multiple deletions in kubectl watch
2019-02-02 16:26:00 +01:00
Kubernetes Prow Robot 9f872d0b85
Merge pull request #73486 from dashpole/fix_ubuntu_eviction
Fix node e2e localstorage eviction tests
2019-02-01 17:14:26 -08:00
Kubernetes Prow Robot 4331660fcd
Merge pull request #73445 from danielqsj/fix-exec
migrate the rest reference of pkg/util/exec to k8s.io/utils/exec
2019-02-01 17:14:15 -08:00
Kubernetes Prow Robot aee11a844c
Merge pull request #73596 from liggitt/deprecated-tests
Stop using beta apps versions
2019-02-01 16:02:08 -08:00
Kubernetes Prow Robot 153bc23365
Merge pull request #73403 from hello2mao/reduce-hard-code
Reduce hard code to avoid more mistakes
2019-02-01 14:32:14 -08:00
Nathan Gieseker 689db1b4cb removes incorrect dns name to resolve in dns test 2019-02-01 13:35:33 -08:00
Claudiu Belu 5daa08878f Adds [LinuxOnly] tag to conformance tests that cannot be run on Windows
Some of the tests cannot pass using Windows nodes due to various reasons:

- seLinuxOptions are not supported on Windows.
- Running as an UID / GID is not supported on Windows.
- file permissions work differently on Windows, and they cannot be set in
  the same manner as on Linux.
- individual files cannot be mounted in Windows Containers.
- Cannot create container using Linux image (e.g.: alpine) on Windows.

Because of this, it has been decided to use the "[LinuxOnly]" tag for the
tests which cannot run on Windows because of the mentioned reasons. This way,
when running tests using Windows nodes, those tests can simply be skipped by
adding the "[LinuxOnly]" tag to the ginkgo.skip argument.
2019-02-01 11:42:42 -08:00
Kubernetes Prow Robot 2e01637f86
Merge pull request #69504 from krmayankk/refactor-sched1
Move informer event handlers to scheduler
2019-02-01 06:31:39 -08:00
zhoulin xie 777174080b Fix some typos in comment
Signed-off-by: zhoulin xie <zhoulin.xie@daocloud.io>
2019-02-01 21:11:55 +08:00
xushiwei 7280fcef5c address reviewer comments 2019-02-01 16:34:16 +08:00
Jordan Liggitt f100a762bc Stop using apps/v1beta1 in tests 2019-01-31 10:12:38 -05:00
Patrick Ohly 7b5e65977c e2e: "skeleton" as fallback, empty string as default
Not accepting --provider= (i.e. setting an empty provider name) broke
some test jobs. As suggested in
https://github.com/kubernetes/kubernetes/pull/73402#issuecomment-459368230,
now --provider= and not passing --provider at all both trigger a
message and then continue as if --provider=skeleton had been used.
2019-01-31 15:54:48 +01:00
Daniel (Shijun) Qian e72b32558c
Merge branch 'master' into keymutex 2019-01-31 20:50:57 +08:00
Kubernetes Prow Robot fb96afb194
Merge pull request #73482 from liggitt/cross-group-watch
Always select the in-memory group/version as a target when decoding from storage
2019-01-30 17:50:06 -08:00
Chao Xu bed7696876 generated BUILD files 2019-01-30 13:28:48 -08:00
Chao Xu 98a1003f57 Remove unnecessary group storage version defaults. The storage version
is either decided by the schema's version priority, or by the per
resource override.

This fixes a bug where the "batch" group is encoded in v1beta1, which
was hidden when --storage-versions is a valid flag.
2019-01-30 13:28:48 -08:00
Kubernetes Prow Robot 9f673c8129
Merge pull request #72728 from phoenixking25/e2e/annotate_errors
annotate errors in e2e tests
2019-01-30 11:53:48 -08:00
Kubernetes Prow Robot f66805ef5e
Merge pull request #63600 from bclau/remove-hardcoded-yaml-images
tests: Removed hardcoded images from yaml files
2019-01-30 11:53:37 -08:00
Jordan Liggitt 131dad6ee1 Always select the in-memory group/version as a target when decoding from storage 2019-01-30 13:58:37 -05:00
xushiwei 3410d435ed add snapshot e2e 2019-01-30 19:04:45 +08:00
Tomas Nozicka cfcac1737b Enhance debuggability of e2e tests using exec command 2019-01-30 11:46:30 +01:00
Krzysztof Siedlecki aa93e2bb94 reverting test to apiserver_request_latencies_summary metric 2019-01-30 10:36:32 +01:00
Kubernetes Prow Robot 233f3e7b94
Merge pull request #73500 from shyamjvs/tls-config-fix-scale-tests
Fix TLS config in load test clients
2019-01-29 19:38:51 -08:00
Kubernetes Prow Robot be33917744
Merge pull request #73194 from danielqsj/zkimage
Add missing dependency to zookeeper-install
2019-01-29 19:38:19 -08:00
danielqsj 6535689680 clean pkg/util/strings 2019-01-30 10:24:00 +08:00
danielqsj df7e4f3d49 clean pkg/util/keymutex 2019-01-30 10:23:59 +08:00
Mayank Kumar e0a7d96632 Move informer event handlers to Scheduler 2019-01-29 17:53:20 -08:00
hello2mao 7371c40abe update the BUILD file 2019-01-30 09:45:06 +08:00
Shyam Jeedigunta 6cd03ab8ae Fix TLS config in load test clients 2019-01-29 16:24:53 -08:00
Patrick Barker 451261f8c2 returns 500 on error; updates header dates for audit proxy 2019-01-29 13:34:42 -07:00
David Ashpole 6d07624ae3 fix node e2e localstorage eviction tests 2019-01-29 11:02:48 -08:00
Patrick Ohly dde3445a45 e2e: change default for --provider
The empty string was the default and then triggered a special
warning. There's no good reason for that behavior, so now the special
handling for "unset provider" is gone and "skeleton" is the non-empty
default for the value.
2019-01-29 19:50:40 +01:00
Kubernetes Prow Robot 819dcaaa17
Merge pull request #73446 from cofyc/fix73419
Fix local pv stress tests
2019-01-29 10:12:17 -08:00
Kubernetes Prow Robot d66db4a585
Merge pull request #72918 from bclau/tests/windows-cmd-fix
tests: Makes UDP testing command more Windows friendly
2019-01-29 05:15:37 -08:00
Kubernetes Prow Robot 5262dba064
Merge pull request #73198 from mourya007/library
Re-Organize the pkutil library
2019-01-29 01:20:42 -08:00
Kubernetes Prow Robot 44d1859205
Merge pull request #72730 from liggitt/eviction-graceful-deletion
Make pod eviction trigger graceful deletion to match deletion via API
2019-01-28 21:51:53 -08:00
Kubernetes Prow Robot efbaad5e58
Merge pull request #72561 from vllry/e2e-test-no-endpoints
Add e2e test for services with no endpoints
2019-01-28 21:51:42 -08:00
Kubernetes Prow Robot b6701153b5
Merge pull request #70823 from mkimuram/issue/70822
Fix volumes e2e test to check fsType
2019-01-28 21:51:31 -08:00
Kubernetes Prow Robot c0e80056d1
Merge pull request #73196 from mkumatag/fix_node
increase the memory limits to max
2019-01-28 20:11:57 -08:00
Kubernetes Prow Robot 22080f9f47
Merge pull request #72967 from wgliang/bugfix/scheduler_perf-fail
fix scheduler_perf integration test fails
2019-01-28 20:11:42 -08:00
AdamDang f870382587
Fix some error in returned message
Fix some error in returned message:
a interval -> an interval
to small -> too small
2019-01-29 12:09:37 +08:00
Yecheng Fu 1660a0d260 Fix bug 2019-01-29 11:42:18 +08:00
danielqsj c7a012f033 migrate the rest reference of pkg/util/exec to k8s.io/utils/exec 2019-01-29 10:55:10 +08:00
Matthew Wong 9f5a799213 Do writes in init container before trying reads 2019-01-28 15:42:14 -05:00
Patrick Ohly f3d79e152e e2e: reject unknown providers
This finishes the work started for 1.13: instead of merely warning
about an unknown value given to --profile, the test/e2e/e2e.test
binary will now print an error and refuse to run.

Fixes: #70200
2019-01-28 19:55:45 +01:00
hello2mao 38b86fd97e reduce hard code to avoid more mistakes 2019-01-28 21:55:09 +08:00
Eric Paris 384da53441 test/e2e/framework: fix external/internal typo err in GetNodeInternalIP 2019-01-26 17:12:50 -05:00