mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-09-19 14:34:17 +00:00
Restore label selector filtering had only equality-based coverage; set-based selectors were exercised nowhere in the repo, relying entirely on apimachinery behavior. Add notin, in, and doesnotexist (!key) cases to TestRestoreResourceFiltering and set-based parse cases for the --selector CLI flag. Also document restore usage of --selector in resource-filtering.md: the notin phased-restore scenario (noting notin also matches resources without the label key), restoring only unlabeled resources via '!<key>', and the caveat that restore item action dependencies bypass label selectors. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com>