Commit Graph

96167 Commits

Author SHA1 Message Date
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
cprayer
00083d1535 Added 'No resources found' message to logs command 2020-11-15 11:47:28 +09:00
Antonio Ojea
432e74d245 get ips from loopback interfaces 2020-11-14 22:11:41 +01: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
xiongzhongliang
0d2b542dde fix typo and format for klog 2020-11-14 23:44:38 +08:00
Kubernetes Prow Robot
d20e3246ba
Merge pull request #96574 from hasheddan/cleanup-resource-tests
Fix test name in e2e resource metrics api test
2020-11-14 05:09:04 -08:00
Kubernetes Prow Robot
b96d8c0eaf
Merge pull request #96516 from andrewsykim/sig-network-api-reviewer
add myself to sig-network-api-reviewers
2020-11-14 03:39:04 -08: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
lala123912
5710e1b162 fix staticcheck:vendor/k8s.io/kubectl/pkg/cmd/scale
vendor/k8s.io/kubectl/pkg/cmd/scale/scale.go:212:2: this value of err is never used (SA4006)
2020-11-14 12:17:11 +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
10177505
7531e2a311 Fix typo unmount for klog 2020-11-14 11:32:39 +08:00
Kubernetes Prow Robot
0913f8a54c
Merge pull request #96551 from SergeyKanzhelev/runtimeclassconformance
Test on CRUD operations on RuntimeClasses API
2020-11-13 17:41:04 -08:00
Jefftree
50e7aa49aa Integrate defaults marker and remove ContainerPort defaulter 2020-11-13 17:27:40 -08:00
Basant Amarkhed
09d966c8cc Adding service.go changes after merge 2020-11-14 01:09:46 +00:00
Basant Amarkhed
8fb895f3f1 Updating after merging with a conflicting commit 2020-11-14 01:09:46 +00: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
Kubernetes Prow Robot
c1967fe8b0
Merge pull request #96523 from ii/deployment-lc-watch-timeout
Increase watch timeout when scaling Deployment Replicas
2020-11-13 16:49:04 -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
hasheddan
bf270d1070
Fix test name in e2e resource metrics api test
Updates resouce to resource.

Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
2020-11-13 15:19:55 -06:00
Kubernetes Prow Robot
0081e0ebf5
Merge pull request #96570 from hasheddan/pod-metrics-e2e
Match pod resource metrics to pod not container in node resource metrics API tests
2020-11-13 12:17:04 -08:00
Sergey Kanzhelev
3af0ab440a Test CRUD operations on RuntimeClasses API 2020-11-13 19:54:32 +00:00
David Porter
8af7405f17 vendor: cadvisor v0.38.4 2020-11-13 19:52:57 +00:00
Kubernetes Prow Robot
ec734aced7
Merge pull request #96525 from deads2k/beta-stop-serving-2
stop serving deleted APIs
2020-11-13 10:53:14 -08:00
Clayton Coleman
12262c99c4
test/integration/etcd: Use the busybox shim image constant
Instead of hardcoding fedora:latest, use one of our e2e images as
source inside the created pods. This will allow users who test with
this data outside of integration environments to reference a real
image and avoid spurious errors.
2020-11-13 13:48:04 -05:00
hasheddan
56c104a440
Relax matching on pod_memory_working_set_bytes metrics
Relaxes matching of pod_memory_working_set_bytes metric so that we won't
error due to presence of other pods.

Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
2020-11-13 12:29:54 -06: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
hasheddan
25a04096e8
Match pod resource metrics to pod not container
Update node resource metrics e2e tests to match pod metrics to pod
instread of containers.

Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
2020-11-13 10:29:21 -06:00
Antonio Ojea
19cf272b37 add more e2e sctp tests
Add more e2e SCTP tests for Services and intra-pod communication.
2020-11-13 17:07:00 +01:00
Antonio Ojea
3a6b4366a7 remove wrong test for SCTP connectivity
the test tries to test the connectivity between two pods, but it
acually test the connectivity against itself.
2020-11-13 17:03:03 +01: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
Kubernetes Prow Robot
1625ff5520
Merge pull request #96544 from puerco/fix-1.18.12-release-notes
Update 1.18 changelog with entries from v1.18.11
2020-11-13 01:56:24 -08:00
Francesco Romani
56106439cf node: e2e: bring up/down SRIOV DP just once
The e2e topology manager want to test the resource alignment using
devices, and the easiest devices to use are the SRIOV devices at this
moment.

The resource alignment test cases are run for each supported policies,
in a loop.

The tests manage the SRIOV device plugin; up until now, the plugin
was set up and tore down at each loop.
There is no real need for that. Each loop must reconfigure (thus
restart) the kubelet, but the device plugin can set up and tore down
just once for all the policies, thus once.
The kubelet can reconnect just fine to a running device plugin.

This way, we greatly reduce the interactions and the complexity of the
test environment, making it easier to understand and more robust, and
we trim down some minutes from execution time.

However, this patch also hides (not solves) a test flake we observed
on some environment. The issue is hardly reproduceable and not well
understood, but seems caused by doing the sriov dp setup/teardown
in each policy testing loop.
Investigation so far suggests that the kubelet sometimes have a stale
state after the sriovdp teardown/setup cycle, leading to flakes and
false negatives.
We tried to address this in https://github.com/kubernetes/kubernetes/pull/95611
with no conclusive results yet.

This patch was posted because overall we believe this patch gains
exceeds the drawbacks (hiding the aforementioned flake) and
because understanding the potential interaction issues between the
sriovdp and the kubelet deserve a separate test.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2020-11-13 10:04:31 +01:00
Alexey Perevalov
5e6aed4137 Fixes sigfault in case of empty TopologyInfo
Device plugin which implements v1beta interface can return nil in
Topology field

For example nvidia-gpu-deviceplugin
3520254b75/nvidia.go (L147)
Signed-off-by: Alexey Perevalov <alexey.perevalov@huawei.com>
2020-11-13 11:51:47 +03:00
Kubernetes Prow Robot
84d15ca322
Merge pull request #93765 from jeremyje/restartsd
Configure StackdriverLogging Windows service to restart on failure.
2020-11-12 23:26:23 -08:00
Lars Ekman
8fca0f9955 Update generated files 2020-11-13 07:42:58 +01:00