blob: 4f09b6bf3b7f989233ee89c3f34629b6e7bf26c5 [file] [log] [blame]
Giorgi Lekveishvilid1234c12023-06-19 10:37:06 +04001{{- if .Values.global.podSecurityPolicy.enabled }}
2apiVersion: rbac.authorization.k8s.io/v1
3kind: ClusterRoleBinding
4metadata:
5 name: {{ template "cert-manager.fullname" . }}-psp
6 labels:
7 app: {{ include "cert-manager.name" . }}
8 app.kubernetes.io/name: {{ include "cert-manager.name" . }}
9 app.kubernetes.io/instance: {{ .Release.Name }}
10 app.kubernetes.io/component: "controller"
11 {{- include "labels" . | nindent 4 }}
12roleRef:
13 apiGroup: rbac.authorization.k8s.io
14 kind: ClusterRole
15 name: {{ template "cert-manager.fullname" . }}-psp
16subjects:
17 - kind: ServiceAccount
18 name: {{ template "cert-manager.serviceAccountName" . }}
19 namespace: {{ include "cert-manager.namespace" . }}
20{{- end }}