6170b6558401a025e679d76972e47a48608e5c32
[osm/devops.git] /
1 #######################################################################################
2 # Copyright ETSI Contributors and Others.
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
13 # implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16 #######################################################################################
17
18 ---
19 apiVersion: v1
20 kind: ServiceAccount
21 metadata:
22   name: argo
23   namespace: osm-workflows
24 ---
25 apiVersion: rbac.authorization.k8s.io/v1
26 kind: Role
27 metadata:
28   name: argo-role
29   namespace: osm-workflows
30 rules:
31 - apiGroups:
32   - coordination.k8s.io
33   resources:
34   - leases
35   verbs:
36   - create
37   - get
38   - update
39 - apiGroups:
40   - ""
41   resources:
42   - pods
43   - secrets
44   - configmaps
45   - persistentvolumeclaims
46   - persistentvolumeclaims/finalizers
47   verbs:
48   - create
49   - update
50   - delete
51   - get
52   - patch
53 - apiGroups:
54   - argoproj.io
55   resources:
56   - workflowtaskresults
57   verbs:
58   - create
59   - patch
60 ---
61 apiVersion: rbac.authorization.k8s.io/v1
62 kind: RoleBinding
63 metadata:
64   name: argo-binding
65   namespace: osm-workflows
66 roleRef:
67   apiGroup: rbac.authorization.k8s.io
68   kind: Role
69   name: argo-role
70 subjects:
71 - kind: ServiceAccount
72   name: argo
73   namespace: osm-workflows
74 ---
75 apiVersion: rbac.authorization.k8s.io/v1
76 kind: RoleBinding
77 metadata:
78   name: default-binding
79   namespace: osm-workflows
80 roleRef:
81   apiGroup: rbac.authorization.k8s.io
82   kind: Role
83   name: argo-role
84 subjects:
85 - kind: ServiceAccount
86   name: default
87   namespace: osm-workflows