Commit Graph

85464 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
9646bd9736
Merge pull request #83664 from RainbowMango/pr_refactor_kubelet_ut_with_metrics_testutil
Refactor kubelet ut with metrics testutil
2019-11-10 19:43:42 -08:00
Xing Yang
3324722e07 VolumeSnapshot CRD v1beta1: Enable VolumeSnapshotDataSource feature gate and update e2e tests 2019-11-11 02:34:24 +00:00
Clayton Coleman
3b780c64b8
Always negotiate a decoder using ClientNegotiator
This commit performs two refactors and fixes a bug.

Refactor 1 changes the signature of Request to take a RESTClient, which
removes the extra copy of everything on RESTClient from Request. A pair
of optional constructors are added for testing. The major functional
change is that Request no longer has the shim HTTPClient interface and
so some test cases change slightly because we are now going through
http.Client code paths instead of direct to our test stubs.

Refactor 2 changes the signature of RESTClient to take a
ClientContentConfig instead of ContentConfig - the primary difference
being that ClientContentConfig uses ClientNegotiator instead of
NegotiatedSerializer and the old Serializers type. We also collapse
some redundancies (like the rate limiter can be created outside the
constructor).

The bug fix is to negotiate the streaming content type on a Watch()
like we do for requests. We stop caching the decoder and simply
resolve it on the request. We also clean up the dynamic client
and remove the extra WatchSpecificVersions() method by providing
a properly wrapped dynamic client.
2019-11-10 21:30:36 -05:00
Clayton Coleman
b453106777
test: Exit early during resource helper test
The test will panic if it fails, and should instead check and exit
when invalid conditions are hit.
2019-11-10 21:30:36 -05:00
Clayton Coleman
8a9b8c87c4
test: kubectl unit tests should be using codecs without conversion
Tests are also refactored to use the simpler RESTClient code path.
2019-11-10 21:30:36 -05:00
Clayton Coleman
0ba0ef057a
test: Set RateLimiter via client config vs direct casting
This test has no need to perform a dereference to an implementation,
it can instead set the rate limited during initialization.
2019-11-10 21:30:36 -05:00
Clayton Coleman
3f94f80b0a
dynamic: The dynamic client no longer needs a special cased watch
By correctly handling content type negotiation, we can avoid the
need for a special version of watch and use the same code path as
typed clients.
2019-11-10 21:30:35 -05:00
Clayton Coleman
9aad6aa54d
test: Watch should fail immediately on negotiate errors
Instead of returning an error on the watch stream, if we can't properly
negotiate a watch serialization format we should error and return that
error to the client.
2019-11-10 21:30:35 -05:00
Clayton Coleman
93868cb413
Create a shim for Codecs that handles client duties
Clients have to renegotiate frequently, and the shape of the interface
that a client wants is slightly different than the interface on the
server. Create a new ClientNegotiator interface that represents what
the client->server code would want to use (mostly, still evolving
Encoder) and move versioning details out of RESTClient.

In the long run, we want to remove internal clients and conversions
from clients. This takes a step in that direction and also makes sure
watch negotiation is consistent with the server.
2019-11-10 21:30:35 -05:00
Clayton Coleman
15f5e64404
Detect watch protocol errors via an e2e test for apimachinery
This e2e test reproduces #62175 and will be expanded to check for other
negotiation related errors against real servers.
2019-11-10 21:30:34 -05:00
Clayton Coleman
c416ee584c
Remove deprecated-dynamic client
It is now unused.
2019-11-10 21:30:30 -05:00
Kubernetes Prow Robot
35cfd327c8
Merge pull request #84243 from Dingshujie/fix-golint
Fix golint errors in pkg/apis/apps
2019-11-10 16:29:54 -08:00
Kubernetes Prow Robot
ebbe4baf13
Merge pull request #83914 from guineveresaenger/ato-demo
Removes pkg/registry/core/secret/storage from golint failures
2019-11-10 16:29:41 -08:00
Kubernetes Prow Robot
939e1e6488
Merge pull request #85043 from neolit123/1.17-enable-secure-ports
kubeadm: use the secure ports for kube-scheduler and kcm health checks
2019-11-10 13:27:01 -08:00
Kubernetes Prow Robot
82600c2b0e
Merge pull request #84948 from zouyee/PriorityFunction
clean up PriorityFunction
2019-11-10 09:39:40 -08:00
Kubernetes Prow Robot
2f3376e463
Merge pull request #84648 from neolit123/1.17-fix-reset-hang
kubeadm: always use a short timeout for clientset creation
2019-11-10 04:25:39 -08:00
Takashi Natsume
e5ad39fbe0 Fix a typo in pkg/controller 2019-11-10 11:24:10 +00:00
Kubernetes Prow Robot
0155d18fbc
Merge pull request #84485 from tallclair/mirror-owner
Mirror owner
2019-11-09 20:19:39 -08:00
Lubomir I. Ivanov
ebfdb25c05 kubeadm: always use a short timeout for clientset creation
ToClientSet() in kubeconfig.go creates a clientset from
the passed Config object (kubeconfig). For IP addresses
that are not reachable e.g. Get() calls for ConfigMaps
can block for a few minutes with the default timeout.

