blob: 275f1a06c887fd83d2143816ba3f2c9ab450981c [file] [log] [blame]
Charles Chane1e5e622022-02-16 15:17:05 -08001{{/*
2# Copyright 2020-present Open Networking Foundation
3# SPDX-License-Identifier: Apache-2.0
4*/}}
5
6{{- if .Values.podsecuritypolicy.enabled }}
7apiVersion: rbac.authorization.k8s.io/v1
8kind: RoleBinding
9metadata:
10 name: role:psp:upf
11 namespace: {{ .Release.Namespace }}
12roleRef:
13 apiGroup: rbac.authorization.k8s.io
14 kind: ClusterRole
15 name: psp:upf
16subjects:
17- kind: Group
18 name: system:serviceaccounts:{{ .Release.Namespace }}
19 namespace: {{ .Release.Namespace }}
20{{- end }}