blob: b2d8451ec1bed9fdb970c49806c1d757eb5b33a3 [file] [log] [blame]
Fatemeh Rouzbehe09cf472021-11-11 08:16:20 -08001{{/*
2# Copyright 2020-present Open Networking Foundation
3# SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.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 }}