Adding Ingress for RIC.
[ric-plt/ric-dep.git] / depRicKubernetesOperator / internal / controller / getRoleBinding.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 GetRoleBinding() []*rbacv1.RoleBinding {\r
8 \r
9         roleBinding1 := &rbacv1.RoleBinding{\r
10                 Subjects: []rbacv1.Subject{\r
11 \r
12                         rbacv1.Subject{\r
13                                 Kind:      "ServiceAccount",\r
14                                 Name:      "svcacct-ricplt-alarmmanager",\r
15                                 Namespace: "ricplt",\r
16                         },\r
17                 },\r
18                 TypeMeta: metav1.TypeMeta{\r
19                         APIVersion: "rbac.authorization.k8s.io/v1",\r
20                         Kind:       "RoleBinding",\r
21                 },\r
22                 ObjectMeta: metav1.ObjectMeta{\r
23                         Name:      "svcacct-ricplt-alarmmanager-ricxapp-podreader",\r
24                         Namespace: "ricxapp",\r
25                 },\r
26                 RoleRef: rbacv1.RoleRef{\r
27                         APIGroup: "rbac.authorization.k8s.io",\r
28                         Kind:     "Role",\r
29                         Name:     "svcacct-ricplt-alarmmanager-ricxapp-podreader",\r
30                 },\r
31         }\r
32 \r
33         return []*rbacv1.RoleBinding{roleBinding1}\r
34 }\r