Skip to content

Commit 5d14d81

Browse files
authored
operator bpfman-operator (0.5.5) (redhat-openshift-ecosystem#5729)
bpfman-operator release v0.5.5 Signed-off-by: Billy McFall <[email protected]>
1 parent 4ad44c1 commit 5d14d81

File tree

36 files changed

+10211
-0
lines changed

36 files changed

+10211
-0
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
FROM registry.access.redhat.com/ubi9/ubi-minimal:latest as builder-runner
2+
RUN microdnf install -y skopeo jq python3 python3-pip
3+
RUN pip3 install --upgrade pip && pip3 install ruamel.yaml==0.17.9
4+
5+
# Use a new stage to enable caching of the package installations for local development
6+
FROM builder-runner as builder
7+
8+
#Copy files to locations specified by labels.
9+
COPY bundle/manifests /manifests/
10+
COPY bundle/metadata /metadata/
11+
COPY bundle/tests/scorecard /tests/scorecard/
12+
COPY hack/update_bundle.sh .
13+
COPY hack/update_configmap.sh .
14+
RUN ./update_bundle.sh
15+
RUN ./update_configmap.sh
16+
17+
FROM scratch
18+
19+
# Core bundle labels.
20+
LABEL operators.operatorframework.io.bundle.mediatype.v1=registry+v1
21+
LABEL operators.operatorframework.io.bundle.manifests.v1=manifests/
22+
LABEL operators.operatorframework.io.bundle.metadata.v1=metadata/
23+
LABEL operators.operatorframework.io.bundle.package.v1=bpfman-operator
24+
LABEL operators.operatorframework.io.bundle.channels.v1=alpha
25+
LABEL operators.operatorframework.io.metrics.builder=operator-sdk-v1.26.0
26+
LABEL operators.operatorframework.io.metrics.mediatype.v1=metrics+v1
27+
LABEL operators.operatorframework.io.metrics.project_layout=go.kubebuilder.io/v3
28+
29+
# Labels for testing.
30+
LABEL operators.operatorframework.io.test.mediatype.v1=scorecard+v1
31+
LABEL operators.operatorframework.io.test.config.v1=tests/scorecard/
32+
33+
# Labels for konflux to release the images
34+
LABEL name="bpfman-operator" \
35+
com.redhat.component="bpfman-operator" \
36+
io.k8s.display-name="Bpfman Operator" \
37+
description="The bpfman-operator manage bpfman ebpf programs on every node." \
38+
distribution-scope=public \
39+
io.k8s.description="The bpfman-operator manage bpfman programs on every node. ." \
40+
io.openshift.tags="bpfman-operator" \
41+
version="0.5.5" \
42+
release="0.5.5" \
43+
url="https://github.com/bpfman/bpfman-operator" \
44+
vendor="Red Hat, Inc." \
45+
summary="Bpfman Operator"
46+
47+
# Copy files to locations specified by labels.
48+
COPY --from=builder /manifests /manifests/
49+
COPY --from=builder /metadata /metadata/
50+
COPY bundle/tests/scorecard /tests/scorecard/
Lines changed: 246 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,246 @@
1+
apiVersion: rbac.authorization.k8s.io/v1
2+
kind: ClusterRole
3+
metadata:
4+
creationTimestamp: null
5+
name: bpfman-agent-role
6+
rules:
7+
- apiGroups:
8+
- bpfman.io
9+
resources:
10+
- bpfapplications
11+
verbs:
12+
- get
13+
- list
14+
- watch
15+
- apiGroups:
16+
- bpfman.io
17+
resources:
18+
- bpfapplications/finalizers
19+
verbs:
20+
- update
21+
- apiGroups:
22+
- bpfman.io
23+
resources:
24+
- bpfnsapplications
25+
verbs:
26+
- get
27+
- list
28+
- watch
29+
- apiGroups:
30+
- bpfman.io
31+
resources:
32+
- bpfnsprograms
33+
verbs:
34+
- create
35+
- delete
36+
- get
37+
- list
38+
- patch
39+
- update
40+
- watch
41+
- apiGroups:
42+
- bpfman.io
43+
resources:
44+
- bpfnsprograms/finalizers
45+
verbs:
46+
- update
47+
- apiGroups:
48+
- bpfman.io
49+
resources:
50+
- bpfnsprograms/status
51+
verbs:
52+
- get
53+
- patch
54+
- update
55+
- apiGroups:
56+
- bpfman.io
57+
resources:
58+
- bpfprograms
59+
verbs:
60+
- create
61+
- delete
62+
- get
63+
- list
64+
- patch
65+
- update
66+
- watch
67+
- apiGroups:
68+
- bpfman.io
69+
resources:
70+
- bpfprograms/finalizers
71+
verbs:
72+
- update
73+
- apiGroups:
74+
- bpfman.io
75+
resources:
76+
- bpfprograms/status
77+
verbs:
78+
- get
79+
- patch
80+
- update
81+
- apiGroups:
82+
- bpfman.io
83+
resources:
84+
- fentryprograms
85+
verbs:
86+
- get
87+
- list
88+
- watch
89+
- apiGroups:
90+
- bpfman.io
91+
resources:
92+
- fentryprograms/finalizers
93+
verbs:
94+
- update
95+
- apiGroups:
96+
- bpfman.io
97+
resources:
98+
- fexitprograms
99+
verbs:
100+
- get
101+
- list
102+
- watch
103+
- apiGroups:
104+
- bpfman.io
105+
resources:
106+
- fexityprograms/finalizers
107+
verbs:
108+
- update
109+
- apiGroups:
110+
- bpfman.io
111+
resources:
112+
- kprobeprograms
113+
verbs:
114+
- get
115+
- list
116+
- watch
117+
- apiGroups:
118+
- bpfman.io
119+
resources:
120+
- kprobeprograms/finalizers
121+
verbs:
122+
- update
123+
- apiGroups:
124+
- bpfman.io
125+
resources:
126+
- tcnsprograms
127+
verbs:
128+
- get
129+
- list
130+
- watch
131+
- apiGroups:
132+
- bpfman.io
133+
resources:
134+
- tcprograms
135+
verbs:
136+
- get
137+
- list
138+
- watch
139+
- apiGroups:
140+
- bpfman.io
141+
resources:
142+
- tcprograms/finalizers
143+
verbs:
144+
- update
145+
- apiGroups:
146+
- bpfman.io
147+
resources:
148+
- tcxnsprograms
149+
verbs:
150+
- get
151+
- list
152+
- watch
153+
- apiGroups:
154+
- bpfman.io
155+
resources:
156+
- tcxprograms
157+
verbs:
158+
- get
159+
- list
160+
- watch
161+
- apiGroups:
162+
- bpfman.io
163+
resources:
164+
- tcxprograms/finalizers
165+
verbs:
166+
- update
167+
- apiGroups:
168+
- bpfman.io
169+
resources:
170+
- tracepointprograms
171+
verbs:
172+
- get
173+
- list
174+
- watch
175+
- apiGroups:
176+
- bpfman.io
177+
resources:
178+
- tracepointprograms/finalizers
179+
verbs:
180+
- update
181+
- apiGroups:
182+
- bpfman.io
183+
resources:
184+
- uprobensprograms
185+
verbs:
186+
- get
187+
- list
188+
- watch
189+
- apiGroups:
190+
- bpfman.io
191+
resources:
192+
- uprobeprograms
193+
verbs:
194+
- get
195+
- list
196+
- watch
197+
- apiGroups:
198+
- bpfman.io
199+
resources:
200+
- uprobeprograms/finalizers
201+
verbs:
202+
- update
203+
- apiGroups:
204+
- bpfman.io
205+
resources:
206+
- xdpnsprograms
207+
verbs:
208+
- get
209+
- list
210+
- watch
211+
- apiGroups:
212+
- bpfman.io
213+
resources:
214+
- xdpprograms
215+
verbs:
216+
- get
217+
- list
218+
- watch
219+
- apiGroups:
220+
- bpfman.io
221+
resources:
222+
- xdpprograms/finalizers
223+
verbs:
224+
- update
225+
- apiGroups:
226+
- ""
227+
resources:
228+
- nodes
229+
verbs:
230+
- get
231+
- list
232+
- watch
233+
- apiGroups:
234+
- ""
235+
resources:
236+
- pods
237+
verbs:
238+
- get
239+
- list
240+
- watch
241+
- apiGroups:
242+
- ""
243+
resources:
244+
- secrets
245+
verbs:
246+
- get
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
apiVersion: rbac.authorization.k8s.io/v1
2+
kind: Role
3+
metadata:
4+
creationTimestamp: null
5+
name: bpfman-agent-role
6+
rules:
7+
- apiGroups:
8+
- bpfman.io
9+
resources:
10+
- bpfnsapplications
11+
verbs:
12+
- get
13+
- list
14+
- watch
15+
- apiGroups:
16+
- bpfman.io
17+
resources:
18+
- tcnsprograms
19+
verbs:
20+
- get
21+
- list
22+
- watch
23+
- apiGroups:
24+
- bpfman.io
25+
resources:
26+
- tcxnsprograms
27+
verbs:
28+
- get
29+
- list
30+
- watch
31+
- apiGroups:
32+
- bpfman.io
33+
resources:
34+
- uprobensprograms
35+
verbs:
36+
- get
37+
- list
38+
- watch
39+
- apiGroups:
40+
- bpfman.io
41+
resources:
42+
- xdpnsprograms
43+
verbs:
44+
- get
45+
- list
46+
- watch
47+
- apiGroups:
48+
- bpfman.io
49+
resources:
50+
- xdpnsprograms/finalizers
51+
verbs:
52+
- update
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
apiVersion: rbac.authorization.k8s.io/v1
2+
kind: ClusterRoleBinding
3+
metadata:
4+
creationTimestamp: null
5+
labels:
6+
app.kubernetes.io/component: rbac
7+
app.kubernetes.io/created-by: bpfman-operator
8+
app.kubernetes.io/managed-by: kustomize
9+
app.kubernetes.io/name: clusterrolebinding
10+
app.kubernetes.io/part-of: bpfman-operator
11+
name: bpfman-agent-rolebinding
12+
roleRef:
13+
apiGroup: rbac.authorization.k8s.io
14+
kind: ClusterRole
15+
name: bpfman-agent-role
16+
subjects:
17+
- kind: ServiceAccount
18+
name: bpfman-daemon
19+
namespace: bpfman
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
apiVersion: rbac.authorization.k8s.io/v1
2+
kind: RoleBinding
3+
metadata:
4+
creationTimestamp: null
5+
labels:
6+
app.kubernetes.io/component: rbac
7+
app.kubernetes.io/created-by: bpfman-operator
8+
app.kubernetes.io/managed-by: kustomize
9+
app.kubernetes.io/name: rolebinding
10+
app.kubernetes.io/part-of: bpfman-operator
11+
name: bpfman-agent-rolebinding
12+
roleRef:
13+
apiGroup: rbac.authorization.k8s.io
14+
kind: Role
15+
name: bpfman-agent-role
16+
subjects:
17+
- kind: ServiceAccount
18+
name: bpfman-daemon
19+
namespace: bpfman

0 commit comments

Comments
 (0)