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

Allow adding annotations on the ServiceAccount #82

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions haproxy-ingress/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ Parameter | Description | Default
`serviceAccount.create` | If true, create serviceAccount | `true`
`serviceAccount.name` | ServiceAccount to be used | ``
`serviceAccount.automountServiceAccountToken` | Automount API credentials for the ServiceAccount | `true` |
`serviceAccount.annotations` | A list of annotations to add to the ServiceAccount | ``
`controller.automountServiceAccountToken` | Automount API credentials to the controller's pod | `true` |
`controller.name` | name of the controller component | `controller`
`controller.image.registry` | controller container image registry | `quay.io`
Expand Down
4 changes: 4 additions & 0 deletions haproxy-ingress/templates/serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,8 @@ metadata:
{{- include "haproxy-ingress.labels" . | nindent 4 }}
name: {{ include "haproxy-ingress.serviceAccountName" . }}
namespace: {{ .Release.Namespace }}
{{- if .Values.serviceAccount.annotations }}
annotations:
{{- toYaml .Values.serviceAccount.annotations | nindent 4 }}
{{- end }}
{{- end }}
3 changes: 3 additions & 0 deletions haproxy-ingress/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ rbac:

# Create ServiceAccount
serviceAccount:
# Annotations to be added to the ServiceAccount
annotations: {}
# - eks.amazonaws.com/role-arn: "arn:aws:iam::111111111111:role/some-role-name"
# Specifies whether a ServiceAccount should be created
create: true
# The name of the ServiceAccount to use.
Expand Down