1
0
mirror of https://github.com/rancher/steve.git synced 2025-07-01 01:02:08 +00:00
steve/pkg/sqlcache/informer/factory
Eric Promislow c906c36bc3
support unwatchables in vai (#458)
* Create and use a synthetic watcher for non-watchable resources.

* Write unit tests for the synthetic watcher.

* Make the refresh interval for synthetic watchers configurable.

The default is to call `client.List(...)` every 5 seconds for each unwatchable GVK.

There are currently only 3 such GVKs right now so this will be informative
enough but not really noticeable.

* Pass the context into the synthetic watch func.

* Restore changes lost in rebasing.

---------

Co-authored-by: Tom Lebreux <tom.lebreux@suse.com>
2025-02-20 12:45:58 -08:00
..
db_mocks_test.go sql: use a closure to wrap transactions (#469) 2025-02-05 10:05:52 +01:00
dynamic_mocks_test.go Move lasso SQL cache in Steve (#452) 2025-01-17 09:34:48 -05:00
informer_factory_test.go support unwatchables in vai (#458) 2025-02-20 12:45:58 -08:00
informer_factory.go support unwatchables in vai (#458) 2025-02-20 12:45:58 -08:00
k8s_cache_mocks_test.go Move lasso SQL cache in Steve (#452) 2025-01-17 09:34:48 -05:00
transaction_mocks_tests.go sql: use a closure to wrap transactions (#469) 2025-02-05 10:05:52 +01:00