From 13b0e663b896d34d811af1d09124ad7197a127b4 Mon Sep 17 00:00:00 2001 From: Chi-En Wu Date: Thu, 23 Apr 2020 17:12:45 +0800 Subject: [PATCH] docs: correct description about `common.serviceAccountName` --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 33d8848..023c499 100644 --- a/README.md +++ b/README.md @@ -1067,9 +1067,15 @@ The `common.serviceAccountName` template accepts a list of two values: - `$top`, the top context - `$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 serviceAccount: @@ -1079,12 +1085,6 @@ serviceAccount: name: some-name ``` -Example usage: - -``` -serviceAccountName: {{ include "common.serviceAccountName" . .Values.serviceAccount }} -``` - Example output: ```yaml