Skip to content

Commit 09e0381

Browse files
committed
feat(helm): add ability to specify annotations on ServiceAccount
1 parent 7aa49be commit 09e0381

3 files changed

Lines changed: 12 additions & 1 deletion

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
1+
{{- if .Values.serviceAccount.create }}
12
apiVersion: v1
23
kind: ServiceAccount
34
metadata:
45
name: {{ include "core-dump-handler.serviceAccountName" . }}
56
labels:
67
{{ include "core-dump-handler.labels" . | nindent 4 }}
8+
{{- with .Values.serviceAccount.annotations }}
9+
annotations:
10+
{{ toYaml . | indent 4 }}
11+
{{- end }}
12+
{{- end }}

charts/core-dump-handler/values.schema.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,9 @@
280280
},
281281
"name": {
282282
"type": "string"
283+
},
284+
"annotations": {
285+
"type": "object"
283286
}
284287
},
285288
"required": [
@@ -289,4 +292,4 @@
289292
"title": "ServiceAccount"
290293
}
291294
}
292-
}
295+
}

charts/core-dump-handler/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ daemonset:
5050
serviceAccount:
5151
create: true
5252
name: "core-dump-admin"
53+
# annotations:
54+
# eks.amazonaws.com/role-arn: arn:aws:iam::123456789000:role/iam-role-name-here
5355

5456
# OpenShift specific for SecurityContextConstraints
5557
scc:

0 commit comments

Comments
 (0)