Commit Graph

10808 Commits

Author SHA1 Message Date
SataQiu
871b90ba23 kube-proxy: add '--bind-address-hard-fail' flag to treat failure to bind to a port as fatal
Signed-off-by: SataQiu <1527062125@qq.com>
2020-04-02 13:13:10 +08:00
Kubernetes Prow Robot
96109680a4 Merge pull request #89691 from ingvagabund/quantile-inf
quantile: if the last upper bound is +Inf, return the previous upper bound
2020-04-01 20:50:37 -07:00
Kubernetes Prow Robot
f2e3981aba Merge pull request #89706 from weinong/fix-excessive-spn-prefix
v1.18.1: fix a bug where spn: prefix is unexpectedly added to kubeconfig apiserver-id
2020-04-01 19:26:38 -07:00
Alvaro Aleman
bec6f08c58 apimachinery/pkg/labels: add SelectorFromSet
While rambling again about how unsafe labels.SelectorFromSet is as it
just returns an empty selector that matches everything when it
encounters a parsing error, I noticed that we do not even have a safe
alternate. This commit fixes that by adding a `ValidatedSelectorFromSet`
func that either returns a Selector or an error.

It also changes SelectorFromSet to use SelectorFromValidatedSet under
the hood, so invalid Sets are send to the server and rejected there,
rather than silently doing the wrong thing by using am empty Selector.
2020-04-01 19:51:10 -04:00
Jan Chaloupka
e410b837dc quantile: if the last upper bound is +Inf, return the previous upper bound
In case the last upper bound is +Inf, computed quantile is +Inf as well.
Given there's no restriction on how far individual upper bounds are from each other,
cut the last interval and consider the second last upper bound as the final one.
2020-04-01 12:44:25 +02:00
Pengfei Ni
bdce3fdeb7 Ensure Azure availability zone is always in lower cases 2020-04-01 08:19:39 +00:00
Andrew Sy Kim
e2bc3a755f move well-known kubelet cloud provider annotations to k8s.io/cloud-provider (#88631)
* move well-known kubelet cloud provider annotations to k8s.io/cloud-provider

Signed-off-by: andrewsykim <kim.andrewsy@gmail.com>

* cloud provider: rename AnnotationProvidedIPAddr to AnnotationAlphaProvidedIPAddr to indicate alpha status

Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2020-03-31 23:01:27 -07:00
Jordan Liggitt
ee816114b7 Adjust openapi test to avoid mutation on write 2020-03-31 23:08:08 -04:00
Jordan Liggitt
d879965808 Clean up list items listType 2020-03-31 23:08:08 -04:00
Jordan Liggitt
93c7b24562 github.com/googleapis/gnostic v0.4.1 2020-03-31 23:07:50 -04:00
Prasad Katti
b1d85a6b51 minor update (#89638)
* minor update

Added a missing period.

* add some more missing periods

- add in the missing period in 2 more places
- update generated files with `make update`
2020-03-31 16:43:28 -07:00
Weinong Wang
77bd7c8a8b fix a bug where spn: prefix is unexpectedly added to kubeconfig apiserver-id setting 2020-03-31 15:59:37 -07:00
Kubernetes Prow Robot
788a073c79 Merge pull request #89677 from zhouya0/Add_kubectl_describe_CSINode_test_coverage
Add kubectl describe CSINode test coverage
2020-03-31 14:15:51 -07:00
Kubernetes Prow Robot
48cdf5a062 Merge pull request #89394 from iobuf/cleanup
[apimachinery]: cleanup deprecated const StatusTooManyRequests
2020-03-31 14:15:42 -07:00
Julian V. Modesto
efed958779 Support kubectl scale --dry-run=server|client 2020-03-31 16:19:52 -04:00
Kubernetes Prow Robot
0804667ff1 Merge pull request #89151 from jingyih/add_metric_etcd_db_size
apiserver: add a metric exposing etcd database size
2020-03-31 12:37:00 -07:00
jingyih
e15c49f1bb Generated 2020-03-31 09:02:41 -07:00
jingyih
922ec728de Add a metric exposing etcd database size 2020-03-31 09:02:38 -07:00
Kubernetes Prow Robot
e551cf8a77 Merge pull request #89615 from tahsinrahman/fix-duplicate
Ensure NamedCertKeyArray implements flag.Value
2020-03-31 06:40:40 -07:00
zhouya0
991547edb6 Add kubectl describe CSINode test coverage 2020-03-31 12:15:20 +08:00
Kazuki Suda
fca1027dd6 Fix missing a shorthand for container flag of kubectl alpha debug 2020-03-31 12:18:28 +09:00
Jordan Liggitt
343c1e7636 Fix client watch reestablishment handling of client-side timeouts 2020-03-30 17:48:00 -04:00
Kubernetes Prow Robot
933c303592 Merge pull request #89646 from zhouya0/fix_kubectl_describe_CSINode_nil_pointer
Fix kubectl describe CSINode nil pointer error
2020-03-30 11:00:18 -07:00
Kubernetes Prow Robot
fce286e227 Merge pull request #89645 from andyzhangx/azure-kube-client
chore: expose azure.KubeClient
2020-03-30 08:22:46 -07:00
Kubernetes Prow Robot
c968317ebd Merge pull request #89575 from tnqn/improve-tracker
Improve fake clientset performance
2020-03-30 08:22:07 -07:00
zhouya0
55c455e61f Fix kubectl describe CSINode nil pointer error 2020-03-30 17:10:40 +08:00
andyzhangx
56cb04db4c chore: expose azure.KubeClient 2020-03-30 08:12:41 +00:00
Benjamin Danon
c39c64ffda Fix the newName field name in the page 2020-03-29 00:23:47 +01:00
Benjamin Danon
77ca434ec3 Fix the newName field name in the example 2020-03-29 00:15:47 +01:00
tahsinrahman
d82e9ebac0 Ensure NamedCertKeyArray implements flag.Value 2020-03-29 06:36:36 +08:00
Quan Tian
7e15e31e11 Improve fake clientset performance
The fake clientset used a slice to store each kind of objects, it's
quite slow to init the clientset with massive objects because it checked
existence of an object by traversing all objects before adding it, which
leads to O(n^2) time complexity. Also, the Create, Update, Get, Delete
methods needs to traverse all objects, which affects the time statistic
of code that calls them.

This patch changed to use a map to store each kind of objects, reduced
the time complexity of initializing clientset to O(n) and the Create,
Update, Get, Delete to O(1).

For example:
Before this patch, it took ~29s to init a clientset with 30000 Pods,
and 2~4ms to create and get an Pod.
After this patch, it took ~50ms to init a clientset with 30000 Pods,
and tens of µs to create and get an Pod.
2020-03-28 23:57:43 +08:00
Kubernetes Prow Robot
b4c82622ec Merge pull request #89604 from aramase/fix-lb
azure: fix concurreny issue in lb creation
2020-03-28 02:44:09 -07:00
Kubernetes Prow Robot
5be91f997a Merge pull request #89367 from nilo19/add-vmss-async-test
Add unit tests for azure VMSS client async operations.
2020-03-27 18:31:52 -07:00
Kubernetes Prow Robot
0fa225f638 Merge pull request #89562 from M00nF1sh/lb_np
fix aws loadbalancer nodePort cannot change issue
2020-03-27 17:12:07 -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
Anish Ramasekar
43c45edf88 fix concurreny issue in lb creation 2020-03-27 16:33:58 -07:00
Kubernetes Prow Robot
3842a92f5f Merge pull request #89413 from zhouya0/remove_prometheus_references_from_etcd_version_monitor
Remove prometheus references from etcd version monitor
2020-03-27 06:56:23 -07:00
zhouya0
a576a3c707 Fix kubectl describe job event test nil pointer 2020-03-27 19:07:18 +08:00
t-qini
a97a7c49b4 Add unit tests for azure VMSS client async operations. 2020-03-27 13:45:38 +08:00
Sean R. Sullivan
b75990cc7b Fixes problem where kubectl apply stops after first error 2020-03-26 22:09:02 -07:00
Yang Yang
74f6aa654b fix aws loadbalancer nodePort cannot change issue 2020-03-26 21:02:58 -07:00
Kubernetes Prow Robot
9a4b30099e Merge pull request #89500 from justaugustus/pub-bot-go
publishing-bot: Update go references to new versions
2020-03-26 11:14:43 -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
Kubernetes Prow Robot
51f9e34c15 Merge pull request #89430 from mikedanese/bazel2
Update bazel to 2.2.0
2020-03-25 22:28:24 -07:00
Stephen Augustus
f2962b8330 publishing-bot: Update go 1.13 references to go1.13.9
Signed-off-by: Stephen Augustus <saugustus@vmware.com>
2020-03-25 23:53:50 -04:00
Stephen Augustus
b0a682a0a0 publishing-bot: Update go 1.12 references to go1.12.17
Signed-off-by: Stephen Augustus <saugustus@vmware.com>
2020-03-25 23:52:20 -04:00
Davanum Srinivas
d275539551 Updating dependency golang.org/x/xerrors to version v0.0.0-20191204190536-9bdfabe68543 2020-03-25 12:09:41 -04:00
Davanum Srinivas
2b8b3b4008 Updating dependency golang.org/x/time to version v0.0.0-20191024005414-555d28b269f0 2020-03-25 12:09:41 -04:00
Davanum Srinivas
75ceb7baa8 Updating dependency golang.org/x/net to version v0.0.0-20200202094626-16171245cfb2 2020-03-25 12:09:41 -04:00
Davanum Srinivas
9e91a7ddc1 Updating dependency gopkg.in/check.v1 to version v1.0.0-20190902080502-41f04d3bba15 2020-03-25 12:09:41 -04:00