Skip to content

[v2.10] SQL cache backports#435

Merged
moio merged 5 commits into
rancher:release/v0.4from
moio:vai_backports_2024_v04
Jan 11, 2025
Merged

[v2.10] SQL cache backports#435
moio merged 5 commits into
rancher:release/v0.4from
moio:vai_backports_2024_v04

Conversation

@moio
Copy link
Copy Markdown
Contributor

@moio moio commented Jan 9, 2025

This backports #400, #430, #284, #433, #437

All straight cherry-picks.

moio added 3 commits January 9, 2025 14:58
Signed-off-by: Silvio Moioli <silvio@moioli.net>
* Change indexed fields according to https://github.com/rancher/rancher/issues/48256wq

Signed-off-by: Silvio Moioli <silvio@moioli.net>

* Fix typo

---------

Signed-off-by: Silvio Moioli <silvio@moioli.net>
* bump lasso to include pull rancher#111

Signed-off-by: Silvio Moioli <silvio@moioli.net>

* Make IsListWatchable public to be reused in other packages

Signed-off-by: Silvio Moioli <silvio@moioli.net>

* Let lasso know whether a type is watchable upon requesting a cache

Signed-off-by: Silvio Moioli <silvio@moioli.net>

* Adapt existing tests

Signed-off-by: Silvio Moioli <silvio@moioli.net>

* Add a test to check watchability is detected correctly

Signed-off-by: Silvio Moioli <silvio@moioli.net>

---------

Signed-off-by: Silvio Moioli <silvio@moioli.net>
@moio moio requested a review from a team as a code owner January 9, 2025 14:03
@moio moio requested review from ericpromislow and tomleb January 9, 2025 14:04
@moio moio changed the base branch from main to release/v0.4 January 9, 2025 14:04
* Update indexed fields

* Add .status.currentReplicas
tomleb
tomleb previously approved these changes Jan 9, 2025
Copy link
Copy Markdown
Contributor

@tomleb tomleb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment thread pkg/stores/sqlproxy/proxy_store.go Outdated
Copy link
Copy Markdown
Contributor

@ericpromislow ericpromislow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The gvk list is getting large, and would be more maintainable if it's kept in alphabetical order

@tomleb
Copy link
Copy Markdown
Contributor

tomleb commented Jan 9, 2025

@ericpromislow Considering these are backports of already merged commits/PRs, I think it's okay as is and can be fixed in a future PR (in main first). Thoughts?

Signed-off-by: Silvio Moioli <silvio@moioli.net>
@moio
Copy link
Copy Markdown
Contributor Author

moio commented Jan 10, 2025

I would prefer to maintain this list in alpha order, and would have the "networking.k8s.io" entry placed after the last "management.cattle.io" entry.

Me too, added as d78c242

Please also merge #438 and #437 to keep the three branches aligned

@moio moio requested review from ericpromislow and tomleb January 10, 2025 08:05
@moio
Copy link
Copy Markdown
Contributor Author

moio commented Jan 10, 2025

Please merge directly if you are OK with the changes

Copy link
Copy Markdown
Contributor

@ericpromislow ericpromislow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LG

@moio moio merged commit c48ac64 into rancher:release/v0.4 Jan 11, 2025
@moio moio deleted the vai_backports_2024_v04 branch January 11, 2025 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants