19 lines
868 B
YAML
19 lines
868 B
YAML
{{- if .Values.worker.enabled }}
|
|
{{- if .Values.worker.serviceAccount.create -}}
|
|
apiVersion: v1
|
|
kind: ServiceAccount
|
|
metadata:
|
|
name: {{ include "flowise.worker.serviceAccountName" . }}
|
|
namespace: {{ include "common.names.namespace" . | quote }}
|
|
labels:
|
|
{{- include "flowise.worker.labels" . | nindent 4 }}
|
|
{{- if .Values.commonLabels }}
|
|
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
|
|
{{- end }}
|
|
{{- if or .Values.worker.serviceAccount.annotations .Values.commonAnnotations }}
|
|
{{- $annotations := include "common.tplvalues.merge" ( dict "values" ( list .Values.worker.serviceAccount.annotations .Values.commonAnnotations ) "context" . ) }}
|
|
annotations: {{- include "common.tplvalues.render" ( dict "value" $annotations "context" $ ) | nindent 4 }}
|
|
{{- end }}
|
|
{{- end -}}
|
|
{{- end -}}
|