2023-10-04 15:50:49 +00:00
|
|
|
{{- 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 }}
|
2024-04-16 17:54:14 +00:00
|
|
|
{{ include "stackstate-k8s-agent.global.extraLabels" . | indent 4 }}
|
2023-10-04 15:50:49 +00:00
|
|
|
app.kubernetes.io/component: checks-agent
|
|
|
|
annotations:
|
2024-04-16 17:54:14 +00:00
|
|
|
{{ include "stackstate-k8s-agent.global.extraAnnotations" . | indent 4 }}
|
|
|
|
{{- with .Values.checksAgent.serviceaccount.annotations }}
|
2023-10-04 15:50:49 +00:00
|
|
|
{{- toYaml . | nindent 4 }}
|
|
|
|
{{- end }}
|
2024-04-16 17:54:14 +00:00
|
|
|
{{- end -}}
|