Files
devops-infra-helm-charts-gcp/helm-templates/opentelemetry-collector/templates/serviceaccount.yaml
T
2026-08-26 03:39:42 +05:30

16 lines
579 B
YAML

{{- if or (.Values.serviceAccount.create) (.Values.presets.kubeletMetrics.enabled) -}}
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "opentelemetry-collector.serviceAccountName" . }}
namespace: {{ template "opentelemetry-collector.namespace" . }}
labels:
{{- include "opentelemetry-collector.labels" . | nindent 4 }}
{{- if .Values.serviceAccount.annotations }}
annotations:
{{- range $key, $value := .Values.serviceAccount.annotations }}
{{- printf "%s: %s" $key (tpl $value $ | quote) | nindent 4 }}
{{- end }}
{{- end }}
{{ end }}