{{- 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 }} app.kubernetes.io/component: checks-agent {{- end -}} {{- with .Values.checksAgent.serviceaccount.annotations }} annotations: {{- toYaml . | nindent 4 }} {{- end }}