Skip to content

Commit

Permalink
added documentation for filter usage
Browse files Browse the repository at this point in the history
  • Loading branch information
reece-backhouse committed Sep 3, 2024
1 parent 9dd1fd4 commit 7f1744c
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion plugins/frontend/backstage-plugin-launchdarkly/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,27 @@ metadata:
annotations:
launchdarkly.com/project-key: default
launchdarkly.com/environment-key: test
launchdarkly.com/context: '{ "kind": "tenant", "key": "blah", "name": "blah" }'
spec:
type: service
lifecycle: unknown
owner: 'group:engineering'
```

### Filtering flags

Add the additional annotations in order to filter flags by tags and/or query

```yaml
---
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
name: launchdarklytest
annotations:
launchdarkly.com/project-key: default
launchdarkly.com/environment-key: test
launchdarkly.com/filter-tags: '["tagged-flag"]'
launchdarkly.com/filter-query: 'dark-mode'
spec:
type: service
lifecycle: unknown
Expand Down

0 comments on commit 7f1744c

Please sign in to comment.