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" |
|
"pods" | "daemonsets" | "deployments" | "statefulsets" | "replicasets" | "replicationcontrollers" | "jobs" | "cronjobs" |
|
||||||
"endpoints" | "customresourcedefinitions" | "horizontalpodautoscalers" | "verticalpodautoscalers" | "podsecuritypolicies" | "poddisruptionbudgets" |
|
"endpoints" | "customresourcedefinitions" | "horizontalpodautoscalers" | "verticalpodautoscalers" | "podsecuritypolicies" | "poddisruptionbudgets" |
|
||||||
"priorityclasses" | "runtimeclasses" |
|
"priorityclasses" | "runtimeclasses" |
|
||||||
"roles" | "clusterroles" | "rolebindings" | "clusterrolebindings" | "serviceaccounts";
|
"roles" | "clusterroles" | "rolebindings" | "clusterrolebindings" | "serviceaccounts" | "mutatingwebhookconfigurations";
|
||||||
|
|
||||||
export interface KubeApiResource {
|
export interface KubeApiResource {
|
||||||
kind: string;
|
kind: string;
|
||||||
@ -116,6 +116,11 @@ export const apiResourceRecord: Record<KubeResource, KubeApiResourceData> = {
|
|||||||
group: "",
|
group: "",
|
||||||
namespaced: true,
|
namespaced: true,
|
||||||
},
|
},
|
||||||
|
mutatingwebhookconfigurations: {
|
||||||
|
kind: "MutatingWebhookConfiguration",
|
||||||
|
group: "admissionregistration.k8s.io/v1",
|
||||||
|
namespaced: true,
|
||||||
|
},
|
||||||
networkpolicies: {
|
networkpolicies: {
|
||||||
kind: "NetworkPolicy",
|
kind: "NetworkPolicy",
|
||||||
group: "networking.k8s.io",
|
group: "networking.k8s.io",
|
||||||
|
|||||||
@ -44,6 +44,7 @@ export const ResourceNames: Record<KubeResource, string> = {
|
|||||||
"clusterroles": "Cluster Roles",
|
"clusterroles": "Cluster Roles",
|
||||||
"serviceaccounts": "Service Accounts",
|
"serviceaccounts": "Service Accounts",
|
||||||
"verticalpodautoscalers": "Vertical Pod Autoscalers",
|
"verticalpodautoscalers": "Vertical Pod Autoscalers",
|
||||||
|
"mutatingwebhookconfigurations": "Mutating Webhook Configurations",
|
||||||
};
|
};
|
||||||
|
|
||||||
export const ResourceKindMap = object.fromEntries(
|
export const ResourceKindMap = object.fromEntries(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user