add use of rejects field in replacement filter

This commit is contained in:
Natasha Sarkar
2021-04-07 15:54:19 -07:00
parent ed688a87e4
commit 0fe3f303e8
3 changed files with 246 additions and 61 deletions

View File

@@ -33,9 +33,7 @@ type TargetSelector struct {
Select *Selector `json:"select" yaml:"select"`
// From the allowed set, remove objects that match this.
// TODO (#3492): Remove matches listed in the `reject` field
// Currently this field is unused
Reject *Selector `json:"reject" yaml:"reject"`
Reject []*Selector `json:"reject" yaml:"reject"`
// Structured field paths expected in each allowed object.
FieldPaths []string `json:"fieldPaths" yaml:"fieldPaths"`