Skip to content

Commit 6f9aa8b

Browse files
authored
fix psp role (#435)
1 parent 462b0d6 commit 6f9aa8b

File tree

1 file changed

+3
-1
lines changed
  • config/helm/aws-node-termination-handler/templates

1 file changed

+3
-1
lines changed

config/helm/aws-node-termination-handler/templates/psp.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,11 @@ spec:
3232
volumes:
3333
- '*'
3434
---
35-
kind: ClusterRole
35+
kind: Role
3636
apiVersion: rbac.authorization.k8s.io/v1
3737
metadata:
3838
name: {{ template "aws-node-termination-handler.fullname" . }}-psp
39+
namespace: {{ .Release.Namespace }}
3940
labels:
4041
{{ include "aws-node-termination-handler.labels" . | indent 4 }}
4142
rules:
@@ -49,6 +50,7 @@ apiVersion: rbac.authorization.k8s.io/v1
4950
kind: RoleBinding
5051
metadata:
5152
name: {{ template "aws-node-termination-handler.fullname" . }}-psp
53+
namespace: {{ .Release.Namespace }}
5254
labels:
5355
{{ include "aws-node-termination-handler.labels" . | indent 4 }}
5456
roleRef:

0 commit comments

Comments
 (0)