1
0
mirror of https://github.com/rancher/steve.git synced 2025-09-12 21:39:30 +00:00

[v2.9] Backport PR 271: Index more sqlite cache fields. (#315)

* [v2.9] Backport PR 271: Index more sqlite cache fields.

* go mod tidy

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

---------

Signed-off-by: Silvio Moioli <silvio@moioli.net>
Co-authored-by: Silvio Moioli <silvio@moioli.net>
This commit is contained in:
Eric Promislow
2024-10-31 10:48:05 -07:00
committed by GitHub
parent ddd2e373b7
commit c4ebbe629f
11 changed files with 433 additions and 49 deletions

View File

@@ -11,7 +11,7 @@ import (
// GetUnstructured retrieves an unstructured object from the provided input. If this is a signal
// object (like cache.DeletedFinalStateUnknown), returns true, indicating that this wasn't an
// unstructured object, but doesn't need to be processed by our transform function
func getUnstructured(obj any) (*unstructured.Unstructured, bool, error) {
func GetUnstructured(obj any) (*unstructured.Unstructured, bool, error) {
raw, ok := obj.(*unstructured.Unstructured)
if !ok {
_, isFinalUnknown := obj.(cache.DeletedFinalStateUnknown)