Fatemeh Rouzbeh | e09cf47 | 2021-11-11 08:16:20 -0800 | [diff] [blame] | 1 | {{/* |
| 2 | # Copyright 2020-present Open Networking Foundation |
| 3 | # SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0 |
| 4 | */}} |
| 5 | |
| 6 | {{- if .Values.podsecuritypolicy.enabled }} |
| 7 | apiVersion: rbac.authorization.k8s.io/v1 |
| 8 | kind: RoleBinding |
| 9 | metadata: |
| 10 | name: role:psp:upf |
| 11 | namespace: {{ .Release.Namespace }} |
| 12 | roleRef: |
| 13 | apiGroup: rbac.authorization.k8s.io |
| 14 | kind: ClusterRole |
| 15 | name: psp:upf |
| 16 | subjects: |
| 17 | - kind: Group |
| 18 | name: system:serviceaccounts:{{ .Release.Namespace }} |
| 19 | namespace: {{ .Release.Namespace }} |
| 20 | {{- end }} |