Skip to content

Commit 369494d

Browse files
committed
Save some example data readings
Signed-off-by: Richard Wall <[email protected]>
1 parent 5fce793 commit 369494d

File tree

3 files changed

+13086
-0
lines changed

3 files changed

+13086
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# README
2+
3+
Data captured from a cert-manager E2E test cluster.
4+
5+
```bash
6+
cd cert-manager
7+
make e2e-setup
8+
```
9+
10+
```bash
11+
cd jetstack-secure
12+
go run . agent \
13+
--api-token not-used \
14+
--install-namespace venafi \
15+
--log-level 6 \
16+
--one-shot \
17+
--agent-config pkg/internal/cyberark/dataupload/testdata/example-1/agent.yaml \
18+
--output-path pkg/internal/cyberark/dataupload/testdata/example-1/datareadings.json
19+
```
20+
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
cluster_id: example-cluster-id
2+
organization_id: example-organization-id
3+
data-gatherers:
4+
# gather k8s apiserver version information
5+
- kind: "k8s-discovery"
6+
name: "k8s-discovery"
7+
- kind: "k8s-dynamic"
8+
name: "k8s/serviceaccounts"
9+
config:
10+
resource-type:
11+
resource: serviceaccounts
12+
version: v1
13+
- kind: "k8s-dynamic"
14+
name: "k8s/secrets"
15+
config:
16+
resource-type:
17+
version: v1
18+
resource: secrets
19+
field-selectors:
20+
- type!=kubernetes.io/service-account-token
21+
- type!=kubernetes.io/dockercfg
22+
- type!=kubernetes.io/dockerconfigjson
23+
- type!=kubernetes.io/basic-auth
24+
- type!=kubernetes.io/ssh-auth
25+
- type!=bootstrap.kubernetes.io/token
26+
- type!=helm.sh/release.v1
27+
- kind: "k8s-dynamic"
28+
name: "k8s/roles"
29+
config:
30+
resource-type:
31+
version: v1
32+
group: rbac.authorization.k8s.io
33+
resource: roles
34+
- kind: "k8s-dynamic"
35+
name: "k8s/clusterroles"
36+
config:
37+
resource-type:
38+
version: v1
39+
group: rbac.authorization.k8s.io
40+
resource: clusterroles
41+
- kind: "k8s-dynamic"
42+
name: "k8s/rolebindings"
43+
config:
44+
resource-type:
45+
version: v1
46+
group: rbac.authorization.k8s.io
47+
resource: rolebindings
48+
- kind: "k8s-dynamic"
49+
name: "k8s/clusterrolebindings"
50+
config:
51+
resource-type:
52+
version: v1
53+
group: rbac.authorization.k8s.io
54+
resource: clusterrolebindings

0 commit comments

Comments
 (0)