Skip to content

Commit

Permalink
chore: Add targeted Flag to example config (#467)
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Gardner <[email protected]>
Co-authored-by: Michael Beemer <[email protected]>
  • Loading branch information
agardnerIT and beeme1mr authored Mar 8, 2023
1 parent f53f6c8 commit 6a039ce
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
23 changes: 23 additions & 0 deletions config/samples/example_flags.flagd.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,29 @@
}, null
]
}
},
"targetedFlag": {
"variants": {
"first": "AAA",
"second": "BBB",
"third": "CCC"
},
"defaultVariant": "first",
"state": "ENABLED",
"targeting": {
"if": [{
"in": ["@openfeature.dev", {
"var": "email"
}]
}, "second",
{
"in": ["Chrome", {
"var": "userAgent"
}]
}, "third",
null
]
}
}
},
"$evaluators": {
Expand Down
20 changes: 19 additions & 1 deletion config/samples/example_flags.flagd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,27 @@ flags:
- - yellow
- 25
- null
targetedFlag:
variants:
first: "AAA"
second: "BBB"
third: "CCC"
defaultVariant: first
state: ENABLED
targeting:
if:
- in:
- "@openfeature.dev"
- var: email
- second
- in:
- Chrome
- var: userAgent
- third
-
"$evaluators":
emailWithFaas:
in:
- "@faas.com"
- var:
- email
- email

0 comments on commit 6a039ce

Please sign in to comment.