blob: e43a0baa62510af30ac76dc635a37511e4e7f88e [file] [log] [blame]
package controller
import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
func GetRole() []*rbacv1.Role {
role1 := &rbacv1.Role{
ObjectMeta: metav1.ObjectMeta{
Name: "svcacct-ricplt-alarmmanager-ricxapp-podreader",
Namespace: "ricxapp",
},
Rules: []rbacv1.PolicyRule{
rbacv1.PolicyRule{
APIGroups: []string{
"",
},
Resources: []string{
"pods",
},
Verbs: []string{
"get",
"list",
"watch",
},
},
},
TypeMeta: metav1.TypeMeta{
APIVersion: "rbac.authorization.k8s.io/v1",
Kind: "Role",
},
}
return []*rbacv1.Role{role1}
}