serviceaccount.yaml 513 B

1234567891011121314
  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. labels:
  7. {{- include "opentelemetry-collector.labels" . | nindent 4 }}
  8. {{- if .Values.serviceAccount.annotations }}
  9. annotations:
  10. {{- range $key, $value := .Values.serviceAccount.annotations }}
  11. {{- printf "%s: %s" $key (tpl $value $ | quote) | nindent 4 }}
  12. {{- end }}
  13. {{- end }}
  14. {{ end }}