Commit Graph

19589 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
c40bc8c7d8 Merge pull request #120503 from dgrisonnet/body-size
Rename request body size metric to conform with Prometheus best practices
2023-10-15 05:55:39 +02:00
Kubernetes Prow Robot
4d8a51acac Merge pull request #121229 from aojea/remove_cluster_cidr
remove ClusterCIDR alpha API
2023-10-15 02:56:33 +02:00
Kubernetes Prow Robot
cf54acce5c Merge pull request #120274 from danwinship/kube-proxy-config-docs
kube-proxy config/CLI doc fixups
2023-10-15 02:56:24 +02:00
Kubernetes Prow Robot
4a94a570bd Merge pull request #121182 from cpanato/update-rulz
Update publishing-bot rules for active release branches that uses go120 to Go 1.20.10
2023-10-14 23:50:46 +02:00
Kubernetes Prow Robot
43e617f252 Merge pull request #120248 from pacoxu/grpc-container-probe
remove feature gate GRPCContainerProbe
2023-10-14 23:50:20 +02:00
Kubernetes Prow Robot
e0426ffd62 Merge pull request #118806 from abhigyadufare/patch-1
Error Typofix
2023-10-14 23:49:43 +02:00
Kubernetes Prow Robot
52cba2d8d8 Merge pull request #117411 from tenzen-y/add-multiply-method
quantity: Add multiplication methods
2023-10-14 23:49:26 +02:00
Kubernetes Prow Robot
f07df93ffb Merge pull request #119566 from haircommander/cri-owners
cri-api: add CRI implementation maintainers as approvers
2023-10-14 22:42:15 +02:00
Antonio Ojea
c2d473f0d4 remove ClusterCIDR
KEP-2593 proposed to expand the existing node-ipam controller
to be configurable via a ClusterCIDR objects, however, there
were reasonable doubts on the SIG about the feature and after
several months of dicussions we decided to not move forward
with the KEP intree, hence, we are going to remove the existing
code, that is still in alpha.

https://groups.google.com/g/kubernetes-sig-network/c/nts1xEZ--gQ/m/2aTOUNFFAAAJ

Change-Id: Ieaf2007b0b23c296cde333247bfb672441fe6dfc
2023-10-14 19:06:22 +00:00
Kubernetes Prow Robot
b87cae907d Merge pull request #121001 from jiahuif-forks/feature/validating-admission-policy/typed-composition-variables
ValidatingAdmissionPolicy: typed variables support.
2023-10-14 01:55:43 +02:00
Kubernetes Prow Robot
088f8c0ec5 Merge pull request #121096 from alexzielenski/common-schema
add rest of accessors to common.Schema
2023-10-14 00:00:54 +02:00
Yuki Iwai
ddcbae734a Add a 0 × 0 case
Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>
2023-10-14 05:54:15 +09:00
Yuki Iwai
fb2e28b070 Verify more carefully the results in the TestInt64AmountMul
Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>
2023-10-14 05:53:45 +09:00
Yuki Iwai
4de3e73b8a Add test cases for mostPositive and mostNegative
Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>
2023-10-14 04:42:28 +09:00
Yuki Iwai
685ae02433 Add more unit tests
Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>
2023-10-14 04:42:28 +09:00
Yuki Iwai
79325b6178 Multiply by a scalar
Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>
2023-10-14 04:42:28 +09:00
Yuki Iwai
4381eb7237 quantity: Add multiplication methods
Add multiplication functionality to Quantity.

Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>
2023-10-14 04:42:28 +09:00
Kubernetes Prow Robot
0851995a61 Merge pull request #121158 from siyuanfoundation/test-list
k8s.io/apiserver/storage: add some ResourceVersion validation in GetList unit tests.
2023-10-13 15:46:52 +02:00
Kubernetes Prow Robot
86ba008787 Merge pull request #120990 from tkashem/fix-race-apf-test
APF: fix data race in unit tests
2023-10-13 14:37:30 +02:00
Kubernetes Prow Robot
b40f1c00e2 Merge pull request #121203 from enj/enj/i/h2_dos_flake
Skip TestUnauthenticatedHTTP2ClientConnectionClose http1 tests
2023-10-13 05:03:05 +02:00
Kubernetes Prow Robot
a7f8c2f787 Merge pull request #118846 from cyclinder/net.ipv4.tcp_keepalive_time
Mark net.ipv4.tcp_keepalive_time as a safe sysctl
2023-10-13 05:02:51 +02:00
Monis Khan
cd5db9b7f2 Skip TestUnauthenticatedHTTP2ClientConnectionClose http1 tests
These occasionally flake on CI:

https://prow.k8s.io/view/gs/kubernetes-jenkins/pr-logs/pull/121200/pull-kubernetes-unit-go-compatibility/1712589824344461312

