Commit Graph

35156 Commits

Author SHA1 Message Date
Haiyan Meng
1f270ef4e2 Limit the read length of ioutil.ReadAll in pkg/kubelet and pkg/probe
Signed-off-by: Haiyan Meng <haiyanmeng@google.com>
2019-07-11 13:18:06 -07:00
Kubernetes Prow Robot
b500c740ee Merge pull request #79859 from sukeesh/hpa-error-log-fix
HPA incorrectly reported condition status
2019-07-11 07:28:55 -07:00
jingxueli
6a1bbff60c keep processing other nodes for the nil node error 2019-07-11 15:34:40 +08:00
Kubernetes Prow Robot
ab960c612c Merge pull request #80007 from liggitt/populate-version-authorization-check
Populate API version in synthetic authorization requests
2019-07-10 22:59:07 -07:00
Kubernetes Prow Robot
12c5e2037e Merge pull request #79968 from sukeesh/improveNoResource
Flush out current namespace when resources are not found
2019-07-10 22:58:54 -07:00
Kubernetes Prow Robot
b168ab1f99 Merge pull request #79892 from mikebrow/todo-cleanup-status-manager
update code docs around old todo that is not going to happen
2019-07-10 21:39:33 -07:00
Kubernetes Prow Robot
b7757ffbb9 Merge pull request #78280 from sevensees/master
Trace step should be at the end of calls rather than the begin.
2019-07-10 21:39:07 -07:00
Kubernetes Prow Robot
514a157adf Merge pull request #74691 from cpuguy83/epoll_use_cloexec
Use EPOLL_CLOEXEC to prevent fd leaks.
2019-07-10 21:38:55 -07:00
Kubernetes Prow Robot
8a1c9e2b41 Merge pull request #79924 from cwdsuzhou/July/projected_test_cleanup
Fix projected volume test clean up
2019-07-10 18:49:44 -07:00
Kubernetes Prow Robot
ca6cc69bd4 Merge pull request #78744 from smarterclayton/client_ns
Update namespace controller to use the metadata client
2019-07-10 18:48:53 -07:00
Jordan Liggitt
2899abb65c Populate API version in synthetic authorization requests 2019-07-10 21:29:25 -04:00
Kubernetes Prow Robot
ca43c670a5 Merge pull request #79960 from tedyu/desc-ref
Remove incorrect ampersand in front of AverageValue in describeHorizontalPodAutoscalerV2beta2
2019-07-10 16:25:06 -07:00
Kubernetes Prow Robot
79564ebff7 Merge pull request #79877 from draveness/feature/use-scheduler-cache-instead
fix: use schedulerCache instead of podlister in config factory
2019-07-10 16:24:40 -07:00
Kubernetes Prow Robot
9e5018ba20 Merge pull request #79453 from chendave/short-circuit
Short-circuit the evaluation of `cpuFraction` and `memoryFraction`
2019-07-10 16:24:27 -07:00
Kubernetes Prow Robot
57eef32041 Merge pull request #79657 from josephburnett/hpastuck
Ignore unschedulable pods
2019-07-10 11:34:29 -07:00
Clayton Coleman
50fd47258d Switch the namespace controller to use the metadata client
The metadata client uses protobuf and returns only a subset of object
data (the metadata) which allows operations that act only on objects
generically to work much faster. Use the metadata client in the
namespace controller to reduce the amount of work the namespace controller
has to do in large namespaces.
2019-07-10 14:31:18 -04:00
Kubernetes Prow Robot
978c38d488 Merge pull request #70470 from dtaniwaki/fix-auto-completion
Avoid conflicts with other cobra auto completions
2019-07-10 09:36:26 -07:00
Kubernetes Prow Robot
021ad88ac4 Merge pull request #79894 from odinuge/csi-client-dead-code
Remove dead code from csi_client
2019-07-10 06:20:25 -07:00
Joseph Burnett
80e279d353 Ignore pending pods.
This change adds pending pods to the ignored set first before
selecting pods missing metrics. Pending pods are always ignored when
calculating scale.

When the HPA decides which pods and metric values to take into account
when scaling, it divides the pods into three disjoint subsets: 1)
ready 2) missing metrics and 3) ignored. First the HPA selects pods
which are missing metrics. Then it selects pods should be ignored
because they are not ready yet, or are still consuming CPU during
initialization. All the remaining pods go into the ready set. After
the HPA has decided what direction it wants to scale based on the
ready pods, it considers what might have happened if it had the
missing metrics. It makes a conservative guess about what the missing
metrics might have been, 0% if it wants to scale up--100% if it wants
to scale down. This is a good thing when scaling up, because newly
added pods will likely help reduce the usage ratio, even though their
metrics are missing at the moment. The HPA should wait to see the
results of its previous scale decision before it makes another
one. However when scaling down, it means that many missing metrics can
pin the HPA at high scale, even when load is completely removed. In
particular, when there are many unschedulable pods due to insufficient
cluster capacity, the many missing metrics (assumed to be 100%) can
cause the HPA to avoid scaling down indefinitely.
2019-07-10 12:16:33 +02:00
Kubernetes Prow Robot
a29243775a Merge pull request #79889 from mborsz/kubemarkclient
Hollow-node should use separate client for heartbeats
2019-07-10 02:44:25 -07:00
Maciej Borsz
ed41078f05 Hollow-node should use separate client for heartbeats. 2019-07-10 10:31:04 +02:00
Kubernetes Prow Robot
abe94ce9b3 Merge pull request #79937 from mm4tt/deployment_improve
Deployment Controller - avoid unnecessary copying of pod objects in getPodMapForDeployment
2019-07-10 01:24:25 -07:00
Matt Matejczyk
8140bbc4f5 Deployment Controller - don't copy pods in getPodMapForDeployment
As the benchmark shows it speeds up the method~x4 and reduces memory
consumption ~x20.

