Skip to content

Commit 9fd3170

Browse files
author
Atanas Chuchev
committed
Reorganize ConfigMap data gatherer in disco-agent and update machinehub example
1 parent 9c66d57 commit 9fd3170

3 files changed

Lines changed: 50 additions & 50 deletions

File tree

deploy/charts/disco-agent/templates/configmap.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,6 @@ data:
4040
resource-type:
4141
resource: serviceaccounts
4242
version: v1
43-
- kind: k8s-dynamic
44-
name: ark/configmaps
45-
config:
46-
resource-type:
47-
resource: configmaps
48-
version: v1
49-
label-selectors:
50-
- conjur.org/name=conjur-connect-configmap
5143
- kind: k8s-dynamic
5244
name: ark/roles
5345
config:
@@ -117,3 +109,11 @@ data:
117109
resource-type:
118110
version: v1
119111
resource: pods
112+
- kind: k8s-dynamic
113+
name: ark/configmaps
114+
config:
115+
resource-type:
116+
resource: configmaps
117+
version: v1
118+
label-selectors:
119+
- conjur.org/name=conjur-connect-configmap

deploy/charts/disco-agent/tests/__snapshot__/configmap_test.yaml.snap

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,6 @@ custom-cluster-description:
2828
resource-type:
2929
resource: serviceaccounts
3030
version: v1
31-
- kind: k8s-dynamic
32-
name: ark/configmaps
33-
config:
34-
resource-type:
35-
resource: configmaps
36-
version: v1
37-
label-selectors:
38-
- conjur.org/name=conjur-connect-configmap
3931
- kind: k8s-dynamic
4032
name: ark/roles
4133
config:
@@ -105,6 +97,14 @@ custom-cluster-description:
10597
resource-type:
10698
version: v1
10799
resource: pods
100+
- kind: k8s-dynamic
101+
name: ark/configmaps
102+
config:
103+
resource-type:
104+
resource: configmaps
105+
version: v1
106+
label-selectors:
107+
- conjur.org/name=conjur-connect-configmap
108108
kind: ConfigMap
109109
metadata:
110110
labels:
@@ -145,14 +145,6 @@ custom-cluster-name:
145145
resource-type:
146146
resource: serviceaccounts
147147
version: v1
148-
- kind: k8s-dynamic
149-
name: ark/configmaps
150-
config:
151-
resource-type:
152-
resource: configmaps
153-
version: v1
154-
label-selectors:
155-
- conjur.org/name=conjur-connect-configmap
156148
- kind: k8s-dynamic
157149
name: ark/roles
158150
config:
@@ -222,6 +214,14 @@ custom-cluster-name:
222214
resource-type:
223215
version: v1
224216
resource: pods
217+
- kind: k8s-dynamic
218+
name: ark/configmaps
219+
config:
220+
resource-type:
221+
resource: configmaps
222+
version: v1
223+
label-selectors:
224+
- conjur.org/name=conjur-connect-configmap
225225
kind: ConfigMap
226226
metadata:
227227
labels:
@@ -262,14 +262,6 @@ custom-period:
262262
resource-type:
263263
resource: serviceaccounts
264264
version: v1
265-
- kind: k8s-dynamic
266-
name: ark/configmaps
267-
config:
268-
resource-type:
269-
resource: configmaps
270-
version: v1
271-
label-selectors:
272-
- conjur.org/name=conjur-connect-configmap
273265
- kind: k8s-dynamic
274266
name: ark/roles
275267
config:
@@ -339,6 +331,14 @@ custom-period:
339331
resource-type:
340332
version: v1
341333
resource: pods
334+
- kind: k8s-dynamic
335+
name: ark/configmaps
336+
config:
337+
resource-type:
338+
resource: configmaps
339+
version: v1
340+
label-selectors:
341+
- conjur.org/name=conjur-connect-configmap
342342
kind: ConfigMap
343343
metadata:
344344
labels:
@@ -379,14 +379,6 @@ defaults:
379379
resource-type:
380380
resource: serviceaccounts
381381
version: v1
382-
- kind: k8s-dynamic
383-
name: ark/configmaps
384-
config:
385-
resource-type:
386-
resource: configmaps
387-
version: v1
388-
label-selectors:
389-
- conjur.org/name=conjur-connect-configmap
390382
- kind: k8s-dynamic
391383
name: ark/roles
392384
config:
@@ -456,6 +448,14 @@ defaults:
456448
resource-type:
457449
version: v1
458450
resource: pods
451+
- kind: k8s-dynamic
452+
name: ark/configmaps
453+
config:
454+
resource-type:
455+
resource: configmaps
456+
version: v1
457+
label-selectors:
458+
- conjur.org/name=conjur-connect-configmap
459459
kind: ConfigMap
460460
metadata:
461461
labels:

examples/machinehub.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,6 @@ 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-
5444
# Gather Kubernetes roles
5545
- name: ark/roles
5646
kind: k8s-dynamic
@@ -139,3 +129,13 @@ data-gatherers:
139129
resource-type:
140130
version: v1
141131
resource: pods
132+
133+
# Gather Kubernetes config maps with specific conjur.org label
134+
- name: ark/configmaps
135+
kind: k8s-dynamic
136+
config:
137+
resource-type:
138+
resource: configmaps
139+
version: v1
140+
label-selectors:
141+
- conjur.org/name=conjur-connect-configmap

0 commit comments

Comments
 (0)