=== Failed
=== FAIL: vendor/k8s.io/apiserver/pkg/endpoints/filters TestUnauthenticatedHTTP2ClientConnectionClose/other_skip=true/http/1.1 (0.19s)
    authentication_test.go:653: expect TCP connection: 1, actual: 2
        --- FAIL: TestUnauthenticatedHTTP2ClientConnectionClose/other_skip=true/http/1.1 (0.19s)

=== FAIL: vendor/k8s.io/apiserver/pkg/endpoints/filters TestUnauthenticatedHTTP2ClientConnectionClose/other_skip=true (0.23s)
    --- FAIL: TestUnauthenticatedHTTP2ClientConnectionClose/other_skip=true (0.23s)

=== FAIL: vendor/k8s.io/apiserver/pkg/endpoints/filters TestUnauthenticatedHTTP2ClientConnectionClose (2.30s)

Signed-off-by: Monis Khan <mok@microsoft.com>
2023-10-12 19:13:07 -04:00
Kubernetes Prow Robot
cb713c15e9 Merge pull request #121120 from enj/enj/i/h2_dos
Prevent rapid reset http2 DOS on API server
2023-10-13 00:05:46 +02:00
Monis Khan
800a8eaba7 Prevent rapid reset http2 DOS on API server
This change fully addresses CVE-2023-44487 and CVE-2023-39325 for
the API server when the client is unauthenticated.

The changes to util/runtime are required because otherwise a large
number of requests can get blocked on the time.Sleep calls.

For unauthenticated clients (either via 401 or the anonymous user),
we simply no longer allow such clients to hold open http2
connections.  They can use http2, but with the performance of http1
(with keep-alive disabled).

Since this change has the potential to cause issues, the
UnauthenticatedHTTP2DOSMitigation feature gate can be disabled to
remove this protection (it is enabled by default).  For example,
when the API server is fronted by an L7 load balancer that is set up
to mitigate http2 attacks, unauthenticated clients could force
disable connection reuse between the load balancer and the API
server (many incoming connections could share the same backend
connection).  An API server that is on a private network may opt to
disable this protection to prevent performance regressions for
unauthenticated clients.

For all other clients, we rely on the golang.org/x/net fix in
b225e7ca6d
That change is not sufficient to adequately protect against a
motivated client - future changes to Kube and/or golang.org/x/net
will be explored to address this gap.

The Kube API server now uses a max stream of 100 instead of 250
(this matches the Go http2 client default).  This lowers the abuse
limit from 1000 to 400.

Signed-off-by: Monis Khan <mok@microsoft.com>
2023-10-12 16:54:07 -04:00
Kubernetes Prow Robot
1cc9479720 Merge pull request #121189 from nilekhc/validation-doc
[KMSv2] chore: updates api doc
2023-10-12 22:49:35 +02:00
Kubernetes Prow Robot
e93e8eac0e Merge pull request #120735 from Jefftree/request-body
Bump kube-openapi with v3 marshal and requestBody required marking
2023-10-12 22:49:25 +02:00
Kubernetes Prow Robot
8923c3c871 Merge pull request #119659 from kannon92/beta-pod-ready-to-start
[KEP-3085] Promote PodReadyToStartContainers to beta in 1.29
2023-10-12 22:49:16 +02:00
Kubernetes Prow Robot
32ea66d524 Merge pull request #121159 from siyuanfoundation/getCurrentState
k8s.io/apiserver/storage/etcd: refactor getCurrentState.
2023-10-12 21:45:00 +02:00
Kubernetes Prow Robot
d4a6a674de Merge pull request #120976 from tengqm/fix-audit-apidoc
Fix API docs for audit APIs
2023-10-12 20:00:58 +02:00
Nilekh Chaudhari
78ffa882be chore: updates api doc
Signed-off-by: Nilekh Chaudhari <1626598+nilekhc@users.noreply.github.com>
2023-10-12 16:56:39 +00:00
Kevin Hannon
c94240e2e2 move kubelet constant for podreadytostart to staging 2023-10-12 11:18:11 -04:00
cpanato
1d30a01186 Update publishing-bot rules for active release branches that uses go1.20 to Go 1.20.10
Signed-off-by: cpanato <ctadeu@gmail.com>
2023-10-12 16:12:54 +02:00
Kubernetes Prow Robot
a2cc9db02f Merge pull request #119665 from vinaykul/getpodqos-optimization
Perf optimization: GetPodQOS() returns persisted value of PodStatus.QOSClass, if set.
2023-10-12 06:48:26 +02:00
Kubernetes Prow Robot
f9d987c7c8 Merge pull request #121106 from aojea/ipaddress_uid
Remove Ipaddress uid
2023-10-12 03:26:45 +02:00
Kubernetes Prow Robot
b47aa1c20e Merge pull request #120808 from aroradaman/proxy-conntrack-udp-timeouts
Adding option to configure UDP timeouts for conntrack
2023-10-12 01:59:55 +02:00
Kubernetes Prow Robot
9cf1910b38 Merge pull request #121116 from alexanderConstantinescu/reintroduce-ready-predicate-foretp-local
KCCM: fix GCP ILB by reintroducing readiness predicate for eTP:Local
2023-10-12 00:51:19 +02:00
Daman Arora
15ae6cc160 pkg/proxy: add flag to configure udp conntrack timeouts
Signed-off-by: Daman Arora <aroradaman@gmail.com>
2023-10-12 03:08:21 +05:30
Kubernetes Prow Robot
07029999f9 Merge pull request #120666 from b8kings0ga/feature/fix-comment-correction
AttachDetachControllerConfiguration.ReconcilerSyncLoopPeriod default value comment fix
2023-10-11 22:51:49 +02:00
Siyuan Zhang
baac8bb573 k8s.io/apiserver/storage: add some ResourceVersion validation in GetList unit tests
Signed-off-by: Siyuan Zhang <sizhang@google.com>
2023-10-11 10:46:30 -07:00
Siyuan Zhang
ebca5d438d k8s.io/apiserver/storage/etcd: refactor getCurrentState.
Extract getCurrentState as a separate method that can be reused.

