docs: correct description about common.serviceAccountName
This commit is contained in:
16
README.md
16
README.md
@ -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
|
||||||
|
Reference in New Issue
Block a user