The Nats-Kafka _helpers.tpl already had the service account setup, but it seemed incomplete:
{{/*
Create the name of the service account to use
*/}}
{{- define "nats-kafka.serviceAccountName" -}}
{{- if .Values.serviceAccount.create }}
{{- default (include "nats-kafka.fullname" .) .Values.serviceAccount.name }}
{{- else }}
{{- default "default" .Values.serviceAccount.name }}
{{- end }}
{{- end }}
There was no usage of nats-kafka.serviceAccountName, so this PR just adds the usage of that. If create is true it creates a service account, if not it uses the value from serviceAccount.name.
Testing
Tested the helm chart from our internal branch and worked as intended.
Description
The Nats-Kafka
_helpers.tpl
already had the service account setup, but it seemed incomplete:There was no usage of
nats-kafka.serviceAccountName
, so this PR just adds the usage of that. If create is true it creates a service account, if not it uses the value from serviceAccount.name.Testing
Tested the helm chart from our internal branch and worked as intended.