{{/* | |
# Copyright 2020-present Open Networking Foundation | |
# SPDX-License-Identifier: Apache-2.0 | |
*/}} | |
{{- if .Values.podsecuritypolicy.enabled }} | |
apiVersion: rbac.authorization.k8s.io/v1 | |
kind: ClusterRole | |
metadata: | |
name: psp:upf | |
rules: | |
- apiGroups: ['policy'] | |
resources: ['podsecuritypolicies'] | |
verbs: ['use'] | |
resourceNames: | |
- 1-upf | |
{{- end }} |