Skip to content

Use native filtering of store.Store#740

Draft
gonzolino wants to merge 3 commits into
ironcore-dev:mainfrom
gonzolino:enh/store-list-options
Draft

Use native filtering of store.Store#740
gonzolino wants to merge 3 commits into
ironcore-dev:mainfrom
gonzolino:enh/store-list-options

Conversation

@gonzolino

Copy link
Copy Markdown

Proposed Changes

  • Use MatchingLabels an MatchingFields filters for listing instead of post-fetch loops

gonzolino added 3 commits July 5, 2026 19:01
Signed-off-by: Daniel Gonzalez Nothnagel <daniel.gonzalez.nothnagel@sap.com>
Signed-off-by: Daniel Gonzalez Nothnagel <daniel.gonzalez.nothnagel@sap.com>
Signed-off-by: Daniel Gonzalez Nothnagel <daniel.gonzalez.nothnagel@sap.com>
@github-actions github-actions Bot added the size/L label Jul 5, 2026
FieldIndexers: map[string]store.IndexerFunc[*api.Machine]{
api.MachineMetadataDeletedField: api.SetupMachineMetadataDeletedFieldIndexer,
api.MachineSpecImageField: api.SetupMachineSpecImageFieldIndexer,
api.MachineSpecHasGpuField: api.SetupMachineSpecHasGpuFieldIndexer,

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Note: I am unsure if it is worthwhile to add an index for api.MachineSpecHasGpuField, as this index is only used once during startup in GetClaimedPCIAddressesFromMachineStore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant