Commit Graph

11985 Commits

Author SHA1 Message Date
Ricardo Katz
b7c82bb83c Add EndPort to Network Policy - Alpha (#97058)
* Fix merge conflict in kube_features

* Add alpha support for EndPort in Network Policy

Signed-off-by: Ricardo Pchevuzinske Katz <ricardo.katz@gmail.com>

* Add alpha support for EndPort in Network Policy

Signed-off-by: Ricardo Pchevuzinske Katz <ricardo.katz@gmail.com>

* Add alpha support for EndPort in Network Policy

Signed-off-by: Ricardo Pchevuzinske Katz <ricardo.katz@gmail.com>

* Correct some nits

Signed-off-by: Ricardo Pchevuzinske Katz <ricardo.katz@gmail.com>

* Add alpha support for EndPort in Network Policy

* Add alpha support for EndPort in Network Policy

* Add alpha support for EndPort in Network Policy

* Add alpha support for EndPort in Network Policy
2021-02-01 19:24:28 -08:00
Kubernetes Prow Robot
7e6ef0efb6 Merge pull request #98616 from smarterclayton/recognizer_buffer
serializer: Recognizer interface should take a buffer
2021-02-01 17:50:35 -08:00
Kubernetes Prow Robot
f27318c0da Merge pull request #98445 from damemi/taint-toleration-internal-helpers
Move Taint/Toleration helpers to component-helpers repo
2021-02-01 17:50:27 -08:00
Kubernetes Prow Robot
f81220975e Merge pull request #98257 from lingsamuel/etcd-lease-max-count
lease manager limit max objects attached to a lease
2021-02-01 14:52:27 -08:00
Kubernetes Prow Robot
fd515b22cf Merge pull request #98503 from chymy/kctl-i18nt-0128
add i18n.T in waitExample
2021-02-01 10:27:49 -08:00
Mike Dame
578ff3ec34 Move Taint/Toleration helpers to component-helpers repo
This is part of the goal for scheduling to remove dependencies on internal
packages for the scheduling framework. It also provides these functions in an
external location for other components and projects to import.
2021-02-01 11:06:03 -05:00
Ling Samuel
c8db72c38c api-server add --lease-max-object-count
Signed-off-by: Ling Samuel <lingsamuelgrace@gmail.com>
2021-02-01 18:20:59 +08:00
Clayton Coleman
9f288610eb serializer: Recognizer interface should take a buffer
The original intent of the Recognizer interface was to take a stream
and peek into the contents. Over time all of the callers migrated
to instead performing their own peek and then passing the buffer
as a bytes.NewBuffer to the interface as a stream, which was then
implemented as a read on the other side. This resulted in an
excess buffer allocation in general decoder usage.

Update the interface to take a []bytes slice and change all callers
to stop creating buffered readers, then update the JSON serializer
to check the buffer directly for "json-ness".
2021-01-31 00:27:42 -05:00
Kubernetes Prow Robot
76ead99a56 Merge pull request #98488 from pohly/klog-2.5.0
klog 2.5.0 + logr 0.4.0 update
2021-01-29 18:11:49 -08:00
Kubernetes Prow Robot
0a0490e34f Merge pull request #98576 from kevindelgado/ssa
Fix SSA for APIService
2021-01-29 17:21:58 -08:00
Kubernetes Prow Robot
03168d2e32 Merge pull request #98540 from damemi/internal-helper-get-avoid-pods
Scheduler: move GetAvoidPodsFromNodeAnnotations to component-helpers
2021-01-29 15:11:48 -08:00
Kubernetes Prow Robot
df7f240dee Merge pull request #97471 from tkashem/apf-enqued-request
add unit test to simulate an enqueued request that times out
2021-01-29 11:37:19 -08:00
Jordan Liggitt
d33c12bb69 Stop clearing OpenAPIConfig for kube-aggregator 2021-01-29 18:30:34 +00:00
Jordan Liggitt
dab5112240 Declare TCP default for service port protocol 2021-01-29 18:30:34 +00:00
Kubernetes Prow Robot
64a6ee4321 Merge pull request #98565 from adisky/move-spdystream
Move dependency docker/spdystream to moby/spdystream
2021-01-29 08:09:40 -08:00
Kubernetes Prow Robot
5cd694ba7d Merge pull request #98311 from jsafrane/fix-cinder-topology-translation
Fix translation of Cinder storage classess to CSI
2021-01-29 02:09:40 -08:00
Aditi Sharma
c5c938a056 Update dependency docker/spdystream to moby/spdystream
docker/spdystream has been moved to moby/spdystream.

Signed-off-by: Aditi Sharma <adi.sky17@gmail.com>
2021-01-29 09:26:05 +00:00
Abu Kashem
1d691ddb44 add unit test to simulate an enqued request that times out 2021-01-28 22:31:46 -05:00
Kubernetes Prow Robot
b62f063fa3 Merge pull request #98156 from wzshiming/fix-typo
Fix typo
2021-01-28 17:00:16 -08:00
Mike Dame
73d8eba1a4 Scheduler: move GetAvoidPodsFromNodeAnnotations to component-helpers 2021-01-28 14:41:55 -05:00
Abu Kashem
e416c9e574 apiserver: 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.

we use the default timeout enforced by the apiserver:
- if the user has specified a timeout of 0s, this implies no timeout on the user's part.
- if the user has specified a timeout that exceeds the maximum deadline allowed by the apiserver.
2021-01-28 14:15:04 -05:00
Patrick Ohly
562a39a2e1 logging: support call depth via logr, structured logging
The new releases of klog (via klogr) and logr expose support for call
traces via a new WithCallDepth API in logr.

The new klogr can be configured to pass structured log entries into
klog instead of turning them into a single text message.
2021-01-28 17:35:28 +01:00
Jan Safranek
9032f5e51b Fix translation of Cinder storage classess to CSI
In-tree Cinder storage class must be translated to CSI:
- sc.params["fsType"] -> sc.params["csi.storage.k8s.io/fstype"]
- sc.allowedTopology (with in-tree topology keys) -> sc.allowedTopology
  (with CSI topology keys)
2021-01-28 16:01:15 +01:00
Kubernetes Prow Robot
9f2f1b8c46 Merge pull request #98496 from lavalamp/connrotation
Remove unbounded connection creation; also change worst case delay from 50s to 5s
2021-01-27 20:03:07 -08:00
Daniel Smith
80c3ec4c6a Fix unbounded connection creation & 50s of delay 2021-01-27 19:14:24 -08:00
chymy
e472a7724b add i18n.T in waitExample
Signed-off-by: chymy <chang.min1@zte.com.cn>
2021-01-28 10:35:21 +08:00
Kubernetes Prow Robot
b3dd01da49 Merge pull request #98456 from SataQiu/fix-apiserver-log-20210127
Fix the bug that network proxy logging http-connect mode in all cases
2021-01-27 16:59:07 -08:00
Kubernetes Prow Robot
77b194a5d0 Merge pull request #98344 from gavinfish/remove-pro-rest
Cleanup: remove legacy prometheus visibility package_group
2021-01-27 10:01:40 -08:00
Carlos Panato
3dec5781ad [go1.15] updatestaging pb.go files using the hack scripts 2021-01-27 11:50:33 +01:00
Kubernetes Prow Robot
e0bba105cc Merge pull request #98138 from lala123912/log_format_admission
staging/src/k8s.io/apiserver/pkg/admission: migrate to structured logs
2021-01-27 01:13:50 -08:00
SataQiu
1690d6d011 fix the bug that network proxy logging http-connect mode in all cases
Signed-off-by: SataQiu <1527062125@qq.com>
2021-01-27 12:09:11 +08:00
Kubernetes Prow Robot
1920e1f2ee Merge pull request #98406 from navist2020/fix_variable_name
Misspelling of the variable name
2021-01-26 19:19:39 -08:00
Kubernetes Prow Robot
013024864e Merge pull request #98391 from Jiawei0227/process_start_metric
Bug Fix for process_start_time_metric initialization
2021-01-26 10:30:44 -08:00
Kubernetes Prow Robot
0bf274d471 Merge pull request #98061 from jprzychodzen/le-ccm
[cloud-controller-manager] Lower timeout for leaderelection resourcelock
2021-01-26 02:36:46 -08:00
lala123912
2dc8cadd00 staging/src/k8s.io/apiserver/pkg/admission: migrate to structured logs 2021-01-26 16:35:40 +08:00
navist2020
079529c5d8 Misspelling of the variable name 2021-01-26 15:45:45 +08:00
Jiawei Wang
edf9e03660 Bug Fix for process_start_time_metric initialization 2021-01-25 17:30:34 -08:00
Kubernetes Prow Robot
3895b1e4a0 Merge pull request #98240 from cici37/addReviewer
Add cici37 to controller-manager OWNERS as reviewer.
2021-01-25 14:15:21 -08:00
Kubernetes Prow Robot
927042c2cf Merge pull request #96920 from bl-ue/fix-typo-112720-01
Fix typo in kubectl/.../attach_test.go
2021-01-25 14:15:00 -08:00
Kubernetes Prow Robot
23303dd086 Merge pull request #98197 from thockin/makefile-unused-variables-watning
Make it possible to build with `make --warn-undefined-variables`
2021-01-25 12:39:11 -08:00
Kubernetes Prow Robot
f4250198ea Merge pull request #98355 from MikeSpreitzer/smaller-sharding-test
Less demanding test cases in TestUniformDistribution
2021-01-25 11:43:12 -08:00
Tim Hockin
876c9f0d8c Rename _examples to examples
The alternative to this would be to special-case code-generator.  Since
it legit wants codegen, it seems wrong to make it be _examples (which tools
should ignore).

Make examples an "internal module" so the main go.mod for
k8s.io/code-generator does not get too polluted.
2021-01-25 10:20:46 -08:00
Kubernetes Prow Robot
f5bb2c19b9 Merge pull request #97882 from ialidzhikov/staticcheck/x509
Fix staticcheck in staging/src/k8s.io/apiserver/pkg/authentication/request/x509
2021-01-25 09:26:54 -08:00
Kubernetes Prow Robot
b7fc3f91ea Merge pull request #98312 from deads2k/finish-export-option-removal
finish removal of exportoptions
2021-01-25 08:15:15 -08:00
Kubernetes Prow Robot
2df1c6a0fa Merge pull request #92065 from pohly/podinfo-doc-fix
storage: document csi.storage.k8s.io/ephemeral also for internal type
2021-01-25 08:14:54 -08:00
Mike Spreitzer
1f1e8e21d8 Less demanding test cases in TestUniformDistribution
Also a bug fix in the evaluation.
2021-01-25 01:44:08 -05:00
drfish
a8c5aa47fc Remove legacy prometheus visibility package_group 2021-01-25 00:19:29 +08:00
Kubernetes Prow Robot
308aa1a87a Merge pull request #98273 from wenjiaswe/patch-2
Remove unused expectedRV in store_test TestGet
2021-01-23 06:39:39 -08:00
Kubernetes Prow Robot
194e5193c4 Merge pull request #97877 from andyzhangx/azurefile-migration-fix
fix azure file migration issue
2021-01-22 18:21:39 -08:00
David Eads
3f0f38e96d generated 2021-01-22 13:47:31 -05:00