diff --git a/charts/netdata/README.md b/charts/netdata/README.md index 5e3c807..ca7a524 100644 --- a/charts/netdata/README.md +++ b/charts/netdata/README.md @@ -458,6 +458,15 @@ true The name of the service account to use. If not set and create is true, a name is generated using the fullname template + + serviceAccount.annotations + object +
+{}
+
+ + Annotations to add to the service account (e.g. an AWS IRSA `eks.amazonaws.com/role-arn`) + restarter.enabled bool diff --git a/charts/netdata/templates/serviceaccount.yaml b/charts/netdata/templates/serviceaccount.yaml index 5543c98..34f9455 100644 --- a/charts/netdata/templates/serviceaccount.yaml +++ b/charts/netdata/templates/serviceaccount.yaml @@ -10,4 +10,8 @@ metadata: heritage: {{ .Release.Service }} name: {{ .Values.serviceAccount.name }} namespace: {{ .Release.Namespace }} + {{- with .Values.serviceAccount.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} {{- end -}} diff --git a/charts/netdata/values.yaml b/charts/netdata/values.yaml index 1bf9777..6482c07 100644 --- a/charts/netdata/values.yaml +++ b/charts/netdata/values.yaml @@ -174,6 +174,9 @@ serviceAccount: # -- The name of the service account to use. If not set and create is true, a name is generated using the fullname template # @section -- General settings name: netdata + # -- Annotations to add to the service account (e.g. an AWS IRSA `eks.amazonaws.com/role-arn`) + # @section -- General settings + annotations: {} restarter: # -- Install CronJob to update Netdata Pods