Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

operator bpfman-operator (0.5.5) #5494

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions operators/bpfman-operator/0.5.5/bundle.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
FROM registry.access.redhat.com/ubi9/ubi-minimal:latest as builder-runner
RUN microdnf install -y skopeo jq python3 python3-pip
RUN pip3 install --upgrade pip && pip3 install ruamel.yaml==0.17.9

# Use a new stage to enable caching of the package installations for local development
FROM builder-runner as builder

#Copy files to locations specified by labels.
COPY bundle/manifests /manifests/
COPY bundle/metadata /metadata/
COPY bundle/tests/scorecard /tests/scorecard/
COPY hack/update_bundle.sh .
COPY hack/update_configmap.sh .
RUN ./update_bundle.sh
RUN ./update_configmap.sh

FROM scratch

# Core bundle labels.
LABEL operators.operatorframework.io.bundle.mediatype.v1=registry+v1
LABEL operators.operatorframework.io.bundle.manifests.v1=manifests/
LABEL operators.operatorframework.io.bundle.metadata.v1=metadata/
LABEL operators.operatorframework.io.bundle.package.v1=bpfman-operator
LABEL operators.operatorframework.io.bundle.channels.v1=alpha
LABEL operators.operatorframework.io.metrics.builder=operator-sdk-v1.26.0
LABEL operators.operatorframework.io.metrics.mediatype.v1=metrics+v1
LABEL operators.operatorframework.io.metrics.project_layout=go.kubebuilder.io/v3

# Labels for testing.
LABEL operators.operatorframework.io.test.mediatype.v1=scorecard+v1
LABEL operators.operatorframework.io.test.config.v1=tests/scorecard/

# Labels for konflux to release the images
LABEL name="bpfman-operator" \
com.redhat.component="bpfman-operator" \
io.k8s.display-name="Bpfman Operator" \
description="The bpfman-operator manage bpfman ebpf programs on every node." \
distribution-scope=public \
io.k8s.description="The bpfman-operator manage bpfman programs on every node. ." \
io.openshift.tags="bpfman-operator" \
version="0.5.5" \
release="0.5.5" \
url="https://github.com/bpfman/bpfman-operator" \
vendor="Red Hat, Inc." \
summary="Bpfman Operator"

# Copy files to locations specified by labels.
COPY --from=builder /manifests /manifests/
COPY --from=builder /metadata /metadata/
COPY bundle/tests/scorecard /tests/scorecard/
Original file line number Diff line number Diff line change
@@ -0,0 +1,246 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
creationTimestamp: null
name: bpfman-agent-role
rules:
- apiGroups:
- bpfman.io
resources:
- bpfapplications
verbs:
- get
- list
- watch
- apiGroups:
- bpfman.io
resources:
- bpfapplications/finalizers
verbs:
- update
- apiGroups:
- bpfman.io
resources:
- bpfnsapplications
verbs:
- get
- list
- watch
- apiGroups:
- bpfman.io
resources:
- bpfnsprograms
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- bpfman.io
resources:
- bpfnsprograms/finalizers
verbs:
- update
- apiGroups:
- bpfman.io
resources:
- bpfnsprograms/status
verbs:
- get
- patch
- update
- apiGroups:
- bpfman.io
resources:
- bpfprograms
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- bpfman.io
resources:
- bpfprograms/finalizers
verbs:
- update
- apiGroups:
- bpfman.io
resources:
- bpfprograms/status
verbs:
- get
- patch
- update
- apiGroups:
- bpfman.io
resources:
- fentryprograms
verbs:
- get
- list
- watch
- apiGroups:
- bpfman.io
resources:
- fentryprograms/finalizers
verbs:
- update
- apiGroups:
- bpfman.io
resources:
- fexitprograms
verbs:
- get
- list
- watch
- apiGroups:
- bpfman.io
resources:
- fexityprograms/finalizers
verbs:
- update
- apiGroups:
- bpfman.io
resources:
- kprobeprograms
verbs:
- get
- list
- watch
- apiGroups:
- bpfman.io
resources:
- kprobeprograms/finalizers
verbs:
- update
- apiGroups:
- bpfman.io
resources:
- tcnsprograms
verbs:
- get
- list
- watch
- apiGroups:
- bpfman.io
resources:
- tcprograms
verbs:
- get
- list
- watch
- apiGroups:
- bpfman.io
resources:
- tcprograms/finalizers
verbs:
- update
- apiGroups:
- bpfman.io
resources:
- tcxnsprograms
verbs:
- get
- list
- watch
- apiGroups:
- bpfman.io
resources:
- tcxprograms
verbs:
- get
- list
- watch
- apiGroups:
- bpfman.io
resources:
- tcxprograms/finalizers
verbs:
- update
- apiGroups:
- bpfman.io
resources:
- tracepointprograms
verbs:
- get
- list
- watch
- apiGroups:
- bpfman.io
resources:
- tracepointprograms/finalizers
verbs:
- update
- apiGroups:
- bpfman.io
resources:
- uprobensprograms
verbs:
- get
- list
- watch
- apiGroups:
- bpfman.io
resources:
- uprobeprograms
verbs:
- get
- list
- watch
- apiGroups:
- bpfman.io
resources:
- uprobeprograms/finalizers
verbs:
- update
- apiGroups:
- bpfman.io
resources:
- xdpnsprograms
verbs:
- get
- list
- watch
- apiGroups:
- bpfman.io
resources:
- xdpprograms
verbs:
- get
- list
- watch
- apiGroups:
- bpfman.io
resources:
- xdpprograms/finalizers
verbs:
- update
- apiGroups:
- ""
resources:
- nodes
verbs:
- get
- list
- watch
- apiGroups:
- ""
resources:
- pods
verbs:
- get
- list
- watch
- apiGroups:
- ""
resources:
- secrets
verbs:
- get
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
creationTimestamp: null
name: bpfman-agent-role
rules:
- apiGroups:
- bpfman.io
resources:
- bpfnsapplications
verbs:
- get
- list
- watch
- apiGroups:
- bpfman.io
resources:
- tcnsprograms
verbs:
- get
- list
- watch
- apiGroups:
- bpfman.io
resources:
- tcxnsprograms
verbs:
- get
- list
- watch
- apiGroups:
- bpfman.io
resources:
- uprobensprograms
verbs:
- get
- list
- watch
- apiGroups:
- bpfman.io
resources:
- xdpnsprograms
verbs:
- get
- list
- watch
- apiGroups:
- bpfman.io
resources:
- xdpnsprograms/finalizers
verbs:
- update
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
creationTimestamp: null
labels:
app.kubernetes.io/component: rbac
app.kubernetes.io/created-by: bpfman-operator
app.kubernetes.io/managed-by: kustomize
app.kubernetes.io/name: clusterrolebinding
app.kubernetes.io/part-of: bpfman-operator
name: bpfman-agent-rolebinding
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: bpfman-agent-role
subjects:
- kind: ServiceAccount
name: bpfman-daemon
namespace: bpfman
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
creationTimestamp: null
labels:
app.kubernetes.io/component: rbac
app.kubernetes.io/created-by: bpfman-operator
app.kubernetes.io/managed-by: kustomize
app.kubernetes.io/name: rolebinding
app.kubernetes.io/part-of: bpfman-operator
name: bpfman-agent-rolebinding
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: bpfman-agent-role
subjects:
- kind: ServiceAccount
name: bpfman-daemon
namespace: bpfman
Loading
Loading