Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

[filebeat] add missing rolebinding and cluster role rules #1602

Merged
merged 1 commit into from
Mar 7, 2022
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
19 changes: 19 additions & 0 deletions filebeat/templates/rolebinding.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{{- if .Values.managedServiceAccount }}
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: {{ template "filebeat.serviceAccount" . }}-role-binding
labels:
app: "{{ template "filebeat.fullname" . }}"
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
heritage: {{ .Release.Service | quote }}
release: {{ .Release.Name | quote }}
roleRef:
kind: Role
name: {{ template "filebeat.serviceAccount" . }}-role
apiGroup: rbac.authorization.k8s.io
subjects:
- kind: ServiceAccount
name: {{ template "filebeat.serviceAccount" . }}
namespace: {{ .Release.Namespace }}
{{- end -}}
8 changes: 8 additions & 0 deletions filebeat/values.yaml
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,14 @@ clusterRoleRules:
- get
- list
- watch
- apiGroups:
- "apps"
resources:
- replicasets
verbs:
- get
- list
- watch

podAnnotations: {}
# iam.amazonaws.com/role: es-cluster
Expand Down