Skip to content

Instantly share code, notes, and snippets.

@aaron-prindle
Last active April 17, 2019 23:51
Show Gist options
  • Select an option

  • Save aaron-prindle/b53d3d3687ef442fe113325db5fd4dff to your computer and use it in GitHub Desktop.

Select an option

Save aaron-prindle/b53d3d3687ef442fe113325db5fd4dff to your computer and use it in GitHub Desktop.
FlowSchema ‘Match’ Directives
Equals
Field
Value
Equals does a direct match of the specified field against the value
notEquals
Inverse of the specified ‘Equals’
InSet
Field
Set
InSet matches the field against a specified set of values
notInSet
Inverse of the specified ‘InSet’
SuperSet
Field
Set
SuperSet matches that the field specified contains one value (or is a substring of) in the set of specified values
Ex:
- superSet:
field: groups
set: [ "system:masters" ]
Groups = “system:master,system:other”
set: [ "system:masters" ]
Groups contains a value in the set -> a match
notSuperSet
Inverse of the specified ‘SuperSet’
PatternMatch
Field
Pattern
PatternMatch matches the field against a specified pattern which is evaluated using Go “regexp”
notPatternMatch
Inverse of the specified ‘PatternMatch’
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment