Commit Graph

15302 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
c2d2e66535 Merge pull request #106830 from pacoxu/StreamingProxyRedirects-remove
remove ValidateProxyRedirects and StreamingProxyRedirects
2022-03-04 14:19:53 -08:00
Kubernetes Prow Robot
a330194601 Merge pull request #107967 from jlsong01/check_kubectl_version_extra_arguments
kubectl version should fail when given extra arguments
2022-03-03 22:26:52 -08:00
Kubernetes Prow Robot
04c8807f1f Merge pull request #107141 from mk46/ttl
Increase default value of cache TTL to 6 hours.
2022-03-03 19:50:55 -08:00
Ben Luddy
fedaa23f24 Forbid CEL transition rules on unmergeable CRD subschemas.
Transition rules (i.e. validation rules whose expressions reference
existing state) are not allowed on schemas, or the descendants of
schemas, that are unmergeable according to server-side apply
semantics. Today, this means that only objects with map-type
"granular" (or unspecified) and arrays with list-type "map" support
transition rules on their property/item subschemas.
2022-03-03 11:15:23 -05:00
Manish Kumar
94f7f92205 Increase default value of cache TTL to 6 hours. 2022-03-03 21:30:26 +05:30
Kubernetes Prow Robot
52cd4d53ac Merge pull request #108347 from tkashem/refactor
client-go: refactor retry logic for backoff, rate limiter and metric to be reused by Watch, Stream, and Do
2022-03-03 04:25:47 -08:00
jlsong01
969cc463ef kubectl version should fail when given extra arguments 2022-03-03 16:28:37 +08:00
Kubernetes Prow Robot
a83bb7746c Merge pull request #108312 from jpbetz/stdlib
Add CEL function library
2022-03-02 22:40:48 -08:00
Kubernetes Prow Robot
306d7724dd Merge pull request #107363 from eddiezane/ez/kubectl-1118-crd-error
Improve error message for missing CRDs
2022-03-02 19:46:47 -08:00
Joe Betz
fd5ae0451d Add stdlib of CEL functions to Kubernetes that extends the standard library provided by CEL 2022-03-02 20:27:21 -05:00
Eddie Zaneski
dfcc141c91 Improve error message for missing CRDs
Signed-off-by: Eddie Zaneski <eddiezane@gmail.com>
2022-03-02 13:59:23 -07:00
Abu Kashem
cecc563d3b client-go: refactor retry logic for backoff, rate limiter and metric 2022-03-02 14:38:30 -05:00
Kubernetes Prow Robot
7852ba093d Merge pull request #108228 from AllenZMC/imporve_code_specification
fix defer in for loop, maybe resource leak
2022-03-01 19:27:13 -08:00
Kubernetes Prow Robot
5ee80dee04 Merge pull request #108296 from aojea/client_go_size_metrics
client-go: add request and response size metrics
2022-02-28 14:27:46 -08:00
Kubernetes Prow Robot
cc4c95181e Merge pull request #108187 from stevekuznetsov/skuznets/storage-tests-diff
storage: etcd: use cmp.Diff for comparisons
2022-02-28 10:08:57 -08:00
Steve Kuznetsov
dfdd486f09 storage: etcd: use cmp.Diff for comparisons
This commit simply modernizes the comparisons made in the storage tests
to use `cmp.Diff()` so that pointer comparisons and length checks do not
have to be made by hand. We also get nice diffs in the test output this
way instead of large pasted blobs.

Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
2022-02-28 08:41:45 -08:00
Kubernetes Prow Robot
bf7b9119f0 Merge pull request #108278 from kerthcet/feature/graduate-defaultPodTopologySpread-to-ga
graduate default pod topology spread to ga
2022-02-28 08:02:57 -08:00
Antonio Ojea
64d9d0585f client-go: add request and response size metrics
Get metrics for the request and response  size, so we can correlate latency
and size on a request, otherwise we could get confused because we don't know if the
network is slow or just the request size huge.
2022-02-28 16:59:12 +01:00
Kubernetes Prow Robot
05a71be79d Merge pull request #108365 from liggitt/fix-proto-gen
Fix proto gen
2022-02-26 11:17:23 -08:00
Jordan Liggitt
48a1c729a0 Regenerate protobuf
Change-Id: I2a563514955d7fc7559ceb7afb73df08ace8fd8b
2022-02-26 18:02:52 +00:00
Jordan Liggitt
f68adbcd59 Fix protobuf generation 2022-02-26 13:00:42 -05:00
Kubernetes Prow Robot
109cb7cbe7 Merge pull request #108339 from cheftako/anp-release
Bump konnectivity-client to v0.0.28
2022-02-25 17:49:23 -08:00
Walter Fender
e5b0392f12 Bump konnectivity-client to v0.0.28
Bump konnectivity network proxy to v0.0.28.
Includes a fix to ensure the KAS calls Close() on the egress connection.
2022-02-24 12:35:54 -08:00
Heba Elayoty
38da5cdb35 Fix kube-scheduler KEP link 2022-02-24 08:49:55 -08:00
Damien Grisonnet
7f3f8d25c8 bump client_golang to v1.12.1
Bump client_golang to v1.12.1 to fix a concurrency issue in the Go
Collector that was introduced by the library in v1.12.0.

Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com>
2022-02-24 10:25:12 +01:00
uhari03
016b96ca38 Issue 105353: Add messages+details to audit logs response (#105415) 2022-02-23 17:53:33 -08:00
Kubernetes Prow Robot
2fcdbd098c Merge pull request #107993 from deads2k/simplify
prevent enabling beta by default for new api groups
2022-02-23 16:03:35 -08:00
Kubernetes Prow Robot
77eb1a03df Merge pull request #94637 from liggitt/namespace-before-admission
set/validate object namespace before admission
2022-02-23 14:35:58 -08:00
Kubernetes Prow Robot
08d32851fe Merge pull request #108262 from tkashem/retry-unit-test
client-go: add unit test to verify order of calls with retry
2022-02-23 11:46:08 -08:00
David Eads
af99d192cf prevent enabling beta by default for new api groups 2022-02-23 13:51:43 -05:00
David Eads
a59b92e8c0 reduce API surface area of whether a resource is enabled 2022-02-23 13:36:33 -05:00
Kubernetes Prow Robot
25ccc48c60 Merge pull request #106911 from aojea/client_go_metrics
Update client-go latency metrics bucket
2022-02-23 10:20:18 -08:00
Kubernetes Prow Robot
b435061c80 Merge pull request #108186 from p0lyn0mial/watch-list-reduce-allocations-in-watch-server
reduce the number of allocations in the WatchServer during objects serialisation
2022-02-23 09:04:19 -08:00
Jordan Liggitt
e731ccd650 Update storage/handler unit tests to set / expect namespace in object 2022-02-23 11:12:28 -05:00
Jordan Liggitt
92422a7305 set/validate object namespace before admission 2022-02-23 11:12:27 -05:00
Antonio Ojea
bebf5a608f client-go: remove no longer used finalURLTemplate
The restclient metrics were updated to track only the host field of the
url, the finalURLTemplate is not longer needed, its only goal was to
replace name and namespace in the path to avoid cardinality.
2022-02-23 15:36:05 +01:00
Antonio Ojea
227deba223 update buckets for client-go latency metrics
Current request latency metrics have the following buckets:

0.001, 0.002, 0.004, 0.008, 0.016, 0.032, 0.064, 0.128, 0.256, 0.512

That has two much granularity for http requests, and it gets capped to
aprox half seconds, loosing visibility on the requests that may be more
interested, the ones that take more than 1 second.

Using the same used for etcd request latency, with the same upper and
lower limits than the ones used in the apiserver, but only adding one
bucket more.

[]float64{0.005, 0.025, 0.1, 0.25, 0.5, 1.0, 2.0, 4.0, 8.0, 15.0, 30.0, 60.0},
2022-02-23 15:35:50 +01:00
Lukasz Szaszkiewicz
9dd77ac017 introduces a new streaming encoder that utilizes a memory allocator during objects serialization 2022-02-23 14:38:29 +01:00
Lukasz Szaszkiewicz
034868e6af fixes TestNestedEncodeError test 2022-02-23 14:38:29 +01:00
Lukasz Szaszkiewicz
52de201b0f introduces a memory allocator
The primary use case for the allocator is to reduce cost of object serialization.
Initially it will be used by the protobuf serializer.
This approach puts less load on GC and leads to less fragmented memory in general.
2022-02-23 14:38:29 +01:00
Lukasz Szaszkiewicz
32ca2b881d provides EncodeWithAllocator method for the protobuf encoder
The new method allows for providing a memory allocator for efficient memory usage during object serialization.
2022-02-23 14:38:23 +01:00
kerthcet
4439fc3590 feat: graduate DefaultPodTopologySpread to GA
Co-authored-by: drfish <drfish.me@gmail.com>
Signed-off-by: kerthcet <kerthcet@gmail.com>
2022-02-23 19:45:27 +08:00
Lukasz Szaszkiewicz
81cf096751 codec: exposes EncodeWithAllocator method
The new method is implemented by the protobuf serializer and helps to reduce memory footprint during object serialization.
2022-02-23 11:06:25 +01:00
Lukasz Szaszkiewicz
f3d5f42aa4 codec interfaces 2022-02-23 11:06:25 +01:00
Lukasz Szaszkiewicz
eda1b0c68e update the watch server to use EncoderWithAllocator during object serialization.
It allows us to allocate a single buffer for the entire watch session and release it when a watch connection is closed.
Previously memory was allocated for every object serialization putting a lot of pressure on GC and consuming more memory than needed.
2022-02-23 11:06:17 +01:00
Kubernetes Prow Robot
5211a4b214 Merge pull request #103061 from SergeyKanzhelev/removeAlphaRuntimeClass
Remove RuntimeClass feature gate and stop serving older versions of RuntimeClass
2022-02-22 19:08:18 -08:00
Kubernetes Prow Robot
bb610d0816 Merge pull request #108280 from liggitt/secrets
Update secrets field API doc
2022-02-22 17:48:18 -08:00
Abu Kashem
f6a66bbe05 client-go: add unit test to verify order of calls 2022-02-22 18:10:48 -05:00
Kubernetes Prow Robot
a2adaf75b7 Merge pull request #108205 from dkkb/fix/typo
Fix typo allcoated -> allocated
2022-02-22 14:35:03 -08:00
Kubernetes Prow Robot
86945d7e74 Merge pull request #107431 from justaugustus/rel-mgr
OWNERS(releng): Reconcile existing Release Managers
2022-02-22 11:39:16 -08:00