redhat-cop / namespace-configuration-operator

The namespace-configuration-operator helps keeping configurations related to Users, Groups and Namespaces aligned with one of more policies specified as a CRs
Apache License 2.0
204 stars 55 forks source link

[RFE] Support regexp or "selection expression" in the MatchLabels. #21

Closed jtudelag closed 4 years ago

jtudelag commented 4 years ago

First of all, thanks for this awesome operator, it is super useful!!!

It would be great to be able to use regexp or "selection expressions" in the matchLabel selector

For example:

selector:
    matchLabels:
      regexp:
         ".*-dev"

Or selection expressions, like the ones used in the OCP Router Sharding:

selector:
    matchLabels:
      operand:
        "name in (dev, ops)"
stocky37 commented 4 years ago

You can use matchExpressions instead of matchLabels for selection expressions. See: Resources that support set based requirements.

raffaelespazzoli commented 4 years ago

closed by #22