# helm_charts_service-account-secrets.yaml
{{- if and (not .Values.server.kubernetes.enabled) .Values.runner.enabled .Values.secrets.enabled .Values.runner.enabled -}}
apiVersion: v1
kind: ServiceAccount
metadata:
  name: {{ template "drone.fullname" . }}-secrets
  namespace: {{ .Release.Namespace }}
  labels:
    app: {{ template "drone.name" . }}
    chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
    release: "{{ .Release.Name }}"
    heritage: "{{ .Release.Service }}"
{{- end -}}