steve/pkg/sqlcache/db
Eric Promislow e03f03ea75
Index fields: part 7 (#855)
* Capture type info so numeric values sort correctly.

* Replace conditional string prefixing with strings.TrimPrefix

* Add tabular data for other metadata.fields to sort numerically.

The issue is that some fields are not numeric, but are represented
in an entry in metadata.fields with a numeric indicator.  Like
with secrets, metadata.fields[2] gives the number of actual keys
in the stored secret.

* Index more fields round 7, part 1

Add status.{allocatable,requested}.{cpus,pods,memory,memoryRaw}

* Add a converter to convert the annotated strings to float64's

* Fold the 'builtinIntTable' into the prepopulated 'typeGuidanceTable'.

- More test tweaking - verify the status.available fields work when not specified.

* Correction: 'status.available' should be 'status.requested'.

* Add the 'memoryRaw' field to status.A/R

* golint change, but the sql function uses underscores

* Fix decoding problems.

* Remove redundant type registering for GOB

* We no longer need to process this type because everything is 'map[string]any'.

* Remove commented-out debug helpers

* Use k8s library quantity-parser over ours.

Our unit tests pass as if with this change, looks good.
2025-10-17 08:55:15 -04:00
..
logging Add debug logging for queries (#834) 2025-10-08 08:00:44 +02:00
client.go Index fields: part 7 (#855) 2025-10-17 08:55:15 -04:00
client_test.go Make vai use the encoding abstraction and improvements (#743) 2025-10-10 08:18:56 +02:00
db_mocks_test.go
encoding.go Make vai use the encoding abstraction and improvements (#743) 2025-10-10 08:18:56 +02:00
encoding_test.go
sqlwraps.go Add debug logging for queries (#834) 2025-10-08 08:00:44 +02:00
transaction.go Add debug logging for queries (#834) 2025-10-08 08:00:44 +02:00
utility.go