Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions charts/portkey-gateway/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -104,16 +104,20 @@ Create the name of the service account to use
{{- define "portkeyenterprise.serviceAccountName" -}}
{{- if .Values.serviceAccount.create }}
{{- default (include "portkeyenterprise.fullname" .) .Values.serviceAccount.name }}
{{- else if not .Values.serviceAccount.name }}
{{- fail "serviceAccount.name must be set when serviceAccount.create is false" }}
{{- else }}
{{- default "default" .Values.serviceAccount.name }}
{{- .Values.serviceAccount.name }}
{{- end }}
Comment thread
sk-portkey marked this conversation as resolved.
{{- end }}

{{- define "dataservice.serviceAccountName" -}}
{{- if .Values.dataservice.serviceAccount.create -}}
{{ default (printf "%s-%s" (include "portkeyenterprise.fullname" .) .Values.dataservice.name) .Values.dataservice.serviceAccount.name | trunc 63 | trimSuffix "-" }}
{{- else if not .Values.dataservice.serviceAccount.name -}}
{{- fail "dataservice.serviceAccount.name must be set when dataservice.serviceAccount.create is false" }}
{{- else -}}
{{ default "default" .Values.dataservice.serviceAccount.name }}
{{ .Values.dataservice.serviceAccount.name | trunc 63 | trimSuffix "-" }}
{{- end -}}
Comment thread
sk-portkey marked this conversation as resolved.
{{- end -}}

Expand Down
7 changes: 4 additions & 3 deletions charts/portkey-gateway/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -155,13 +155,13 @@ environment:

serviceAccount:
# Specifies whether a service account should be created
create: true
create: false
# Automatically mount a ServiceAccount's API credentials?
automount: true
# Annotations to add to the service account
annotations: {}
# The name of the service account to use.
# If not set and create is true, a name is generated using the fullname template
# Required when create is false. If not set and create is true, a name is generated using the fullname template
name: ""
Comment thread
sk-portkey marked this conversation as resolved.

podAnnotations: {}
Expand Down Expand Up @@ -449,7 +449,8 @@ dataservice:
loadBalancerSourceRanges: []
loadBalancerIP: ""
serviceAccount:
create: true
create: false
# Required when create is false. If not set and create is true, a name is generated using the fullname template
name: ""
labels: {}
Comment thread
sk-portkey marked this conversation as resolved.
annotations: {}
Expand Down