serviceaccount.yaml 579 B

123456789101112131415
  1. {{- if or (.Values.serviceAccount.create) (.Values.presets.kubeletMetrics.enabled) -}}
  2. apiVersion: v1
  3. kind: ServiceAccount
  4. metadata:
  5. name: {{ include "opentelemetry-collector.serviceAccountName" . }}
  6. namespace: {{ template "opentelemetry-collector.namespace" . }}
  7. labels:
  8. {{- include "opentelemetry-collector.labels" . | nindent 4 }}
  9. {{- if .Values.serviceAccount.annotations }}
  10. annotations:
  11. {{- range $key, $value := .Values.serviceAccount.annotations }}
  12. {{- printf "%s: %s" $key (tpl $value $ | quote) | nindent 4 }}
  13. {{- end }}
  14. {{- end }}
  15. {{ end }}