Modify the timeout to a shorter value by passing an override.
2019-11-10 05:39:38 +02:00
Kubernetes Prow Robot
0afc8423f8
Merge pull request #84992 from yutedz/openstack-passwd
Move password retrieval to openstack_test.go
2019-11-09 16:53:40 -08:00
Kubernetes Prow Robot
a18303dfa4
Merge pull request #85042 from hvaara/fix-golint-pkg-apis-policy
Fix golint issues in pkg/apis/policy
2019-11-09 15:29:58 -08:00
Kubernetes Prow Robot
80b25a766a
Merge pull request #85037 from hvaara/fix-golint-pkg-apis-authorization
Fix golint issues in pkg/apis/authorization
2019-11-09 15:29:48 -08:00
Kubernetes Prow Robot
afac2ca6a5
Merge pull request #85008 from oomichi/move-utils-3
Move functions from e2e/framework/util.go Part-3
2019-11-09 15:29:39 -08:00
Roy Hvaara
cfc596b302 Fix golint issues in pkg/apis/autoscaling/validation (#85041)
* Fix golint issues in pkg/apis/autoscaling/validation

* Fix spelling issue in field of Error
2019-11-09 14:03:48 -08:00
Kubernetes Prow Robot
01676976c9
Merge pull request #85017 from LouisJackman/remove-goroutine-leak-in-kubeadm-wait
Remove potential Goroutine leak in kubeadm wait.go
2019-11-09 14:03:40 -08:00
John Schnake
ed1d5270b3 Print progress updates to stdout and publish to URL
One common frustration of end users running the e2e suite is that
they take a significant amount of time and it is difficult to
gauge progress.

Even if tailing the logs it can be difficult to see where one
test starts and another ends or understand the if there have been
failures in the past 1h of logs.

This change adds a new custom reporter which prints summary information
as tests complete. This includes the number of tests to run and how
many have been passed/failed/skipped along with which tests have failed.

A new flag can be set which pushes these values to an endpoint. This is
intended for integration with Sonobuoy but any endpoint could consume and
surface this data to the user so they can better understand the state
of the current test run.
2019-11-09 15:35:08 -06:00
Lubomir I. Ivanov
efc0ec5ffe kubeadm: remove the deprecated "--cri-socket" flag for "upgrade apply"
Remove the flag "--cri-socket" from the "kubeadm upgrade apply"
command. It has been marked as deprecated since 1.14.
2019-11-09 23:34:56 +02:00
Lubomir I. Ivanov
23ba857b50 kubeadm: use the secure ports for kube-scheduler and kcm health checks
The insecure ports were deprecated in 1.12 and 1.13.
2019-11-09 23:21:39 +02:00
Kubernetes Prow Robot
a258243f4c
Merge pull request #85009 from oomichi/enable-verify-import-aliases
Enable verify-import-aliases check in CI
2019-11-09 12:23:39 -08:00
Roy Hvaara
10c8508acd
Fix golint issues in pkg/apis/policy 2019-11-09 21:15:35 +01:00
Kubernetes Prow Robot
1ca74c7991
Merge pull request #85030 from ahg-g/ahg-nodestoscore
Set default percentageOfNodesToScore in kube-scheduler back to "adaptive"
2019-11-09 11:11:39 -08:00
Roy Hvaara
8d3c74aebc
Fix golint issues in pkg/apis/authorization 2019-11-09 17:45:37 +01:00
Kubernetes Prow Robot
9920b733ba
Merge pull request #85024 from neolit123/1.17-fix-etcd-node-upgrade
kubeadm: fix skipped etcd upgrade on secondary CP nodes
2019-11-09 07:13:39 -08:00
Abdullah Gharaibeh
9fb380ceff set default percentageOfNodesToScore in kube-scheduler back to 0 (maning adaptive) 2019-11-09 06:34:06 -05:00
Kubernetes Prow Robot
36acfecd4b
Merge pull request #84973 from draveness/feature/inter-pod-affinity-score
feat(scheduler): convert InterPodAffinity to score plugin
2019-11-09 02:43:40 -08:00
Kubernetes Prow Robot
36362cc149
Merge pull request #84673 from hwdef/fix-staticcheck3
pkg/apis: fix staticcheck warning
2019-11-09 01:29:40 -08:00
Kubernetes Prow Robot
91a53b6869
Merge pull request #84917 from andyzhangx/deletedisk-check
fix race condition when delete azure disk right after that attach azure disk
2019-11-08 18:44:46 -08:00
Kubernetes Prow Robot
9488fbef64
Merge pull request #84883 from Huang-Wei/tbe-flake-followup
Update test logic to simulate NodeReady/False and NodeReady/Unknown events correctly
2019-11-08 18:44:34 -08:00
Kubernetes Prow Robot
49a9b6cadf
Merge pull request #84727 from danwinship/ipv6-bind
fix apiserver to advertise IPv6 endpoints if bound to IPv6
2019-11-08 18:44:24 -08:00
Kubernetes Prow Robot
b15dfd778a
Merge pull request #84708 from yue9944882/feat/flowcontrol-storage
Feature: Flowcontrol rest storage implementation
2019-11-08 18:44:09 -08:00
Kubernetes Prow Robot
1aece964da
Merge pull request #84562 from yutedz/drain-filter
Only put un-filtered pod in podDeleteList
2019-11-08 18:43:52 -08:00
Kubernetes Prow Robot
92c4d68a5b
Merge pull request #84331 from zouyee/cadprocess
Enable cAdvisor ProcessMetrics collecting
2019-11-08 18:43:40 -08:00
Lubomir I. Ivanov
cc0320d41a kubeadm: fix skipped etcd upgrade on secondary cp nodes 2019-11-09 03:59:59 +02:00
Kubernetes Prow Robot
3387d6cfc7
Merge pull request #83840 from liggitt/json-iter
bump json-iterator dependency
2019-11-08 17:32:34 -08:00
Yu Liao
dac667a66e added nodeSelector: beta.kubernetes.io/os: linux 2019-11-08 16:06:28 -08:00
Pavithra Ramesh
85e0457d63 Support specifying a custom subnet for ILB ip
unit test for verifying custom subnet config.

simplified ip address logic.

Modified init code to always initialize eventRecorder.

removed extra import from automerge with master.
2019-11-08 15:39:16 -08:00
Rob Scott
6b8b2ff975
Adding new label to indicate what is managing an EndpointSlice
This adds a new Label to EndpointSlices that will ensure that multiple
controllers or entities can manage subsets of EndpointSlices. This
label provides a way to indicate the controller or entity responsible
for managing an EndpointSlice.

To provide a seamless upgrade from the alpha release of EndpointSlices
that did not support this label, a temporary annotation has been added
on Services to indicate that this label has been initially set on
EndpointSlices. That annotation will be set automatically by the
EndpointSlice controller with this commit once appropriate Labels have
been added on the corresponding EndpointSlices.
2019-11-08 15:34:44 -08:00
Kubernetes Prow Robot
6569bc736f
Merge pull request #85002 from oomichi/cleanup-util
Remove unused function from e2e framework util.go
2019-11-08 13:49:12 -08:00
Kubernetes Prow Robot
48ee150444
Merge pull request #84612 from soltysh/set_typesetter
Set TypeSetter in get print flags, like we do everywhere else
2019-11-08 13:49:01 -08:00
Kubernetes Prow Robot
3c7706bf9c
Merge pull request #84591 from TheLastProject/feature/print-join-as-admin-command
Let token create help with joining a master
2019-11-08 13:48:43 -08:00