docs: correct description about common.serviceAccountName

This commit is contained in:
Chi-En Wu
2020-04-23 17:12:45 +08:00
parent f3e9ed4885
commit 13b0e663b8

View File

@ -1067,9 +1067,15 @@ The `common.serviceAccountName` template accepts a list of two values:
- `$top`, the top context - `$top`, the top context
- `$serviceAccount`, a dictionary of values used in the service account template - `$serviceAccount`, a dictionary of values used in the service account template
It generates a name suitable for the `serviceAccountName` field of a `Pod` resource. It is used like this: It generates a name suitable for the `serviceAccountName` field of a `Pod` resource.
An example values file that can be used to configure the HorizontalPodAutoscaler resource is: Example usage:
```
serviceAccountName: {{ include "common.serviceAccountName" . .Values.serviceAccount }}
```
The following values can influence the output:
```yaml ```yaml
serviceAccount: serviceAccount:
@ -1079,12 +1085,6 @@ serviceAccount:
name: some-name name: some-name
``` ```
Example usage:
```
serviceAccountName: {{ include "common.serviceAccountName" . .Values.serviceAccount }}
```
Example output: Example output:
```yaml ```yaml