Commit Graph

15773 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
2fd498f620
Merge pull request #109430 from soltysh/export_kustomize_version
Export function returning kustomize version
2022-05-04 04:57:51 -07:00
Kubernetes Prow Robot
1ad0940732
Merge pull request #109623 from stevekuznetsov/skuznets/clarify-list-flow
storage/etcd3: clarify the pagingation flow in LIST
2022-05-04 02:35:10 -07:00
Kubernetes Prow Robot
ebd5c8c446
Merge pull request #109618 from stevekuznetsov/skuznets/common-storage-test-setup
storage/etcd3: continue unifying test setup
2022-05-04 02:35:02 -07:00
Kubernetes Prow Robot
7adb7c1d06
Merge pull request #109612 from pandaamanda/remove_DeprecatedControllerOptions
refactor: remove deprecated `deleting-pods-qps` `deleting-pods-burst` `register-retry-count`  flags
2022-05-04 02:34:54 -07:00
Kubernetes Prow Robot
d11eec71ce
Merge pull request #109587 from slaskawi/106142-warn-on-white-characters-at-the-beginning-of-a-token-2
Warn on receiving a space before the token
2022-05-04 02:34:37 -07:00
Kubernetes Prow Robot
8dd45ba46c
Merge pull request #109579 from logicalhan/watch-cache-metric
remove stutter from alpha metric
2022-05-04 02:34:21 -07:00
Kubernetes Prow Robot
b1e130fe83
Merge pull request #109563 from ardaguclu/describe-topologyspreadconstraints
Show topologySpreadConstraints in Describe command
2022-05-04 01:29:37 -07:00
Kubernetes Prow Robot
78dbcb4233
Merge pull request #109520 from cncal/lcn_cleanup_duplicate_code_snippet
Remove the duplicate code snippet in client-go delaying_queue tests
2022-05-04 01:28:56 -07:00
Kubernetes Prow Robot
7e8a35e7da
Merge pull request #109514 from aryan9600/clear-guaranteed-update
Update `storage.GuaranteedUpdate` to be clearer
2022-05-04 01:28:48 -07:00
Kubernetes Prow Robot
76d6473136
Merge pull request #109506 from wangrzneu/fix-comment
fix comment of IngressClassParametersReferenceScopeCluster
2022-05-04 01:28:33 -07:00
Kubernetes Prow Robot
1480fc3945
Merge pull request #109504 from soltysh/clean_builder
Move path error to const and squash tests
2022-05-04 01:28:25 -07:00
Kubernetes Prow Robot
e8ef77514b
Merge pull request #109443 from kevindelgado/dynamic-apply
Add Apply and ApplyStatus methods to dynamic ResourceInterface
2022-05-04 01:27:53 -07:00
Kubernetes Prow Robot
6605e526b0
Merge pull request #109421 from vpnachev/fix/typo-in-token-request-doc-string
Fix typo in TokenRequest doc string
2022-05-03 22:43:30 -07:00
Kubernetes Prow Robot
cc2807c521
Merge pull request #109303 from wojtek-t/clean_storage_shutdown
Cleanup rest storage resources on shutdown
2022-05-03 19:30:57 -07:00
Kubernetes Prow Robot
cbb164efe6
Merge pull request #109277 from MikeSpreitzer/add-weighted-histogram
Start drafting weighted and timing histograms
2022-05-03 19:30:31 -07:00
Kubernetes Prow Robot
2d4c06bf91
Merge pull request #109259 from roycaihw/tweak-quantity-docs
Tweak quantity docs
2022-05-03 19:30:13 -07:00
Kubernetes Prow Robot
6b64c51fac
Merge pull request #109254 from pacoxu/default-container-label
remove deprecated kubectl.kubernetes.io/default-logs-container support
2022-05-03 19:30:01 -07:00
Kubernetes Prow Robot
7061876169
Merge pull request #109251 from krmayankk/kubectl-stateful
add maxunavailable to kubectl describe
2022-05-03 19:29:53 -07:00
Kubernetes Prow Robot
35e2e6e03f
Merge pull request #109201 from MikeSpreitzer/watch-updoc
Update flag descriptions for watch cache
2022-05-03 19:29:27 -07:00
Kubernetes Prow Robot
abe06b3df5
Merge pull request #109175 from MikeSpreitzer/log-watch-cache-size
Log whether watch cache is used for particular resources
2022-05-03 19:29:16 -07:00
Kubernetes Prow Robot
2d9d7287c1
Merge pull request #109101 from Shubham82/Update_resource_in_create_cmd
Update rs.extensions to rs.apps
2022-05-03 18:24:35 -07:00
Kubernetes Prow Robot
2845122e14
Merge pull request #108938 from stevekuznetsov/skuznets/more-correct-rv
pkg/storage/etcd3: correctly validate resourceVersions
2022-05-03 18:24:02 -07:00
Kubernetes Prow Robot
8a437e171c
Merge pull request #108654 from Shubham82/note-serviceaccount_flag_for_multiple-times
Improvement: Updated the serviceaccount flag for multiple subjects.
2022-05-03 18:23:47 -07:00
Kubernetes Prow Robot
2c581a5c40
Merge pull request #108284 from ricky-rav/fix_108283
fix: exclude non-ready nodes from azure load balancer
2022-05-03 18:23:07 -07:00
Kubernetes Prow Robot
1aec0c81b1
Merge pull request #105963 from zhucan/bugfix-95367
csi: add nodeExpandSecret support for CSI client & add unit test
2022-05-03 17:17:58 -07:00
Alexandre Garnier
10eb7092f8
Do not raise an error proposing to use '--overwrite' when labeling with the same value (#105936)
* Do not propose to use '--overwrite' when labeling with the same value

* Check expected error value in label_test.TestLabelFunc
2022-05-03 17:17:49 -07:00
Kubernetes Prow Robot
0401cc2762
Merge pull request #105100 from lauchokyip/addTopSum
Added --sum flag to kubectl top pod
2022-05-03 17:17:41 -07:00
Kubernetes Prow Robot
ea7c57b2ee
Merge pull request #99685 from yangjunmyfm192085/run-test24
Fix misspelling of success.
2022-05-03 17:16:47 -07:00
Kubernetes Prow Robot
70d470e6aa
Merge pull request #109721 from andyzhangx/needresize-windows
fix: NeedResize build failure on Windows
2022-05-03 05:13:55 -07:00
Steve Kuznetsov
ed5fd905f2
pkg/storage/etcd3: validate revision invariant
We must ensure that we notice if the etcd behavior on linearized reads
changes.

Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
2022-04-29 08:55:21 -07:00
Steve Kuznetsov
eba25cdbbc
pkg/storage/etcd3: correctly validate resourceVersions
In a number of tests, the underlying storage backend interaction will
return the revision (logical clock underpinning the MVCC implementation)
at the call-time of the RPC. Previously, the tests validated that this
returned revision was exactly equal to some previously seen revision.
This assertion is only true in systems where no other events are
advancing the logical clock. For instance, when using a single etcd
cluster as a shared fixture for these tests, the assertion is not valid
any longer. By checking that the returned revision is no older than the
previously seen revision, the validation logic is correct in all cases.

Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
2022-04-29 08:55:19 -07:00
Maciej Szulik
a1c90674b5
Do not wrap lines if we can't read term size 2022-04-29 14:01:14 +02:00
andyzhangx
ffca636024 fix: NeedResize build failure on Windows 2022-04-29 11:34:43 +00:00
Mike Spreitzer
b4a40cd43e Draft weighted and timing histograms
The following investigation occurred during development.

Add TimingHistogram impl that shares lock with WeightedHistogram

Benchmarking and profiling shows that two layers of locking is
noticeably more expensive than one.

After adding this new alternative, I now get the following benchmark
results.

```
(base) mspreitz@mjs12 kubernetes % go test -benchmem -run=^$ -bench ^BenchmarkTimingHistogram$ k8s.io/component-base/metrics/prometheusextension
goos: darwin
goarch: amd64
pkg: k8s.io/component-base/metrics/prometheusextension
cpu: Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
BenchmarkTimingHistogram-16    	22232037	        52.79 ns/op	       0 B/op	       0 allocs/op
PASS
ok  	k8s.io/component-base/metrics/prometheusextension	1.404s

(base) mspreitz@mjs12 kubernetes % go test -benchmem -run=^$ -bench ^BenchmarkTimingHistogram$ k8s.io/component-base/metrics/prometheusextension
goos: darwin
goarch: amd64
pkg: k8s.io/component-base/metrics/prometheusextension
cpu: Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
BenchmarkTimingHistogram-16    	22190997	        54.50 ns/op	       0 B/op	       0 allocs/op
PASS
ok  	k8s.io/component-base/metrics/prometheusextension	1.435s
```

and

```
(base) mspreitz@mjs12 kubernetes % go test -benchmem -run=^$ -bench ^BenchmarkTimingHistogramDirect$ k8s.io/component-base/metrics/prometheusextension
goos: darwin
goarch: amd64
pkg: k8s.io/component-base/metrics/prometheusextension
cpu: Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
BenchmarkTimingHistogramDirect-16    	28863244	        40.99 ns/op	       0 B/op	       0 allocs/op
PASS
ok  	k8s.io/component-base/metrics/prometheusextension	1.890s
(base) mspreitz@mjs12 kubernetes %
(base) mspreitz@mjs12 kubernetes %
(base) mspreitz@mjs12 kubernetes % go test -benchmem -run=^$ -bench ^BenchmarkTimingHistogramDirect$ k8s.io/component-base/metrics/prometheusextension
goos: darwin
goarch: amd64
pkg: k8s.io/component-base/metrics/prometheusextension
cpu: Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
BenchmarkTimingHistogramDirect-16    	27994173	        40.37 ns/op	       0 B/op	       0 allocs/op
PASS
ok  	k8s.io/component-base/metrics/prometheusextension	1.384s
```

So the new implementation is roughly 20% faster than the original.

Add overlooked exception, rename timingHistogram to timingHistogramLayered

Use the direct (one mutex) style of TimingHistogram impl

This is about a 20% gain in CPU speed on my development machine, in
benchmarks without lock contention.  Following are two consecutive
trials.

(base) mspreitz@mjs12 prometheusextension % go test  -benchmem -run=^$ -bench Histogram .
goos: darwin
goarch: amd64
pkg: k8s.io/component-base/metrics/prometheusextension
cpu: Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
BenchmarkTimingHistogramLayered-16    	21650905	        51.91 ns/op	       0 B/op	       0 allocs/op
BenchmarkTimingHistogramDirect-16     	29876860	        39.33 ns/op	       0 B/op	       0 allocs/op
BenchmarkWeightedHistogram-16         	49227044	        24.13 ns/op	       0 B/op	       0 allocs/op
BenchmarkHistogram-16                 	41063907	        28.82 ns/op	       0 B/op	       0 allocs/op
PASS
ok  	k8s.io/component-base/metrics/prometheusextension	5.432s

(base) mspreitz@mjs12 prometheusextension % go test  -benchmem -run=^$ -bench Histogram .
goos: darwin
goarch: amd64
pkg: k8s.io/component-base/metrics/prometheusextension
cpu: Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
BenchmarkTimingHistogramLayered-16    	22483816	        51.72 ns/op	       0 B/op	       0 allocs/op
BenchmarkTimingHistogramDirect-16     	29697291	        39.39 ns/op	       0 B/op	       0 allocs/op
BenchmarkWeightedHistogram-16         	48919845	        24.03 ns/op	       0 B/op	       0 allocs/op
BenchmarkHistogram-16                 	41153044	        29.26 ns/op	       0 B/op	       0 allocs/op
PASS
ok  	k8s.io/component-base/metrics/prometheusextension	5.044s

Remove layered implementation of TimingHistogram
2022-04-28 17:36:06 -04:00
Steve Kuznetsov
138faa3799
storage/etcd3: continue unifying test setup
Previous work by liggitt in 01760927b8 improved the boilerplate
required to run an embedded etcd server for tests as well as set up the
`*etcd3.store{}` for testing. A number of tests were not ported to use the
new helpers, though, either due to custom setup or due to inconsistent
use of setup options. A follow-up by stevekuznetsov in 6aa37eb062
removed much of the inconsistency, meaning that most callers to
`newStore()` were simply using the default boilerplate and options that
`testSetup()` used.

This patch moves all users to testSetup(), adding options as necessary
to enable some fringe setup use-cases. With a unified setup, new tests
will not copy boilerplate they do not need and it will be immediately
obvious when reading a test if the client or storage setup is *not*
default, improving readability.

Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
2022-04-26 12:26:17 -07:00
Sebastian Laskawiec
f0af12bb9d Warn on receiving a space before the token 2022-04-25 15:22:28 +02:00
Steve Kuznetsov
809fd64b28
storage/etcd3: clarify the pagingation flow in LIST
It is not possible for the nil-check to ever return anything different
from what the explicit boolean used to, but this is only something that
a reader can come to the conclusion on if they very, very carefuly read
the code. Instead of having this implicit flow that is difficult to
follow, let's keep the boolean.

Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
2022-04-22 11:57:04 -07:00
熊中谅10171568
c4579165f1 refactor: remove deprecated flags
refactor: remove deprecated deleting-pods-qps deleting-pods-burst register-retry-count flags
2022-04-22 20:28:12 +08:00
Sanskar Jaiswal
f8df26ae80 Update comment and declaration of storage.GuaranteedUpdate to be clearer.
Signed-off-by: Sanskar Jaiswal <jaiswalsanskar078@gmail.com>
2022-04-22 01:01:15 +05:30
Han Kang
a9665c2d58 remove stutter from alpha metric
Change-Id: I6669225943a4196cfe70659fa296a0f81a0ab682
2022-04-20 16:56:00 -07:00
Nabarun Pal
88ef5f91b0
release-1.24: update publishing bot rules
This change has been generated by the `update-rules` command in
`publishing-bot` repository. Since this is the first time we are
updating the rules using a script, there is a considerable amount of
diff, which is caused because of the YAML marshaller.

Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2022-04-20 19:40:04 +05:30
Arda Güçlü
64ce73f5fe Show topologySpreadConstraints in Describe command
Currently describe command does not show `topologySpreadConstraints`
field. This PR adds support for showing topologySpreadConstraints in
describe command.For simplicity, if this field is not set, it will not show
(unlike to other core fields whose are shown as `<none>` even if they are null).
2022-04-20 15:37:02 +03:00
Wojciech Tyczyński
f62c14a9cc Extend StandardStorage with Destroy to implement rbac storage destroy 2022-04-19 15:59:13 +02:00
Wojciech Tyczyński
80060a502c Implement Destroy() method for all registries 2022-04-19 15:59:13 +02:00
Wojciech Tyczyński
0527a0dd45 Cleanup rest storage resources on shutdown 2022-04-19 15:59:13 +02:00
cncal
af438abbf3 Remove the duplicate code snippet in client-go delaying_queue tests 2022-04-17 15:55:33 +08:00
renzheng.wang
4bd406ce33 fix IngressClassParametersReferenceScopeCluster comment in staging/src/k8s.io/api/networking 2022-04-16 00:08:11 +08:00
Maciej Szulik
920fb984ef
Move path error to const and squash tests 2022-04-15 12:45:55 +02:00
Maciej Szulik
cc85d27a9c
Ensure that not-exist and pattern error return different results 2022-04-14 19:26:42 +02:00
Stephen Augustus
621c4aa599
etcd: Update container repo to gcr.io/etcd-development/etcd
Signed-off-by: Stephen Augustus <foo@auggie.dev>
2022-04-13 19:04:01 -04:00