Commit Graph

11768 Commits

Author SHA1 Message Date
Nikhita Raghunath
d8f9ac446c staging/publishing: fix rules for 1.20 2020-12-02 10:49:34 +05:30
Nikhita Raghunath
cda4e25f33 staging/publishing: add release-1.20 rules 2020-12-02 03:00:48 +05:30
Kubernetes Prow Robot
5ed4b76a03
Merge pull request #96421 from dgrisonnet/fix-apiservice-availability
Fix aggregator_unavailable_apiservice gauge
2020-11-26 07:24:19 -08:00
Jiaxun Song
ae1e452e7d fix: change disk client API version for Azure Stack 2020-11-23 23:13:19 -08:00
Stephen Augustus
3598ccae8e [go1.15] staging/publishing: Set default go version to go1.15.5
Signed-off-by: Stephen Augustus <saugustus@vmware.com>
2020-11-23 20:49:59 -05:00
Kubernetes Prow Robot
2ea6828ea0
Merge pull request #96720 from liggitt/throttled-logger
Deflake ThrottledLogger test
2020-11-20 13:56:22 -08:00
Kubernetes Prow Robot
7d72ddca6e
Merge pull request #96705 from andyzhangx/resize-fix
fix: resize Azure disk issue when it's in attached state
2020-11-19 21:36:51 -08:00
Kubernetes Prow Robot
06b0179895
Merge pull request #96662 from wojtek-t/fix_starting_rv_test
Fix TestStartingResourceVersion flakiness
2020-11-19 19:14:51 -08:00
Jordan Liggitt
afd92b3b3e Revert "plumb context with request deadline"
This reverts commit 83f869ee13.
2020-11-19 18:15:04 -05:00
Jordan Liggitt
3e21057070 Revert "use default value when the specified timeout is 0s"
This reverts commit 0090e27bd3.
2020-11-19 18:13:37 -05:00
Kubernetes Prow Robot
d0398c395a
Merge pull request #96185 from roycaihw/dedup-owner-references
Apiserver dedups owner references before creating/updating objects
2020-11-19 14:54:52 -08:00
Jordan Liggitt
c84df5d66e Deflake ThrottledLogger test 2020-11-19 13:59:27 -05:00
andyzhangx
0d38026687 fix: resize Azure disk issue when it's in attached state
fix comments
2020-11-19 14:27:10 +00:00
Damien Grisonnet
b525f9e0ed kube-aggregator: fix apiservice availability gauge
When an apiservice is deleted, its relative
aggregator_unavailable_apiservice metric remains with the value of the
last availability observed. Hence, if an apiservice is deleted while
being unavailable, the metric remains marked as unavailable.
This presents some problems when alerting on unavailable apiservices
as deleted apiservices might trigger the alert indefinitely.

To solve this issue, the aggregator_unavailable_apiservice metric should
only reflect the availability of existing apiservices.

This is achievable by using a custom Collector instead of a GaugeVec and
create throw-away metrics based on an apiservice lister output. With
this approach, on deletion, the apiservice will not be listed anymore,
resulting in its availability metric not being exposed.

Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com>
2020-11-19 11:20:42 +01:00
wojtekt
37b0004978 Fix TestStartingResourceVersion flakiness 2020-11-19 07:56:17 +01:00
Haowei Cai
40a65577c7 generated 2020-11-18 12:48:26 -08:00
Haowei Cai
8bcf34a203 unit and integration tests
apiserver dedups and adds warning in CREATE/UPDATE/PATCH requests;
also handles duplication caused by mutating admission.
2020-11-18 12:46:20 -08:00
Haowei Cai
ffc54ed1d2 apiserver dedups owner references and adds warning
for CREATE and UPDATE requests, we check duplication before managedFields
update, and after mutating admission; for PATCH requests, we check
duplication after mutating admission
2020-11-18 12:35:45 -08:00
Kubernetes Prow Robot
b381baab66
Merge pull request #96681 from tkashem/request-timout-e2e
Use default value when the specified timeout for a request is 0s
2020-11-18 11:44:05 -08:00
Abu Kashem
0090e27bd3
use default value when the specified timeout is 0s 2020-11-18 12:01:27 -05:00
Kubernetes Prow Robot
b3fc888863
Merge pull request #96586 from Doude/for/upstream/master/96585
Fixes fake client test generation
2020-11-18 01:44:05 -08:00
Kubernetes Prow Robot
afeac926fa
Merge pull request #95981 from caesarxuchao/http2-healthcheck
Enables HTTP/2 health check
2020-11-17 14:48:05 -08:00
Jordan Liggitt
e491c3bc70 Add GC unit tests
Adds unit tests covering the problematic scenarios identified
around conflicting data in child owner references

                      Before   After
package level         51%      68%
garbagecollector.go   60%      75%
graph_builder.go      50%      81%
graph.go              50%      68%

Added/improved coverage of key functions that had lacking unit test coverage:

