Select pods by name or image

I know you can select pods by label, but I want to get really specific and not allow duplicates - so I want to select pods by name or image. How can I do this?

I think you would need a mutating admission controller to add labels to pods for their name or image. Kubernetes recommends adding these labels to pods:

And an admission controller like Kyverno can do that for you: Add Labels | Kyverno