Skip to content

Commit

Permalink
Allow adding annotations on the ServiceAccount
Browse files Browse the repository at this point in the history
Allow specifying annotations that will be added to the ServiceAccount.
This fixes jcmoraisjr/haproxy-ingress/issues/1056.
  • Loading branch information
Fredrik Wendel committed Jul 4, 2024
1 parent eddd1a6 commit d90dd89
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
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 @@ -17,6 +17,9 @@ serviceAccount:
name:
# Automount API credentials for the ServiceAccount.
automountServiceAccountToken: true
# Annotations to be added to the ServiceAccount
annotations: {}
# - eks.amazonaws.com/role-arn: "arn:aws:iam::111111111111:role/some-role-name"

nameOverride: ""
fullnameOverride: ""
Expand Down

0 comments on commit d90dd89

Please sign in to comment.