Skip to content

Commit 55ac8eb

Browse files
mtblzMateusz
andauthored
feat(serviceAccount): support custom annotations on the service account (#537)
Co-authored-by: Mateusz <m4itee@bularz.net>
1 parent e31fbf0 commit 55ac8eb

3 files changed

Lines changed: 16 additions & 0 deletions

File tree

charts/netdata/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,15 @@ true
458458
</td>
459459
<td>The name of the service account to use. If not set and create is true, a name is generated using the fullname template</td>
460460
</tr>
461+
<tr>
462+
<td>serviceAccount.annotations</td>
463+
<td>object</td>
464+
<td><pre lang="json">
465+
{}
466+
</pre>
467+
</td>
468+
<td>Annotations to add to the service account (e.g. an AWS IRSA `eks.amazonaws.com/role-arn`)</td>
469+
</tr>
461470
<tr>
462471
<td>restarter.enabled</td>
463472
<td>bool</td>

charts/netdata/templates/serviceaccount.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,8 @@ metadata:
1010
heritage: {{ .Release.Service }}
1111
name: {{ .Values.serviceAccount.name }}
1212
namespace: {{ .Release.Namespace }}
13+
{{- with .Values.serviceAccount.annotations }}
14+
annotations:
15+
{{- toYaml . | nindent 4 }}
16+
{{- end }}
1317
{{- end -}}

charts/netdata/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,9 @@ serviceAccount:
174174
# -- The name of the service account to use. If not set and create is true, a name is generated using the fullname template
175175
# @section -- General settings
176176
name: netdata
177+
# -- Annotations to add to the service account (e.g. an AWS IRSA `eks.amazonaws.com/role-arn`)
178+
# @section -- General settings
179+
annotations: {}
177180

178181
restarter:
179182
# -- Install CronJob to update Netdata Pods

0 commit comments

Comments
 (0)