4 metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
\r
7 func GetRole() []*rbacv1.Role {
\r
9 role1 := &rbacv1.Role{
\r
10 ObjectMeta: metav1.ObjectMeta{
\r
11 Name: "svcacct-ricplt-alarmmanager-ricxapp-podreader",
\r
12 Namespace: "ricxapp",
\r
14 Rules: []rbacv1.PolicyRule{
\r
17 APIGroups: []string{
\r
21 Resources: []string{
\r
33 TypeMeta: metav1.TypeMeta{
\r
34 APIVersion: "rbac.authorization.k8s.io/v1",
\r
38 return []*rbacv1.Role{role1}
\r