|
| 1 | +package grafana_operator |
| 2 | + |
| 3 | +import ( |
| 4 | + rbacv1 "k8s.io/api/rbac/v1" |
| 5 | + "k8s.io/api/core/v1" |
| 6 | +) |
| 7 | + |
| 8 | +#ClusterRoleList: rbacv1.#ClusterRoleList & { |
| 9 | + apiVersion: "rbac.authorization.k8s.io/v1" |
| 10 | + kind: "ClusterRoleList" |
| 11 | + items: [...{ |
| 12 | + apiVersion: "rbac.authorization.k8s.io/v1" |
| 13 | + kind: "ClusterRole" |
| 14 | + }] |
| 15 | +} |
| 16 | + |
| 17 | +#ClusterRoleList: items: [{ |
| 18 | + rules: [{ |
| 19 | + apiGroups: [v1.#GroupName] |
| 20 | + resources: ["configmaps"] |
| 21 | + verbs: ["get", "list", "watch", "create", "update", "patch", "delete"] |
| 22 | + }, { |
| 23 | + apiGroups: ["coordination.k8s.io"] |
| 24 | + resources: ["leases"] |
| 25 | + verbs: ["get", "list", "watch", "create", "update", "patch", "delete"] |
| 26 | + }, { |
| 27 | + apiGroups: [v1.#GroupName] |
| 28 | + resources: ["events"] |
| 29 | + verbs: ["create", "patch"] |
| 30 | + }, { |
| 31 | + apiGroups: [v1.#GroupName] |
| 32 | + resources: ["configmaps", "persistentvolumeclaims", "secrets", "serviceaccounts", "services"] |
| 33 | + verbs: ["create", "delete", "get", "list", "patch", "update", "watch"] |
| 34 | + }, { |
| 35 | + apiGroups: [v1.#GroupName] |
| 36 | + resources: ["events"] |
| 37 | + verbs: ["create", "get", "list", "patch", "watch"] |
| 38 | + }, { |
| 39 | + apiGroups: ["apps"] |
| 40 | + resources: ["deployments"] |
| 41 | + verbs: ["create", "delete", "get", "list", "patch", "update", "watch"] |
| 42 | + }, { |
| 43 | + apiGroups: ["grafana.integreatly.org"] |
| 44 | + resources: ["grafanaalertrulegroups"] |
| 45 | + verbs: ["create", "delete", "get", "list", "patch", "update", "watch"] |
| 46 | + }, { |
| 47 | + apiGroups: ["grafana.integreatly.org"] |
| 48 | + resources: ["grafanaalertrulegroups/finalizers"] |
| 49 | + verbs: ["update"] |
| 50 | + }, { |
| 51 | + apiGroups: ["grafana.integreatly.org"] |
| 52 | + resources: ["grafanaalertrulegroups/status"] |
| 53 | + verbs: ["get", "patch", "update"] |
| 54 | + }, { |
| 55 | + apiGroups: ["grafana.integreatly.org"] |
| 56 | + resources: ["grafanadashboards"] |
| 57 | + verbs: ["create", "delete", "get", "list", "patch", "update", "watch"] |
| 58 | + }, { |
| 59 | + apiGroups: ["grafana.integreatly.org"] |
| 60 | + resources: ["grafanadashboards/finalizers"] |
| 61 | + verbs: ["update"] |
| 62 | + }, { |
| 63 | + apiGroups: ["grafana.integreatly.org"] |
| 64 | + resources: ["grafanadashboards/status"] |
| 65 | + verbs: ["get", "patch", "update"] |
| 66 | + }, { |
| 67 | + apiGroups: ["grafana.integreatly.org"] |
| 68 | + resources: ["grafanadatasources"] |
| 69 | + verbs: ["create", "delete", "get", "list", "patch", "update", "watch"] |
| 70 | + }, { |
| 71 | + apiGroups: ["grafana.integreatly.org"] |
| 72 | + resources: ["grafanadatasources/finalizers"] |
| 73 | + verbs: ["update"] |
| 74 | + }, { |
| 75 | + apiGroups: ["grafana.integreatly.org"] |
| 76 | + resources: ["grafanadatasources/status"] |
| 77 | + verbs: ["get", "patch", "update"] |
| 78 | + }, { |
| 79 | + apiGroups: ["grafana.integreatly.org"] |
| 80 | + resources: ["grafanafolders"] |
| 81 | + verbs: ["create", "delete", "get", "list", "patch", "update", "watch"] |
| 82 | + }, { |
| 83 | + apiGroups: ["grafana.integreatly.org"] |
| 84 | + resources: ["grafanafolders/finalizers"] |
| 85 | + verbs: ["update"] |
| 86 | + }, { |
| 87 | + apiGroups: ["grafana.integreatly.org"] |
| 88 | + resources: ["grafanafolders/status"] |
| 89 | + verbs: ["get", "patch", "update"] |
| 90 | + }, { |
| 91 | + apiGroups: ["grafana.integreatly.org"] |
| 92 | + resources: ["grafanas"] |
| 93 | + verbs: ["create", "delete", "get", "list", "patch", "update", "watch"] |
| 94 | + }, { |
| 95 | + apiGroups: ["grafana.integreatly.org"] |
| 96 | + resources: ["grafanas/finalizers"] |
| 97 | + verbs: ["update"] |
| 98 | + }, { |
| 99 | + apiGroups: ["grafana.integreatly.org"] |
| 100 | + resources: ["grafanas/status"] |
| 101 | + verbs: ["get", "patch", "update"] |
| 102 | + }, { |
| 103 | + apiGroups: ["networking.k8s.io"] |
| 104 | + resources: ["ingresses"] |
| 105 | + verbs: ["create", "delete", "get", "list", "patch", "update", "watch"] |
| 106 | + }, { |
| 107 | + apiGroups: ["route.openshift.io"] |
| 108 | + resources: ["routes", "routes/custom-host"] |
| 109 | + verbs: ["create", "delete", "get", "list", "update", "watch"] |
| 110 | + }] |
| 111 | +}] |
0 commit comments