```
benchmark                              old ns/op     new ns/op     delta
BenchmarkGetPodMapForDeployment-12     276121        72591         -73.71%

benchmark                              old allocs     new allocs     delta
BenchmarkGetPodMapForDeployment-12     241            238            -1.24%

benchmark                              old bytes     new bytes     delta
BenchmarkGetPodMapForDeployment-12     554025        28956         -94.77%
```
2019-07-10 09:14:15 +02:00
Sukeesh
b7d2478ac9 flush current namespace when resources are not found 2019-07-10 16:12:48 +09:00
Kubernetes Prow Robot
dc8829df5c Merge pull request #75922 from humblec/stateful_set
Remove unwanted `else` block from statefulset controller.
2019-07-10 00:12:25 -07:00
Daisuke Taniwaki
4200d6c2cc Avoid conflicts with other cobra auto completion 2019-07-10 13:32:29 +09:00
Ted Yu
062b503165 Remove incorrect ampersand in front of AverageValue in describeHorizontalPodAutoscalerV2beta2 2019-07-09 20:29:23 -07:00
shiyan2016
c329d5117d cancel process node if error occurs 2019-07-09 19:50:48 -07:00
caiweidong
94a2a42412 Fix projected volume test clean up 2019-07-10 10:14:36 +08:00
Kubernetes Prow Robot
d59a603f1b Merge pull request #78267 from mucahitkurt/cleanup/operation-generator-migration-scenarios-unit-tests
unit tests for operationGenerator.GenerateUnmapVolumeFunc
2019-07-09 18:20:25 -07:00
Kubernetes Prow Robot
08a36f6e55 Merge pull request #79933 from mm4tt/deployment_benchmark
Add micro-benchmark for DeploymentController.getPodMapForDeployment method
2019-07-09 16:16:38 -07:00
Kubernetes Prow Robot
88bac0bd4a Merge pull request #79856 from tedyu/metric-stat-ampers
Remove unintended ampersand in front of in.Current.AverageValue
2019-07-09 13:46:50 -07:00
Kubernetes Prow Robot
6653a490fb Merge pull request #79532 from snowplayfire/update-errMsg
improve error msg for predicate meta data
2019-07-09 13:46:37 -07:00
Kubernetes Prow Robot
5625eadd2a Merge pull request #72416 from liggitt/watch-event-type
Include event type in `kubectl get -w` output
2019-07-09 13:46:24 -07:00
Kubernetes Prow Robot
f56cfbeb6d Merge pull request #79725 from jaypipes/issue79721
Output boolean for AllowPrivilegeEscalation
2019-07-09 10:12:29 -07:00
Kubernetes Prow Robot
437b967fdf Merge pull request #76321 from danielqsj/ssh
remove SSHTunnelList TODO
2019-07-09 10:12:04 -07:00
Brian Goff
7077bbd783 Use O_CLOEXEC in util packages
This prevents fd's from leaking to subprocesses.
2019-07-09 10:04:00 -07:00
Brian Goff
0051db89a7 Use O_CLOEXEC for volume subpath util
This prevents fd's from leaking to subprocesses.
2019-07-09 10:03:59 -07:00
Brian Goff
45b0261290 Use EPOLL/O_CLOEXEC in evicition notifier
This prevents fd's from leaking to subprocesses.
2019-07-09 10:03:31 -07:00
Kubernetes Prow Robot
b130ff4502 Merge pull request #79724 from deads2k/update-raw
make kubectl --raw consistent for create, update, get, delete
2019-07-09 08:26:17 -07:00
David Eads
09c55bd117 make kubectl --raw consistent for create, update, get, delete 2019-07-09 09:03:56 -04:00
Matt Matejczyk
3e363c5c46 Add micro-benchmark for DeploymentController.getPodMapForDeployment method 2019-07-09 15:00:18 +02:00
Kubernetes Prow Robot
84e5b851de Merge pull request #79906 from tedyu/az-new-http
Handle error return from http.NewRequest()
2019-07-09 04:20:04 -07:00
Kubernetes Prow Robot
7c7d70bc7c Merge pull request #77449 from smarterclayton/compress_2
Replace HTTP compression with a more scoped impl, only use on responses > 128KB
2019-07-09 01:54:03 -07:00
Ted Yu
7a5e7030d2 Handle error return from http.NewRequest() 2019-07-08 17:41:02 -07:00
Kubernetes Prow Robot
2cfd4a5eb9 Merge pull request #79168 from tnozicka/fix-sigapps-owners
Update Sig-Apps OWNERS to aliases in places that were missed in #76669
2019-07-08 17:30:01 -07:00
Kubernetes Prow Robot
2542746c1d Merge pull request #79813 from tedyu/match-container-for-port
Remove the TODO for container name matching
2019-07-08 16:00:39 -07:00
Kubernetes Prow Robot
858fce1634 Merge pull request #79531 from odinuge/kubelet-dead-code
Remove unnecessary variable declaration
2019-07-08 14:28:01 -07:00
Kubernetes Prow Robot
2309b584ee Merge pull request #79017 from sttts/sttts-apiserver-healthz-stack-trace
apiserver: don't log stack trace on /healthz error
2019-07-08 14:27:48 -07:00
Kubernetes Prow Robot
dd9ae9a1d2 Merge pull request #76227 from sawlanipradeep/window-plugin-fix
Replace syscall.Execve with exec.Command.
2019-07-08 13:00:36 -07:00