mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
* added backbone for k8s-api/endpoints/ingress-class.api Signed-off-by: Roman <ixrock@gmail.com> * added ingress-class store, naming clean up Signed-off-by: Roman <ixrock@gmail.com> * navigate to ingress-classses injectable Signed-off-by: Roman <ixrock@gmail.com> * added new sidebar item: "Network -> Ingress Classes" Signed-off-by: Roman <ixrock@gmail.com> * added explicit returning type for `ingresses-sidebar-items.injectable` Signed-off-by: Roman <ixrock@gmail.com> * added initial ingress-class table-view + magic route-component.injectable Signed-off-by: Roman <ixrock@gmail.com> * fix: show loaded items from api into IngressClasses view Signed-off-by: Roman <ixrock@gmail.com> * fix: new bugs after master merging (with conflicts!), looks like breaking change if those apis where exported Signed-off-by: Roman <ixrock@gmail.com> * fix lint Signed-off-by: Roman <ixrock@gmail.com> * added icon-marker to see default ingress class in the list Signed-off-by: Roman <ixrock@gmail.com> * Page refresh is broken in development mode #6818 (upcoming fix) Signed-off-by: Roman <ixrock@gmail.com> * added "set as default" menu action for ingress classes Signed-off-by: Roman <ixrock@gmail.com> * fix: consistent sidebar items order by janne's request Signed-off-by: Roman <ixrock@gmail.com> * chore, fix lint Signed-off-by: Roman <ixrock@gmail.com> * fix: incorrect icons layout in ingress-class details Signed-off-by: Roman <ixrock@gmail.com> * some fixes, improved items search by values from `spec.parameters.*` Signed-off-by: Roman <ixrock@gmail.com> * fix: duplicating/overcaching items with each page visiting (Nnetwork -> Ingress classes) Signed-off-by: Roman <ixrock@gmail.com> * handling IngressClass drawer details Signed-off-by: Roman <ixrock@gmail.com> * fixes: remove duplicating / allow editing IngressClass items (due api's "namespaced=true") Signed-off-by: Roman <ixrock@gmail.com> * fix: incorrect `apiName` for `front-end-routing/cluster/network/ingress-class` Signed-off-by: Roman <ixrock@gmail.com> * fix: IngressClass proper metadata typing Signed-off-by: Roman <ixrock@gmail.com> * allow to mark as default IngressClass from menu item Signed-off-by: Roman <ixrock@gmail.com> * fix lint Signed-off-by: Roman <ixrock@gmail.com> * fixes & responding to comments Signed-off-by: Roman <ixrock@gmail.com> Signed-off-by: Roman <ixrock@gmail.com>
51 lines
1.7 KiB
TypeScript
51 lines
1.7 KiB
TypeScript
/**
|
|
* Copyright (c) OpenLens Authors. All rights reserved.
|
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
|
*/
|
|
|
|
import type { KubeResource } from "../../common/rbac";
|
|
import { apiResourceRecord } from "../../common/rbac";
|
|
import { object } from "../../common/utils";
|
|
|
|
export const ResourceNames: Record<KubeResource, string> = {
|
|
"namespaces": "Namespaces",
|
|
"nodes": "Nodes",
|
|
"events": "Events",
|
|
"leases": "Leases",
|
|
"resourcequotas": "Resource Quotas",
|
|
"services": "Services",
|
|
"secrets": "Secrets",
|
|
"configmaps": "Config Maps",
|
|
"ingresses": "Ingresses",
|
|
"ingressclasses": "Ingress Classes",
|
|
"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",
|
|
"priorityclasses": "Priority Classes",
|
|
"runtimeclasses": "Runtime Classes",
|
|
"limitranges": "Limit Ranges",
|
|
"roles": "Roles",
|
|
"rolebindings": "Role Bindings",
|
|
"clusterrolebindings": "Cluster Role Bindings",
|
|
"clusterroles": "Cluster Roles",
|
|
"serviceaccounts": "Service Accounts",
|
|
};
|
|
|
|
export const ResourceKindMap = object.fromEntries(
|
|
object.entries(apiResourceRecord)
|
|
.map(([resource, { kind }]) => [kind, resource]),
|
|
);
|