serviceaccount.yaml 501 B

123456789101112131415
  1. {{- if .Values.serviceAccount.create -}}
  2. apiVersion: v1
  3. kind: ServiceAccount
  4. metadata:
  5. {{- $_ := set . "serviceAccount" .Values.serviceAccount }}
  6. name: {{ include "otel-demo.serviceAccountName" . }}
  7. labels:
  8. {{- include "otel-demo.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 }}