From d90dd890f53c3be8182b2ece0bf2fb0acd8555fc Mon Sep 17 00:00:00 2001 From: Fredrik Wendel Date: Thu, 4 Jul 2024 07:32:48 +0200 Subject: [PATCH] Allow adding annotations on the ServiceAccount Allow specifying annotations that will be added to the ServiceAccount. This fixes jcmoraisjr/haproxy-ingress/issues/1056. --- haproxy-ingress/templates/serviceaccount.yaml | 4 ++++ haproxy-ingress/values.yaml | 3 +++ 2 files changed, 7 insertions(+) diff --git a/haproxy-ingress/templates/serviceaccount.yaml b/haproxy-ingress/templates/serviceaccount.yaml index 7824626..0895f60 100644 --- a/haproxy-ingress/templates/serviceaccount.yaml +++ b/haproxy-ingress/templates/serviceaccount.yaml @@ -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 }} diff --git a/haproxy-ingress/values.yaml b/haproxy-ingress/values.yaml index 46f6746..8ae43f1 100644 --- a/haproxy-ingress/values.yaml +++ b/haproxy-ingress/values.yaml @@ -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: ""