diff --git a/charts/k8up/README.md b/charts/k8up/README.md index 8c264526c..a6369eed7 100644 --- a/charts/k8up/README.md +++ b/charts/k8up/README.md @@ -80,6 +80,7 @@ Document your changes in values.yaml and let `make docs:helm` generate this sect | resources.requests.cpu | string | `"20m"` | CPU request of K8up operator. See [supported units][resource-units]. | | resources.requests.memory | string | `"128Mi"` | Memory request of K8up operator. See [supported units][resource-units]. | | securityContext | object | `{}` | Container security context | +| serviceAccount.annotations | object | `{}` | Annotations to add to the service account. | | serviceAccount.create | bool | `true` | Specifies whether a service account should be created | | serviceAccount.name | string | `""` | The name of the service account to use. If not set and create is true, a name is generated using the fullname template | | tolerations | list | `[]` | | diff --git a/charts/k8up/templates/serviceaccount.yaml b/charts/k8up/templates/serviceaccount.yaml index 2fbbfb987..cef36db0a 100644 --- a/charts/k8up/templates/serviceaccount.yaml +++ b/charts/k8up/templates/serviceaccount.yaml @@ -5,4 +5,9 @@ metadata: name: {{ template "k8up.serviceAccountName" . }} labels: {{ include "k8up.labels" . | indent 4 }} +{{- with .Values.serviceAccount.annotations }} +annotations: + {{- toYaml . | nindent 4 }} +{{- end }} + {{- end -}} diff --git a/charts/k8up/values.yaml b/charts/k8up/values.yaml index f4d880253..2018412b3 100644 --- a/charts/k8up/values.yaml +++ b/charts/k8up/values.yaml @@ -19,6 +19,8 @@ serviceAccount: # -- The name of the service account to use. # If not set and create is true, a name is generated using the fullname template name: "" + # -- Annotations to add to the service account. + annotations: {} k8up: # -- envVars allows the specification of additional environment variables.