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

feat: add rbacRules to values.yaml with events watching as fixed permissions #1223

Merged
merged 1 commit into from
Jul 2, 2024
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
10 changes: 10 additions & 0 deletions charts/fluent-operator/templates/fluentbit-fluentBit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,16 @@ spec:
serviceAccountAnnotations:
{{ toYaml .Values.fluentbit.serviceAccountAnnotations | indent 4 }}
{{- end }}
rbacRules:
- apiGroups:
- ""
resources:
- events
verbs:
- list
{{- if .Values.fluentbit.rbacRules }}
{{ toYaml .Values.fluentbit.rbacRules | nindent 4 }}
{{- end }}
{{- if .Values.fluentbit.disableLogVolumes }}
disableLogVolumes: {{ .Values.fluentbit.disableLogVolumes }}
{{- end }}
Expand Down
3 changes: 3 additions & 0 deletions charts/fluent-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@ fluentbit:
securityContext: {}
# List of volumes that can be mounted by containers belonging to the pod.
additionalVolumes: []
# Additional rbac rules which will be applied to the fluent-bit clusterrole. Ref: https://kubernetes.io/docs/reference/access-authn-authz/rbac/#rolebinding-and-clusterrolebinding
# NOTE: As fluent-bit is managed by the fluent-operator, fluent-bit can only be granted permissions the operator also has
rbacRules: {}
# Pod volumes to mount into the container's filesystem.
additionalVolumesMounts: []
# affinity configuration for Fluent Bit pods. Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity
Expand Down