diff --git a/charts/podinfo/README.md b/charts/podinfo/README.md index 1ad3eeb..f1fe6be 100644 --- a/charts/podinfo/README.md +++ b/charts/podinfo/README.md @@ -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, diff --git a/charts/podinfo/templates/_helpers.tpl b/charts/podinfo/templates/_helpers.tpl index 62e6e12..7991e94 100644 --- a/charts/podinfo/templates/_helpers.tpl +++ b/charts/podinfo/templates/_helpers.tpl @@ -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 }} diff --git a/charts/podinfo/templates/serviceaccount.yaml b/charts/podinfo/templates/serviceaccount.yaml index 7d398bf..0de8a1c 100644 --- a/charts/podinfo/templates/serviceaccount.yaml +++ b/charts/podinfo/templates/serviceaccount.yaml @@ -1,4 +1,4 @@ -{{- if .Values.serviceAccount.create -}} +{{- if .Values.serviceAccount.enabled -}} apiVersion: v1 kind: ServiceAccount metadata: diff --git a/charts/podinfo/values.yaml b/charts/podinfo/values.yaml index c299a8c..9910b7c 100644 --- a/charts/podinfo/values.yaml +++ b/charts/podinfo/values.yaml @@ -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: