Skip to content

v0.7.0 — Wildcard field paths and ghost-entry cleanup

Choose a tag to compare

@scotwells scotwells released this 09 Jul 02:55
312f9af

Array wildcards for indexing, and the end of ghost entries reappearing in search after deletion.

What's new

  • Wildcard field paths in ResourceIndexPolicyspec.fields[].path now accepts [*] to index every element of an array (e.g. .spec.ports[*].name makes every port's name searchable, not just index 0). (#100)
  • Terminating resources no longer reappear in search — when a resource with a finalizer is deleted, the finalizer-removal update was being re-indexed as a normal write, resurrecting an entry the indexer had just removed. Updates to terminating resources are now treated as deletes on both the live event stream and the reindex path, so the index self-heals even if an earlier delete event was missed. (#103)

Note

No breaking API changes. FieldPolicy.Path's doc comment was expanded to describe the [*]/bracket/index syntax it already supports — existing ResourceIndexPolicy resources and clients keep working unmodified.

A one-time cleanup of ghost entries created by the bug fixed in #103 (prior to this release) is being handled separately and is not part of this release.