{{- if .Values.rbac.create }}
apiVersion: rbac.authorization.k8s.io/v1
{{- if .Values.rbac.clusterWide }}
kind: ClusterRoleBinding
{{- else }}
kind: RoleBinding
{{- end }}
metadata:
name: {{ template "telegraf.fullname" . }}
labels:
{{- include "telegraf.labels" . | nindent 4 }}
subjects:
- kind: ServiceAccount
name: {{ template "telegraf.fullname" . }}
namespace: {{ .Release.Namespace }}
roleRef:
apiGroup: rbac.authorization.k8s.io
{{- if .Values.rbac.clusterWide }}
kind: ClusterRole
{{- else }}
kind: Role
{{- end }}
name: {{ template "telegraf.fullname" . }}
{{- end }}
-
Yurii Matsiuk authored
* [telegraf] Add envFromSecret to pass sensitive data into environment Signed-off-by:
Yurii Matsiuk <ymatsiuk@users.noreply.github.com> * [telegraf] Fix deprecation errors * Update Chart.yaml Co-authored-by:
Yurii Matsiuk <ymatsiuk@users.noreply.github.com> Co-authored-by:
timhallinflux <timhallinflux@users.noreply.github.com>