Signed-off-by: Siyuan Zhang <sizhang@google.com>
2023-10-11 09:56:07 -07:00
Jefftree
555c1b8091 bump kube-openapi 2023-10-11 11:12:47 -04:00
cpanato
5eb7fea383 [go] Bump images, dependencies and versions to go 1.21.3
Signed-off-by: cpanato <ctadeu@gmail.com>
2023-10-11 17:08:26 +02:00
Arda Güçlü
a504aed54d Add shortname ambiguity warning in shortcut expander (#117668)
* Add warning handler callback function in shortcut expander

Currently, errors in client-go are propagated back to the callers via
function returns. However, there is no elegant way for just warning users.
For example, when user wants to get a resource with it's short name format
and if there are multiple resources belonging to this short name, we need to
warn user about this ambugity which one is picked and which ones are discarded.

Not only to overcome this particular case mentioned above, but also propose a
way for the possible warnings in the future, this commit adds a warningHandler
callback function in shortcutExpander.

* Add warningPrinter functionality in ConfigFlags

ConfigFlags has neither warning user in a standardized
format functionality nor passing warning callback functions to other upper level
libraries such as client-go.

This commit adds an ability that user can set warningPrinters
according to their IOStreams and this warningPrinters will be used
to raise possible warnings happening not only in cli-runtime but
also in client-go.

* Pass warning callback function in ConfigFlags to shortcutExpander

This commit passes warning callback function to print possible
warnings happened in shortcut expander to warn user in a
standardized format.

* Add integration test for CRDs having ambiguous short names

This commit adds integration test to assure that warning message
related to this ambiguity is printed when resources are being retrieved via their short name
representations in cases where multiple resources have same
short names.

This integration test also ensures that the logic behind which resource
will be selected hasn't been changed which may cause disperancies in
clusters.

* Remove defaultConfigFlag global variable

* Move default config flags initialization into function

* Skip warning for versions of same group/resource

* Run update-vendor

* Warn only once when there are multiple versions registered for ambiguous resource

* Apply gocritic review

* Add multi-resource multi-version ambiguity unit test
2023-10-11 17:04:11 +02:00
Kubernetes Prow Robot
eafebcc9e3 Merge pull request #121111 from dashpole/update_otel_deps
Update OpenTelemetry Dependencies
2023-10-11 05:55:02 +02:00
Kubernetes Prow Robot
88f962c95a Merge pull request #120147 from msau42/mount-logs
Move mount warnings to info logs for normal expected paths
2023-10-11 04:42:40 +02:00
cyclinder
b42b3f740a Pod Security admission allows net.ipv4.tcp_keepalive_time in v1.29+ 2023-10-11 10:24:19 +08:00
Alexander Zielenski
438c0daab7 add rest of accessors to common.Schema
needed for declarative validation, CRD ratcheting
2023-10-10 14:26:55 -07:00
David Ashpole
80269d5d34 fix missing http.target trace attribute 2023-10-10 19:16:18 +00:00
John Howard
dc334b953d dependencies: update otel-go dependencies 2023-10-10 19:16:07 +00:00
Madhav Jivrajani
fc7c951d5a .: bump golang.org/x/net to v0.17.0
Bumping golang.org/x/net in light of CVE-2023-39325 and CVE-2023-44487.

Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com>
2023-10-10 23:07:19 +05:30