Skip to content

Commit 3cb4d02

Browse files
author
Atanas Chuchev
committed
Add ConfigMap data gatherer to machinehub example
- Add ark/configmaps data gatherer configuration with label selector - Add empty ConfigMap data entry to example input.json
1 parent 9c8ca8c commit 3cb4d02

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

examples/machinehub.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,16 @@ data-gatherers:
4141
resource: serviceaccounts
4242
version: v1
4343

44+
# Gather Kubernetes config maps with specific conjur.org label
45+
- name: ark/configmaps
46+
kind: k8s-dynamic
47+
config:
48+
resource-type:
49+
resource: configmaps
50+
version: v1
51+
label-selectors:
52+
- conjur.org/name=conjur-connect-configmap
53+
4454
# Gather Kubernetes roles
4555
- name: ark/roles
4656
kind: k8s-dynamic

examples/machinehub/input.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,5 +153,11 @@
153153
"data": {
154154
"items": []
155155
}
156+
},
157+
{
158+
"data-gatherer": "ark/configmaps",
159+
"data": {
160+
"items": []
161+
}
156162
}
157163
]

0 commit comments

Comments
 (0)