Commit Graph

11577 Commits

Author SHA1 Message Date
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
Lars Ekman
1f4d852f2f Add service.spec.AllocateLoadBalancerNodePorts 2020-11-13 07:37:22 +01:00
Chao Xu
7b26cff174 update golang.org/x/net and golang.org/x/sys 2020-11-13 05:29:54 +00:00
Kubernetes Prow Robot
da75c26648 Merge pull request #95978 from roycaihw/storage-version/gc
Storage version garbage collector
2020-11-12 18:36:37 -08:00
Kubernetes Prow Robot
cd21a1240a Merge pull request #94866 from smarterclayton/scheduling_metrics
scheduler: Implement resource metrics at /metrics/resources
2020-11-12 18:36:23 -08:00
Haowei Cai
f9f6959284 fixup! unblock resources that the storage version manager depends on 2020-11-12 16:37:17 -08:00
Haowei Cai
f675dac440 generated 2020-11-12 16:25:22 -08:00
Haowei Cai
59b13500c6 unblock resources that the storage version manager depends on
to avoid deadlock itself
2020-11-12 16:24:58 -08:00
Haowei Cai
5112a51d62 make storage version manager wait for lease creation
to avoid storageversions being GC'ed accidentally
2020-11-12 16:21:50 -08:00
chenyw1990
36d5db95f8 Fix cacheWatcher leak when time jump to the future and jump back 2020-11-13 08:13:17 +08:00
Kubernetes Prow Robot
912f5ec5c4 Merge pull request #96530 from MikeSpreitzer/fix96459
Fixed quantization and made monotic time reversal not panic
2020-11-12 16:03:43 -08:00
Kubernetes Prow Robot
1a4e1f6534 Merge pull request #96528 from andrewsykim/service-topology-gate
core/v1: document that topologyKeys requires the ServiceTopology feature gate
2020-11-12 16:03:35 -08:00
Kubernetes Prow Robot
94b17881fc Merge pull request #96454 from Sh4d1/revert_92312
Revert "Merge pull request #92312 from Sh4d1/kep_1860"
2020-11-12 16:03:24 -08:00
Kubernetes Prow Robot
765d949bfc Merge pull request #96440 from robscott/endpointslice-pre-ga
Adding NodeName to EndpointSlice API, deprecation updates
2020-11-12 16:03:13 -08:00
Kubernetes Prow Robot
8d226790c2 Merge pull request #95256 from Git-Jiro/remove_generator_from_service
remove generators from service
2020-11-12 16:02:25 -08:00
David Porter
16f71c6d47 Implement shutdown manager in kubelet
Implements KEP 2000, Graceful Node Shutdown:
https://github.com/kubernetes/enhancements/tree/master/keps/sig-node/2000-graceful-node-shutdown

* Add new FeatureGate `GracefulNodeShutdown` to control
enabling/disabling the feature
* Add two new KubeletConfiguration options
  * `ShutdownGracePeriod` and `ShutdownGracePeriodCriticalPods`
* Add new package, `nodeshutdown` that implements the Node shutdown
manager
  * The node shutdown manager uses the systemd inhibit package, to
  create an system inhibitor, monitor for node shutdown events, and
  gracefully terminate pods upon a node shutdown.
2020-11-12 21:47:55 +00:00
Kubernetes Prow Robot
c21c56a061 Merge pull request #96464 from nilo19/feature/support-ha-ports
Fix IP fragmentation of UDP and TCP packets not supported issues on LoadBalancer rules.
2020-11-12 13:17:11 -08:00
Kubernetes Prow Robot
55856ed727 Merge pull request #93130 from zshihang/master
plumb service account token down to csi driver
2020-11-12 13:16:25 -08:00
Mike Spreitzer
0809220fd0 Fixed quantization and made monotic time reversal not panic
Changed quantization to use monotonic clock readings.

Stopping panicing when monotonic clock readings go backwards because
https://github.com/kubernetes/kubernetes/issues/96459 reported it
happening.

Re-organized sampleAndWaterMarkHistograms::innerSet to `defer` the
Unlock call, because that is the preferred pattern.
2020-11-12 16:13:05 -05:00
Rob Scott
84e4b30a3e Updates related to PR feedback
- Remove feature gate consideration from EndpointSlice validation
- Deprecate topology field, note that it will be removed in future
release
- Update kube-proxy to check for NodeName if feature gate is enabled
- Add comments indicating the feature gates that can be used to enable
alpha API fields
- Add comments explaining use of deprecated address type in tests
2020-11-12 12:30:50 -08:00
Andrew Sy Kim
08774ecc74 core/v1: document that topologyKeys requires the ServiceTopology feature gate
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2020-11-12 14:33:49 -05:00