mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Add rbac rules
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
parent
07d5ddfda8
commit
78f9c2ec07
@ -9,7 +9,7 @@ export type KubeResource =
|
||||
"pods" | "daemonsets" | "deployments" | "statefulsets" | "replicasets" | "replicationcontrollers" | "jobs" | "cronjobs" |
|
||||
"endpoints" | "customresourcedefinitions" | "horizontalpodautoscalers" | "verticalpodautoscalers" | "podsecuritypolicies" | "poddisruptionbudgets" |
|
||||
"priorityclasses" | "runtimeclasses" |
|
||||
"roles" | "clusterroles" | "rolebindings" | "clusterrolebindings" | "serviceaccounts";
|
||||
"roles" | "clusterroles" | "rolebindings" | "clusterrolebindings" | "serviceaccounts" | "mutatingwebhookconfigurations";
|
||||
|
||||
export interface KubeApiResource {
|
||||
kind: string;
|
||||
@ -116,6 +116,11 @@ export const apiResourceRecord: Record<KubeResource, KubeApiResourceData> = {
|
||||
group: "",
|
||||
namespaced: true,
|
||||
},
|
||||
mutatingwebhookconfigurations: {
|
||||
kind: "MutatingWebhookConfiguration",
|
||||
group: "admissionregistration.k8s.io/v1",
|
||||
namespaced: true,
|
||||
},
|
||||
networkpolicies: {
|
||||
kind: "NetworkPolicy",
|
||||
group: "networking.k8s.io",
|
||||
|
||||
@ -44,6 +44,7 @@ export const ResourceNames: Record<KubeResource, string> = {
|
||||
"clusterroles": "Cluster Roles",
|
||||
"serviceaccounts": "Service Accounts",
|
||||
"verticalpodautoscalers": "Vertical Pod Autoscalers",
|
||||
"mutatingwebhookconfigurations": "Mutating Webhook Configurations",
|
||||
};
|
||||
|
||||
export const ResourceKindMap = object.fromEntries(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user