2021-12-01 15:43:42 +00:00
|
|
|
{{- if .Values.serviceAccount.create -}}
|
|
|
|
apiVersion: v1
|
|
|
|
kind: ServiceAccount
|
|
|
|
metadata:
|
|
|
|
name: {{ template "aws-node-termination-handler.serviceAccountName" . }}
|
2022-04-08 15:10:17 +00:00
|
|
|
namespace: {{ .Release.Namespace }}
|
2021-12-01 15:43:42 +00:00
|
|
|
labels:
|
|
|
|
{{- include "aws-node-termination-handler.labels" . | nindent 4 }}
|
2022-01-28 16:22:12 +00:00
|
|
|
{{- with .Values.serviceAccount.annotations }}
|
|
|
|
annotations:
|
|
|
|
{{- toYaml . | nindent 4 }}
|
|
|
|
{{- end }}
|
2021-12-01 15:43:42 +00:00
|
|
|
{{- end -}}
|