@@ -51,16 +51,49 @@ app.kubernetes.io/instance: {{ .Release.Name }}
5151{{- end }}
5252
5353{{/*
54- Create the name of the service account to use
54+ Create the name of the service account to use for the runtime-operator
5555*/ }}
56- {{- define " runtime- operator.serviceAccountName" -}}
56+ {{- define " operator.serviceAccountName" -}}
5757{{- if .Values.operator.serviceAccount.create }}
5858{{- default (include " runtime-operator.fullname" . ) .Values.operator.serviceAccount.name }}
5959{{- else }}
6060{{- default " default" .Values.operator.serviceAccount.name }}
6161{{- end }}
6262{{- end }}
6363
64+ {{/*
65+ Create the name of the service account to use for the runtime
66+ */ }}
67+ {{- define " runtime.serviceAccountName" -}}
68+ {{- if .Values.runtime.serviceAccount.create }}
69+ {{- default (printf " %s -runtime" (include " runtime-operator.fullname" . )) .Values.runtime.serviceAccount.name }}
70+ {{- else }}
71+ {{- default " default" .Values.runtime.serviceAccount.name }}
72+ {{- end }}
73+ {{- end }}
74+
75+ {{/*
76+ Create the name of the service account to use for the runtime gateway
77+ */ }}
78+ {{- define " gateway.serviceAccountName" -}}
79+ {{- if .Values.gateway.serviceAccount.create }}
80+ {{- default (printf " %s -gateway" (include " runtime-operator.fullname" . )) .Values.gateway.serviceAccount.name }}
81+ {{- else }}
82+ {{- default " default" .Values.gateway.serviceAccount.name }}
83+ {{- end }}
84+ {{- end }}
85+
86+ {{/*
87+ Create the name of the service account to use for NATS
88+ */ }}
89+ {{- define " nats.serviceAccountName" -}}
90+ {{- if .Values.nats.serviceAccount.create }}
91+ {{- default (printf " %s -nats" (include " runtime-operator.fullname" . )) .Values.nats.serviceAccount.name }}
92+ {{- else }}
93+ {{- default " default" .Values.nats.serviceAccount.name }}
94+ {{- end }}
95+ {{- end }}
96+
6497{{/*
6598Create the imagePullSecrets section for the chart.
6699*/ }}
0 commit comments