Skip to content

Commit 337f580

Browse files
committed
not pretty
1 parent 3b9f1a8 commit 337f580

File tree

2 files changed

+81
-0
lines changed

2 files changed

+81
-0
lines changed

bootstrap/user-projects/kustomization.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ commonLabels:
99
component: projects
1010

1111
resources:
12+
- rbac-presync-monitoring.yaml
1213
# presync
1314
- presync-rhoai-ready.yaml
1415
- presync-minio.yaml
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
---
2+
apiVersion: v1
3+
kind: ServiceAccount
4+
metadata:
5+
name: presync-monitoring-sa
6+
namespace: redhat-ods-operator
7+
annotations:
8+
# argocd.argoproj.io/sync-wave: "0"
9+
argocd.argoproj.io/hook: PreSync
10+
---
11+
apiVersion: rbac.authorization.k8s.io/v1
12+
kind: ClusterRole
13+
metadata:
14+
name: presync-monitoring-cluster-role
15+
annotations:
16+
# argocd.argoproj.io/sync-wave: "0"
17+
argocd.argoproj.io/hook: PreSync
18+
rules:
19+
- apiGroups: [""]
20+
resources: ["pods"]
21+
verbs: ["get", "list", "watch"]
22+
- apiGroups: [""]
23+
resources: ["configmaps"]
24+
verbs: ["get", "list", "watch"]
25+
- apiGroups: ["dscinitialization.opendatahub.io"]
26+
resources: ["dscinitializations"]
27+
verbs: ["get", "list", "watch"]
28+
- apiGroups: ["datasciencecluster.opendatahub.io"]
29+
resources: ["datascienceclusters"]
30+
verbs: ["get", "list", "watch"]
31+
- apiGroups: ["storage.k8s.io"]
32+
resources: ["storageclasses"]
33+
verbs: ["get", "list", "watch"]
34+
---
35+
apiVersion: rbac.authorization.k8s.io/v1
36+
kind: ClusterRoleBinding
37+
metadata:
38+
name: presync-monitoring-cluster-role-binding
39+
annotations:
40+
argocd.argoproj.io/hook: PreSync
41+
# argocd.argoproj.io/sync-wave: "0"
42+
subjects:
43+
- kind: ServiceAccount
44+
name: presync-monitoring-sa
45+
namespace: redhat-ods-operator
46+
roleRef:
47+
apiGroup: rbac.authorization.k8s.io
48+
kind: ClusterRole
49+
name: presync-monitoring-cluster-role
50+
---
51+
apiVersion: apps/v1
52+
kind: DaemonSet
53+
metadata:
54+
name: image-puller-tools
55+
namespace: rhods-notebooks
56+
labels:
57+
k8s-app: image-puller
58+
annotations:
59+
# argocd.argoproj.io/sync-wave: "2"
60+
argocd.argoproj.io/hook: PreSync
61+
spec:
62+
selector:
63+
matchLabels:
64+
name: image-puller
65+
template:
66+
metadata:
67+
labels:
68+
name: image-puller
69+
spec:
70+
containers:
71+
- name: tools
72+
image: image-registry.openshift-image-registry.svc:5000/openshift/tools:latest
73+
command: ["tail"]
74+
args: ["-f", "/dev/null"]
75+
resources:
76+
limits:
77+
memory: 20Mi
78+
requests:
79+
cpu: 10m
80+
memory: 10Mi

0 commit comments

Comments
 (0)