Skip to content

Commit 6eed6f4

Browse files
committed
Add an example of a one-shot discovery config
Signed-off-by: Richard Wall <[email protected]>
1 parent 737eb5a commit 6eed6f4

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

examples/one-shot-secret.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# one-shot-secret.yaml
2+
#
3+
# An example configuration file which can be used for local testing.
4+
# It gathers only secrets and it does not attempt to upload to Venafi.
5+
# For example:
6+
#
7+
# builds/preflight agent \
8+
# --agent-config-file examples/one-shot-secret.yaml \
9+
# --one-shot \
10+
# --output-path output.json
11+
#
12+
organization_id: "my-organization"
13+
cluster_id: "my_cluster"
14+
period: 1m
15+
data-gatherers:
16+
- kind: "k8s-dynamic"
17+
name: "k8s/secrets.v1"
18+
config:
19+
resource-type:
20+
version: v1
21+
resource: secrets

0 commit comments

Comments
 (0)