Support resourceMatchers in searchRules #182
Labels
carvel accepted
This issue should be considered for future work and that the triage process has been completed
enhancement
This issue is a feature request
Describe the problem/challenge you have
The existing key matcher and value matcher are quite limited.
For example, let's say I have a
ConfigMap
with animage
field:You could use a key matcher to
name: image
andpath: [data]
, but that would potentially catch other resources (ConfigMaps or otherwise) that you didn't mean to include.Alternatively, you could use a value matcher, but that can also suffer from false positives and requires knowing the image name and/or repo ahead of time.
Describe the solution you'd like
Support resourceMatchers, similar to what kapp does: https://carvel.dev/kapp/docs/latest/config/#resource-matchers. This would allow targeting specific kinds (ConfigMap) and names.
Once the resource matcher filters down to the resource(s), I think you'd still need the ability to specify paths inside the resource though.
Anything else you would like to add:
https://kubernetes.slack.com/archives/CH8KCCKA5/p1635201137105000?thread_ts=1635197514.098700&cid=CH8KCCKA5
Vote on this request
This is an invitation to the community to vote on issues, to help us prioritize our backlog. Use the "smiley face" up to the right of this comment to vote.
👍 "I would like to see this addressed as soon as possible"
👎 "There are other more important things to focus on right now"
We are also happy to receive and review Pull Requests if you want to help working on this issue.
The text was updated successfully, but these errors were encountered: