Closed pazpuwi closed 1 year ago
@pazpuwi Thanks for opening an issue! The generator doesn't currently support providing matchExpressions
directly. Currently the workaround for this is to write a Placement
or PlacementRule
manifest and supply the path to it in placementPath
or placementRulePath
. clusterSelectors
and labelSelectors
both currently only support providing key: value
pairs, but we have an open item to enable providing matchExpressions
directly as your example: https://issues.redhat.com/browse/ACM-2694
Please let me know if this addresses your issue.
@dhaiducek Thanks a lot for the fast answer. That Information helps a lot. The support for matchExpressions would be great.
If you use clusterSelectors as mentioned in the policy-generator-plugin/docs/policygenerator-reference.yaml an Error occurs.
Solution for us was to use clusterSelector insted of clusterSelectors
Example PolicySet: