You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
594 B
18 lines
594 B
{{- if .Values.global.podSecurityPolicy.enabled }}
|
|
kind: ClusterRole
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
metadata:
|
|
name: {{ template "cert-manager.fullname" . }}-psp
|
|
labels:
|
|
app: {{ include "cert-manager.name" . }}
|
|
app.kubernetes.io/name: {{ include "cert-manager.name" . }}
|
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
app.kubernetes.io/component: "controller"
|
|
{{- include "labels" . | nindent 4 }}
|
|
rules:
|
|
- apiGroups: ['policy']
|
|
resources: ['podsecuritypolicies']
|
|
verbs: ['use']
|
|
resourceNames:
|
|
- {{ template "cert-manager.fullname" . }}
|
|
{{- end }}
|
|
|