Commit Graph
3 Commits
Author SHA1 Message Date
Tiger KaovilaiandClaude Fable 5 b7ffd55085 Add set-based label selector test and docs coverage for restore
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>
2026-08-27 13:01:08 -04:00
Matthieu MORELandGitHub 35c90f1672 testifylint: enable error-nil rule (#7670)
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2024-07-16 12:23:16 -04:00
Wenkai Yin(尹文开) e92047c43e Add unit test cases for pkg/cmd/util/flag package
Add unit test cases for pkg/cmd/util/flag package

Fixes #6253

Signed-off-by: Wenkai Yin(尹文开) <yinw@vmware.com>
2023-06-01 10:29:11 +08:00