blob: 022e2483588aeb418771a83189b0f242b1e5fae3 [file] [log] [blame]
Wei-Yu Chen450a98a2019-01-15 16:56:30 -08001---
2# Copyright 2017-present Open Networking Foundation
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16---
17kind: ClusterRole
18apiVersion: rbac.authorization.k8s.io/v1beta1
19metadata:
20 name: pod-networks-operator
21rules:
22- apiGroups:
23 - '*'
24 resources:
25 - '*'
26 verbs:
27 - '*'
28- nonResourceURLs:
29 - '*'
30 verbs:
31 - '*'
32---
33apiVersion: v1
34kind: ServiceAccount
35metadata:
36 name: sriov-dp
37 namespace: kube-system
38---
39kind: ClusterRoleBinding
40apiVersion: rbac.authorization.k8s.io/v1beta1
41metadata:
42 name: sriov-dp
43roleRef:
44 apiGroup: rbac.authorization.k8s.io
45 kind: ClusterRole
46 name: pod-networks-operator
47subjects:
48- kind: ServiceAccount
49 name: sriov-dp
50 namespace: kube-system