rancher-partner-charts/charts/stackstate/stackstate-k8s-agent/templates/checks-agent-serviceaccount...

17 lines
548 B
YAML

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