Merge "Adding Persistent Volume for Alarm Manager."
[ric-plt/ric-dep.git] / depRicKubernetesOperator / internal / controller / getRole.go
1 package controller\r
2 \r
3 import (\r
4         metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"\r
5 )\r
6 \r
7 func GetRole() []*rbacv1.Role {\r
8 \r
9         role1 := &rbacv1.Role{\r
10                 ObjectMeta: metav1.ObjectMeta{\r
11                         Name:      "svcacct-ricplt-alarmmanager-ricxapp-podreader",\r
12                         Namespace: "ricxapp",\r
13                 },\r
14                 Rules: []rbacv1.PolicyRule{\r
15 \r
16                         rbacv1.PolicyRule{\r
17                                 APIGroups: []string{\r
18 \r
19                                         "",\r
20                                 },\r
21                                 Resources: []string{\r
22 \r
23                                         "pods",\r
24                                 },\r
25                                 Verbs: []string{\r
26 \r
27                                         "get",\r
28                                         "list",\r
29                                         "watch",\r
30                                 },\r
31                         },\r
32                 },\r
33                 TypeMeta: metav1.TypeMeta{\r
34                         APIVersion: "rbac.authorization.k8s.io/v1",\r
35                         Kind:       "Role",\r
36                 },\r
37         }\r
38         return []*rbacv1.Role{role1}\r
39 }\r