Rename service account create to enabled

This commit is contained in:
stefanprodan
2019-08-13 12:12:52 +03:00
parent 37b453fbbc
commit 83842e01f7
4 changed files with 4 additions and 4 deletions

View File

@@ -63,7 +63,7 @@ Parameter | Description | Default
`service.nodePort` | node port for the service | `31198`
`service.type` | type of service | `ClusterIP`
`tolerations` | list of node taints to tolerate | `[]`
`serviceAccount.create` | specifies whether a service account should be created | `false`
`serviceAccount.enabled` | specifies whether a service account should be created | `false`
`serviceAccount.name` | the name of the service account to use, if not set and create is true, a name is generated using the fullname template | None
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example,

View File

@@ -35,7 +35,7 @@ Create chart name and version as used by the chart label.
Create the name of the service account to use
*/}}
{{- define "podinfo.serviceAccountName" -}}
{{- if .Values.serviceAccount.create -}}
{{- if .Values.serviceAccount.enabled -}}
{{ default (include "podinfo.fullname" .) .Values.serviceAccount.name }}
{{- else -}}
{{ default "default" .Values.serviceAccount.name }}

View File

@@ -1,4 +1,4 @@
{{- if .Values.serviceAccount.create -}}
{{- if .Values.serviceAccount.enabled -}}
apiVersion: v1
kind: ServiceAccount
metadata:

View File

@@ -35,7 +35,7 @@ hpa:
serviceAccount:
# Specifies whether a service account should be created
create: false
enabled: false
# The name of the service account to use.
# If not set and create is true, a name is generated using the fullname template
name: