Skip to content

Commit

Permalink
operator bpfman-operator (0.5.2)
Browse files Browse the repository at this point in the history
  • Loading branch information
anfredette authored Oct 14, 2024
1 parent d815719 commit 899785c
Show file tree
Hide file tree
Showing 25 changed files with 5,560 additions and 0 deletions.
20 changes: 20 additions & 0 deletions operators/bpfman-operator/0.5.2/bundle.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
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.27.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/

# Copy files to locations specified by labels.
COPY bundle/manifests /manifests/
COPY bundle/metadata /metadata/
COPY bundle/tests/scorecard /tests/scorecard/
Original file line number Diff line number Diff line change
@@ -0,0 +1,166 @@
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:
- 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:
- tcprograms
verbs:
- get
- list
- watch
- apiGroups:
- bpfman.io
resources:
- tcprograms/finalizers
verbs:
- update
- apiGroups:
- bpfman.io
resources:
- tracepointprograms
verbs:
- get
- list
- watch
- apiGroups:
- bpfman.io
resources:
- tracepointprograms/finalizers
verbs:
- update
- apiGroups:
- bpfman.io
resources:
- uprobeprograms
verbs:
- get
- list
- watch
- apiGroups:
- bpfman.io
resources:
- uprobeprograms/finalizers
verbs:
- update
- 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,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
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
creationTimestamp: null
labels:
app.kubernetes.io/component: rbac
app.kubernetes.io/created-by: bpfman-operator
app.kubernetes.io/instance: bpfprogram-editor-role
app.kubernetes.io/managed-by: kustomize
app.kubernetes.io/name: clusterrole
app.kubernetes.io/part-of: bpfman-operator
name: bpfman-bpfprogram-editor-role
rules:
- apiGroups:
- bpfman.io
resources:
- bpfprograms
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- bpfman.io
resources:
- bpfprograms/status
verbs:
- get
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
creationTimestamp: null
labels:
app.kubernetes.io/component: rbac
app.kubernetes.io/created-by: bpfman-operator
app.kubernetes.io/instance: bpfprogram-viewer-role
app.kubernetes.io/managed-by: kustomize
app.kubernetes.io/name: clusterrole
app.kubernetes.io/part-of: bpfman-operator
name: bpfman-bpfprogram-viewer-role
rules:
- apiGroups:
- bpfman.io
resources:
- bpfprograms
verbs:
- get
- list
- watch
- apiGroups:
- bpfman.io
resources:
- bpfprograms/status
verbs:
- get
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: v1
data:
bpfman.agent.healthprobe.addr: :8175
bpfman.agent.image: quay.io/bpfman/bpfman-agent:v0.5.2
bpfman.agent.log.level: info
bpfman.agent.metric.addr: 127.0.0.1:8174
bpfman.image: quay.io/bpfman/bpfman:v0.5.2
bpfman.log.level: info
bpfman.toml: |
[database]
max_retries = 30
millisec_delay = 10000
kind: ConfigMap
metadata:
annotations: {}
labels: {}
name: bpfman-config
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
apiVersion: v1
kind: Service
metadata:
creationTimestamp: null
labels:
app.kubernetes.io/component: kube-rbac-proxy
app.kubernetes.io/created-by: bpfman-operator
app.kubernetes.io/instance: controller-manager-metrics-service
app.kubernetes.io/managed-by: kustomize
app.kubernetes.io/name: service
app.kubernetes.io/part-of: bpfman-operator
control-plane: controller-manager
name: bpfman-controller-manager-metrics-service
spec:
ports:
- name: https
port: 8443
protocol: TCP
targetPort: https
selector:
control-plane: controller-manager
status:
loadBalancer: {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: v1
kind: ServiceAccount
metadata:
creationTimestamp: null
name: bpfman-daemon
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
creationTimestamp: null
labels:
app.kubernetes.io/component: kube-rbac-proxy
app.kubernetes.io/created-by: bpfman-operator
app.kubernetes.io/instance: metrics-reader
app.kubernetes.io/managed-by: kustomize
app.kubernetes.io/name: clusterrole
app.kubernetes.io/part-of: bpfman-operator
name: bpfman-metrics-reader
rules:
- nonResourceURLs:
- /metrics
verbs:
- get
Loading

0 comments on commit 899785c

Please sign in to comment.