From 0e7e6572a98fc80dd803a7644b18bad869f6df7d Mon Sep 17 00:00:00 2001 From: Brandon Wagner Date: Mon, 17 May 2021 16:01:30 -0500 Subject: [PATCH] fix psp role --- config/helm/aws-node-termination-handler/templates/psp.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config/helm/aws-node-termination-handler/templates/psp.yaml b/config/helm/aws-node-termination-handler/templates/psp.yaml index 8254951d..1df547aa 100644 --- a/config/helm/aws-node-termination-handler/templates/psp.yaml +++ b/config/helm/aws-node-termination-handler/templates/psp.yaml @@ -32,10 +32,11 @@ spec: volumes: - '*' --- -kind: ClusterRole +kind: Role apiVersion: rbac.authorization.k8s.io/v1 metadata: name: {{ template "aws-node-termination-handler.fullname" . }}-psp + namespace: {{ .Release.Namespace }} labels: {{ include "aws-node-termination-handler.labels" . | indent 4 }} rules: @@ -49,6 +50,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: name: {{ template "aws-node-termination-handler.fullname" . }}-psp + namespace: {{ .Release.Namespace }} labels: {{ include "aws-node-termination-handler.labels" . | indent 4 }} roleRef: