Kubernetes Publisher
fe6b82fbd5
Merge pull request #109914 from stevekuznetsov/skuznets/generic-watch-cancel-test
...
storage/testing: move cancelled watch test to generic package
Kubernetes-commit: ccb7118c22fcb3c8804a4239fb80dd5f3c4e00f3
2022-05-10 14:38:16 +00:00
Davanum Srinivas
8a97d520ab
Move from k8s.gcr.io to registry.k8s.io
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
Kubernetes-commit: 50bea1dad89930ad565526910aadc314b9e9f38b
2022-05-10 08:30:09 -04:00
Kubernetes Publisher
f93af7cfa7
Merge pull request #109909 from stevekuznetsov/skuznets/generic-create-test
...
storage/testing: move creation test to generic package
Kubernetes-commit: 0ee790652492cd9283de6907f2eee349b8686c7c
2022-05-10 04:05:43 -07:00
Wojciech Tyczyński
0a7c4bcca1
Cleanup etcd healthcheck on shutdown
...
Kubernetes-commit: cb80082f666e0e5fe220df32e31a8face18e9393
2022-05-10 11:12:08 +02:00
Sugang Li
da8e7d1134
update kube-controller-manager dependencies
...
Kubernetes-commit: c64846da0025d49e72ef431c713fc8c2461caa73
2022-05-09 16:53:00 +00:00
Steve Kuznetsov
a4bcbc5187
storage/testing: move cancelled watch test to generic package
...
Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
Kubernetes-commit: 1f24bd91c30a3f0b623c452cffa9f043f202d98b
2022-05-09 08:23:58 -07:00
Steve Kuznetsov
fe17bc776e
etcd3/store: call a generic cancelled watch test
...
Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
Kubernetes-commit: c0fc8172559f7796560a9b80fd23df92095adb14
2022-05-09 08:23:03 -07:00
Steve Kuznetsov
7b82bba67e
etcd3/store: update cancelled watch test to be generic
...
There's no reason to create the watch using the underlying watcher.
Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
Kubernetes-commit: 774870611c1d2b405d67eb73ade628ced5e0e994
2022-05-09 08:22:04 -07:00
Steve Kuznetsov
3fd88b5da7
storage/testing: move creation test to generic package
...
Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
Kubernetes-commit: 2e118f42465efb390bec005f1853a964dd339f97
2022-05-09 08:04:53 -07:00
Steve Kuznetsov
daf507c2ff
etcd3/store: make creation test validation generic
...
Different callers to this test may need to do different backend-specific
validation on the stored data, so we allow them a callback for this.
Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
Kubernetes-commit: 6d25e96cedaad249fe75aac4b1fe08bb69829a61
2022-05-09 08:03:41 -07:00
Steve Kuznetsov
f54afb0566
etcd3/store: update creation test to use storage client
...
There is no functional difference between checking for an empty key
using the database client and doing so with the storage interface. Using
the latter allows this test to be more portable.
Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
Kubernetes-commit: f894f8196d9266915424e2cefc9e4eb480ae6f5e
2022-05-09 07:59:38 -07:00
Kubernetes Publisher
01a24e4270
Merge pull request #109891 from pohly/log-dependency-update
...
dependencies: logr and zapr v1.2.3
Kubernetes-commit: bf52c1fd46a6773b9d653ef97d94502c6e0564e5
2022-05-09 18:50:31 +00:00
Kubernetes Publisher
382f813c00
Merge pull request #109602 from lavalamp/remove-clustername
...
Finish clustername removal
Kubernetes-commit: 7af5a7bfc51d0455d8b2322ae9e72ed66fb1b8f9
2022-05-07 18:44:52 +00:00
Kubernetes Publisher
20aaf474b4
Merge pull request #109833 from stevekuznetsov/skuznets/move-simple-tests
...
storage/etcd3: factor tests to accept `storage.Interface`
Kubernetes-commit: f7457747f647485465ff81b2aa8b82fbeee45a19
2022-05-06 18:41:23 +00:00
Kubernetes Publisher
09e974dbce
Merge pull request #109626 from logicalhan/watch-cache-metrics
...
refactor watch cache metrics so that they are in a single place
Kubernetes-commit: ac61dc624cb78e05aa860b5a0009e26171069153
2022-05-05 18:40:58 +00:00
Kubernetes Publisher
038455e537
Merge pull request #109557 from mborsz/traces
...
Improve Create/Update traces.
Kubernetes-commit: 8041606dfa7f1b46be62cd731a392ef66a5c4886
2022-05-05 18:40:56 +00:00
Kubernetes Publisher
cde8f36028
Merge pull request #109435 from pohly/feature-gates-sorting
...
1.25: feature gate cleanup
Kubernetes-commit: 0bd2847019899b38656723f4cf8f0289e6186b43
2022-05-05 18:40:54 +00:00
Steve Kuznetsov
b393e91916
storage/testing: wire things back together with imports
...
Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
Kubernetes-commit: 4ff560e4fa3c716a11f7260f33ec318faad59394
2022-05-05 11:32:05 -07:00
Steve Kuznetsov
ebf7c468b8
storage/etcd3: move reusable tests to importable files
...
These can't live in `_test.go` files, or others won't be able to re-use
them as you can't import from test files.
Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
Kubernetes-commit: 0bfeb728786726cd28b4c64d48874d45a2724165
2022-05-05 09:27:16 -07:00
Steve Kuznetsov
cf5cf85de0
storage/etcd3: factor tests to accept `storage.Interface`
...
This commit simply factors the test functionality into functions that
accept `storage.Interface`.
Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
Kubernetes-commit: 117f674cab1f598251483811fb769046dc3458a3
2022-05-05 09:18:08 -07:00
Kubernetes Publisher
4e6d1b4856
Merge pull request #109804 from cici37/celUpdate
...
Bump cel-go to v0.11.2
Kubernetes-commit: b7c4d243de12a30bba02e23777c8ff1627263f89
2022-05-05 10:44:41 +00:00
cici37
2f0d04576f
Update go-control-plane, cncf/xds/go, cncf/udpa/go and remove unused versions
...
Kubernetes-commit: a3587c12da7f8c87e6676f472dba39f1acbae28f
2022-05-04 18:45:22 -07:00
cici37
90fd12dfd3
Update GRPC
...
Kubernetes-commit: 334d8fb7a2e85d58513c2d3fae113995c8165a4b
2022-05-04 18:41:20 -07:00
cici37
3857252d98
Update genproto and antlr.
...
Kubernetes-commit: e8f6184d8682bd4510d4e18c7c04b5799367ac51
2022-05-04 18:37:30 -07:00
cici37
0dc41b4e83
Bump cel-go to v0.11.2
...
Kubernetes-commit: a86dd2915771f280ff095409fc2ee917cee3c2e3
2022-05-04 18:32:06 -07:00
Kubernetes Publisher
6493753c92
Merge pull request #109440 from liggitt/gomod-1.18
...
update go.mod files to go 1.18
Kubernetes-commit: cb7beb591216de93bef22525a6c5f0e435e21789
2022-05-05 02:44:29 +00:00
David Eads
1a7e8fcfc4
enforce strict alpha handling for API serving
...
Kubernetes-commit: 233e0cb8c3a723f57d578be2179284e4eb9d017d
2022-05-04 15:47:03 -04:00
Jordan Liggitt
dd0b5dd66c
Regenerate vendor
...
Kubernetes-commit: 9e1064a26bfdc18b3272c3d9031d729793725392
2022-05-04 10:27:41 -04:00
Kubernetes Publisher
cd8d01b032
Merge pull request #109623 from stevekuznetsov/skuznets/clarify-list-flow
...
storage/etcd3: clarify the pagingation flow in LIST
Kubernetes-commit: 1ad09407329a986014502fc0d9eb845bdfdd39a4
2022-05-04 10:44:14 +00:00
Kubernetes Publisher
3cdf590495
Merge pull request #109618 from stevekuznetsov/skuznets/common-storage-test-setup
...
storage/etcd3: continue unifying test setup
Kubernetes-commit: ebd5c8c4468431dc2ab5e6af83f1e871e8977472
2022-05-04 10:44:12 +00:00
Kubernetes Publisher
1549c42044
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
Kubernetes-commit: d11eec71cee293d17a7689a462d2f32ad7b04c71
2022-05-04 10:44:10 +00:00
Kubernetes Publisher
158e8ad14e
Merge pull request #109579 from logicalhan/watch-cache-metric
...
remove stutter from alpha metric
Kubernetes-commit: 8dd45ba46ce8febd9825237a87e06f000e4ab2e2
2022-05-04 10:44:08 +00:00
Kubernetes Publisher
f1cf36e8d7
Merge pull request #109514 from aryan9600/clear-guaranteed-update
...
Update `storage.GuaranteedUpdate` to be clearer
Kubernetes-commit: 7e8a35e7da024d74994fcf7447a374537d291835
2022-05-04 10:44:05 +00:00
Kubernetes Publisher
82efff262e
Merge pull request #109303 from wojtek-t/clean_storage_shutdown
...
Cleanup rest storage resources on shutdown
Kubernetes-commit: cc2807c52116858bc53ee0032ebe3261d3361669
2022-05-04 06:40:08 +00:00
Kubernetes Publisher
242a14763d
Merge pull request #109201 from MikeSpreitzer/watch-updoc
...
Update flag descriptions for watch cache
Kubernetes-commit: 35e2e6e03f54e74da58b7b27fa51b2433d114d51
2022-05-04 06:40:05 +00:00
Kubernetes Publisher
b60a90b526
Merge pull request #109175 from MikeSpreitzer/log-watch-cache-size
...
Log whether watch cache is used for particular resources
Kubernetes-commit: abe06b3df562849d0076bdd968262a458b71d3c9
2022-05-04 06:40:03 +00:00
Kubernetes Publisher
c983abad33
Merge pull request #108938 from stevekuznetsov/skuznets/more-correct-rv
...
pkg/storage/etcd3: correctly validate resourceVersions
Kubernetes-commit: 2845122e14e4fa1291c3f6362c96236914ba33fb
2022-05-04 02:45:13 +00:00
Wojciech Tyczyński
2049cfbb9e
Adjust watch channel sizes in watchcache
...
Kubernetes-commit: 0db5c05bdb8bbc510307a48cbade712583bb009e
2022-04-28 11:56:41 +02:00
twilight0620
9c84b3466c
add test case for ToValidOperationID method: TestToValidOperationID
...
Kubernetes-commit: 2ca7c8d82b4844afbcd8b6859166cf7f6c23d7b9
2022-04-27 11:48:44 +08:00
Abirdcfly
dde070e1ff
cleanup: remove duplicate import
...
Signed-off-by: Abirdcfly <fp544037857@gmail.com>
Kubernetes-commit: 00b9ead02c37921011ebe5293558cea5277cd295
2022-04-24 20:58:04 +08:00
Han Kang
24d28aad81
refactor watch cache metrics so that they are in a single place
...
Change-Id: I7874e90d4ec111e82450273f27f8e50556cb096a
Kubernetes-commit: a569829f599acf7ac3acbd3902f41d2c74fc2bd7
2022-04-22 14:21:25 -07:00
Steve Kuznetsov
d96402b9d6
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>
Kubernetes-commit: 809fd64b289add1b378b45c748c23b7278c366f1
2022-04-22 11:50:24 -07:00
Steve Kuznetsov
169ec42cd5
storage/etcd3: continue unifying test setup
...
Previous work by liggitt in 01760927b82 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 6aa37eb0624
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>
Kubernetes-commit: 138faa3799341d02df9fc4bedc1371d338c34887
2022-04-22 07:39:32 -07:00
Sebastian Laskawiec
a0035c972c
Warn on receiving a space before the token
...
Kubernetes-commit: f0af12bb9d57ffb0c1e4917ba59bcd06dd766a28
2022-04-21 09:05:33 +02:00
Han Kang
546d4052ee
remove stutter from alpha metric
...
Change-Id: I6669225943a4196cfe70659fa296a0f81a0ab682
Kubernetes-commit: a9665c2d5834d3db881a524f3f64622949465a1d
2022-04-20 16:56:00 -07:00
Daniel Smith
088283fa36
Remove ClusterName
...
Kubernetes-commit: 331525670b772eb8956b7f5204078c51c00aaef3
2022-04-20 23:50:27 +00:00
Maciej Borsz
17c48c0f65
Improve Create/Update/Patch traces.
...
Kubernetes-commit: 56769e794b757c541d1c7fef36a5507e52e3e7b2
2022-04-20 07:30:12 +00:00
Wojciech Tyczyński
2bba9591a3
Extend StandardStorage with Destroy to implement rbac storage destroy
...
Kubernetes-commit: f62c14a9cc24fa7fc5711b0aa74c7534c8d6793b
2022-04-19 11:18:39 +02:00
Sanskar Jaiswal
d1bd5277fb
Update comment and declaration of `storage.GuaranteedUpdate` to be clearer.
...
Signed-off-by: Sanskar Jaiswal <jaiswalsanskar078@gmail.com>
Kubernetes-commit: f8df26ae803103f82edbf1efe17b1b169801b256
2022-04-16 17:19:06 +05:30
Steve Kuznetsov
90420e863e
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>
Kubernetes-commit: ed5fd905f2b42e9919d99c40a1cb25014f0a7f89
2022-04-13 10:57:02 -07:00