rancher-partner-charts/charts/stackstate/stackstate-k8s-agent/templates/logs-agent-serviceaccount.yaml

15 lines
397 B
YAML

{{- if .Values.logsAgent.enabled }}
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ .Release.Name }}-logs-agent
namespace: {{ .Release.Namespace }}
labels:
{{ include "stackstate-k8s-agent.labels" . | indent 4 }}
app.kubernetes.io/component: logs-agent
{{- with .Values.logsAgent.serviceaccount.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end -}}