Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added service account annotations #876

Closed
wants to merge 16 commits into from
1 change: 1 addition & 0 deletions charts/k8up/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 | `[]` | |
Expand Down
5 changes: 5 additions & 0 deletions charts/k8up/templates/serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 -}}
2 changes: 2 additions & 0 deletions charts/k8up/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down