* attemptToDeleteWorker
* attemptToDeleteItem
* processGraphChanges (added coverage of all added code)
2020-11-17 10:49:32 -05:00
Chao Xu
15648f1a7b allow configuring ReadIdelTimeout and PingTimeout via env var 2020-11-15 21:40:04 +00:00
Chao Xu
ba7b1f7a89 Add a unit test testing the HTTP/2 health check help the REST client
detects broken TCP connections.
2020-11-15 21:40:04 +00:00
Abu Kashem
83f869ee13
plumb context with request deadline
- as soon as a request is received by the apiserver, determine the
timeout of the request and set a new request context with the deadline.
- the timeout filter that times out non-long-running requests should
use the request context as opposed to a fixed 60s wait today.
- admission and storage layer uses the same request context with the
deadline specified.
2020-11-14 11:54:17 -05:00
Edouard Thuleau
e4bd128ec6 Fixes fake client test generation
The test code generation for create subresource was missing the resource
name parameter in the template which caused a compile error for the
sample projects using the scale subresource. That only occurs with
non-namespaced resource kind.
Also re-ran the code generation after applying the fix.
2020-11-14 11:03:50 +01:00
Kubernetes Prow Robot
05d1b94a70
Merge pull request #96317 from Jefftree/test-ssa
Integrate defaults marker to defaulter-gen
2020-11-13 22:35:03 -08:00
Kubernetes Prow Robot
afb2342318
Merge pull request #96266 from chenyw1990/fixcachewacherleak
Fix cacheWatcher leak when time jump to the future and jump back
2020-11-13 20:57:03 -08:00
Kubernetes Prow Robot
36f571404f
Merge pull request #96527 from adtac/apfbeta
promote API priority and fairness types and APIs to beta
2020-11-13 19:33:04 -08:00
Jefftree
50e7aa49aa Integrate defaults marker and remove ContainerPort defaulter 2020-11-13 17:27:40 -08:00
Antoine Pelisse
89ac376f6b Remove StripDefaults from BuildSwagger 2020-11-13 17:06:36 -08:00
Antoine Pelisse
d3e641e84e Add default for protocol and test that it works 2020-11-13 17:06:35 -08:00
Antoine Pelisse
de4abee3ef Strip defaults in new places 2020-11-13 17:06:35 -08:00
Antoine Pelisse
07a40273eb Re-generate with defaults 2020-11-13 17:06:35 -08:00
Antoine Pelisse
8cce122e7b Update kube-openapi 2020-11-13 17:06:30 -08:00
Adhityaa Chandrasekar
642b114830 flowcontrol bootstrap: give catch-all PL more concurrency share
Signed-off-by: Adhityaa Chandrasekar <adtac@google.com>
2020-11-13 23:20:42 +00:00
Adhityaa Chandrasekar
794a3ec099 APF matching: fallback to catch-all if nothing matches
Signed-off-by: Adhityaa Chandrasekar <adtac@google.com>
2020-11-13 23:20:42 +00:00
Adhityaa Chandrasekar
bb32d51fd6 flowcontrol bootstrap: make exempt PL last
Signed-off-by: Adhityaa Chandrasekar <adtac@google.com>
2020-11-13 23:20:42 +00:00
yue9944882
849be447f5 APF: graduate API and types to beta
Signed-off-by: Adhityaa Chandrasekar <adtac@google.com>
2020-11-13 23:20:39 +00:00
Kubernetes Prow Robot
41533ecec8
Merge pull request #96425 from bobbypage/vendor-cadvisor-v0.38
Vendor cadvisor v0.38.4
2020-11-13 15:15:05 -08:00
Laszlo Janosi
c970a46bc1
Mixed protocol support for Services with type=LoadBalancer (#94028)
* Mixed protocol support for Services with type=LoadBalancer

KEP: https://github.com/kubernetes/enhancements/blob/master/keps/sig-network/20200103-mixed-protocol-lb.md
Add new feature gate to control the support of mixed protocols in Services with type=LoadBalancer
Add new fields to the ServiceStatus
  Add Ports to the LoadBalancerIngress, so cloud provider implementations can report the status of the requested load balanc
er ports
  Add ServiceCondition to the ServiceStatus so Service controllers can indicate the conditions of the Service

* regenerate conflicting stuff
2020-11-13 13:21:04 -08:00
David Porter
8af7405f17 vendor: cadvisor v0.38.4 2020-11-13 19:52:57 +00:00
Chao Xu
8ee10ce6aa configure the ReadIdleTimeout and PingTimeout of the h2 transport 2020-11-13 18:28:29 +00:00
Kubernetes Prow Robot
f98d3842c2
Merge pull request #92744 from Nordix/disable-nodeport
Implement ServiceSpec.AllocateLoadBalancerNodePorts
2020-11-13 09:27:04 -08:00
Kubernetes Prow Robot
85cd7c530b
Merge pull request #96549 from caesarxuchao/net-sys-dep-update
update golang.org/x/net and golang.org/x/sys
2020-11-13 08:34:23 -08:00
Kubernetes Prow Robot
3b2746c9ea
Merge pull request #95614 from wilsonehusin/golint-client-go-transport
Fix golint failures in client-go/transport
2020-11-13 07:34:31 -08:00
Kubernetes Prow Robot
1c2f5c3a65
Merge pull request #96545 from nilo19/bug/fix-route-tag
Update the route table tag in the route reconcile loop
2020-11-13 05:54:24 -08:00
Qi Ni
2e7dd8d850 Update the route table tag in the route reconcile loop 2020-11-13 19:40:06 +08:00
Lars Ekman
8fca0f9955 Update generated files 2020-11-13 07:42:58 +01:00