2022-01-28 16:22:12 +00:00
|
|
|
{{- if .Values.rbac.create -}}
|
2021-12-01 15:43:42 +00:00
|
|
|
kind: ClusterRoleBinding
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
metadata:
|
|
|
|
name: {{ include "aws-node-termination-handler.fullname" . }}
|
2022-01-28 16:22:12 +00:00
|
|
|
labels:
|
|
|
|
{{- include "aws-node-termination-handler.labels" . | nindent 4 }}
|
2021-12-01 15:43:42 +00:00
|
|
|
roleRef:
|
2022-01-28 16:22:12 +00:00
|
|
|
apiGroup: rbac.authorization.k8s.io
|
2021-12-01 15:43:42 +00:00
|
|
|
kind: ClusterRole
|
|
|
|
name: {{ include "aws-node-termination-handler.fullname" . }}
|
2022-01-28 16:22:12 +00:00
|
|
|
subjects:
|
|
|
|
- kind: ServiceAccount
|
|
|
|
name: {{ template "aws-node-termination-handler.serviceAccountName" . }}
|
|
|
|
namespace: {{ .Release.Namespace }}
|
|
|
|
{{- end -}}
|