mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
- Also throw errors in kube-api methods if an array is returned by the API but a single item was expected or vice-versa Signed-off-by: Sebastian Malton <sebastian@malton.name>
34 lines
1.1 KiB
TypeScript
34 lines
1.1 KiB
TypeScript
import { KubeResource } from "../../common/rbac";
|
|
|
|
export const ResourceNames: Record<KubeResource, string> = {
|
|
"namespaces": "Namespaces",
|
|
"nodes": "Nodes",
|
|
"events": "Events",
|
|
"resourcequotas": "Resource Quotas",
|
|
"services": "Services",
|
|
"secrets": "Secrets",
|
|
"configmaps": "Config Maps",
|
|
"ingresses": "Ingresses",
|
|
"networkpolicies": "Network Policies",
|
|
"persistentvolumeclaims": "Persistent Volume Claims",
|
|
"persistentvolumes": "Persistent Volumes",
|
|
"storageclasses": "Storage Classes",
|
|
"pods": "Pods",
|
|
"daemonsets": "Daemon Sets",
|
|
"deployments": "Deployments",
|
|
"statefulsets": "Stateful Sets",
|
|
"replicasets": "Replica Sets",
|
|
"jobs": "Jobs",
|
|
"cronjobs": "Cron Jobs",
|
|
"endpoints": "Endpoints",
|
|
"customresourcedefinitions": "Custom Resource Definitions",
|
|
"horizontalpodautoscalers": "Horizontal Pod Autoscalers",
|
|
"podsecuritypolicies": "Pod Security Policies",
|
|
"poddisruptionbudgets": "Pod Disruption Budgets",
|
|
"limitranges": "Limit Ranges",
|
|
"role": "Roles",
|
|
"rolebinding": "Role Bindings",
|
|
"clusterrolebinding": "Cluster Role Bindings",
|
|
"serviceaccount": "Service Accounts"
|
|
};
|