Allow setting multiple values with one key in ExcludeLabels
#47
Closed
Description
What
Due to YAML's specifications, excludeLabels
cannot be set multiple values with one key.
This issue aims to allow users to set multiple values with one key for writing exclude rules.
How
Using "expressions" to exclude namespaces.
excludeLabels
won't be deleted for backward compatibility.
Example
apiVersion: tenet.cybozu.io/v1beta2
kind: NetworkPolicyAdmissionRule
metadata:
name: exclude-with-expressions
spec:
namespaceSelector:
excludeLabelExpressions:
- key: team
operator: In
values:
- team1
- team2
forbiddenEntities:
- entity: world
type: all
Checklist
- Finish implementation of the issue
- Test all functions
-
Have enough logs to trace activities -
Notify developers of necessary actions
Metadata
Assignees
Labels
No labels