17 lines
547 B
YAML
17 lines
547 B
YAML
{{- if .Values.rbac.create -}}
|
|
kind: ClusterRoleBinding
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
metadata:
|
|
name: {{ include "aws-node-termination-handler.fullname" . }}
|
|
labels:
|
|
{{- include "aws-node-termination-handler.labels" . | nindent 4 }}
|
|
roleRef:
|
|
apiGroup: rbac.authorization.k8s.io
|
|
kind: ClusterRole
|
|
name: {{ include "aws-node-termination-handler.fullname" . }}
|
|
subjects:
|
|
- kind: ServiceAccount
|
|
name: {{ template "aws-node-termination-handler.serviceAccountName" . }}
|
|
namespace: {{ .Release.Namespace }}
|
|
{{- end -}}
|