4 corev1 "k8s.io/api/core/v1"
\r
5 metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
\r
8 func GetClusterRole() []*rbacv1.ClusterRole {
\r
10 clusterRole1 := &rbacv1.ClusterRole{
\r
11 ObjectMeta: metav1.ObjectMeta{
\r
12 Name: "svcacct-ricplt-appmgr-ricxapp-access",
\r
14 Rules: []rbacv1.PolicyRule{
\r
17 APIGroups: []string{
\r
21 Resources: []string{
\r
31 APIGroups: []string{
\r
35 Resources: []string{
\r
51 APIGroups: []string{
\r
55 Resources: []string{
\r
66 TypeMeta: metav1.TypeMeta{
\r
67 Kind: "ClusterRole",
\r
68 APIVersion: "rbac.authorization.k8s.io/v1",
\r
72 clusterRole2 := &rbacv1.ClusterRole{
\r
73 Rules: []rbacv1.PolicyRule{
\r
76 APIGroups: []string{
\r
80 Resources: []string{
\r
96 TypeMeta: metav1.TypeMeta{
\r
97 APIVersion: "rbac.authorization.k8s.io/v1",
\r
98 Kind: "ClusterRole",
\r
100 ObjectMeta: metav1.ObjectMeta{
\r
101 Name: "svcacct-ricplt-appmgr-ricxapp-getappconfig",
\r
105 return []*rbacv1.ClusterRole{clusterRole1, clusterRole2}
\r