emberstack / kubernetes-reflector

Custom Kubernetes controller that can be used to replicate secrets, configmaps and certificates.
MIT License
1.12k stars 96 forks source link

Allow namespace selection by label selectors #405

Closed pantosha closed 9 months ago

pantosha commented 9 months ago

Now reflector.v1.k8s.emberstack.com/reflection-allowed-namespaces and reflector.v1.k8s.emberstack.com/reflection-auto-namespaces support only names of namespaces. k8s has the concept of labels and label selectors.

It would be nice to support label selectors in reflector, e.g. add new annotations:

Label selectors are supported by kubernetes-replicator, config-syncer