mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
* wip: command palette Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com> * register shortcut to global menu Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com> * introduce openCommandDialog & closeCommandDialog Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com> * fix ipc broadcast to frames from renderer Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com> * tweak Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com> * add more commands Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com> * cleanup Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com> * ipc fix Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com> * add integration tests Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com> * ipc fix Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com> * implement workspace edit Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com> * workspace edit fixes Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com> * make tests green Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com> * fixes from code review Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com> * cleanup ipc Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com> * cleanup CommandRegistry Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com> * ipc fix Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com> * fix ClusterManager cluster auto-init Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com> * ensure cluster view is active before sending a command Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com> * switch to last active cluster when workspace change Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com> * tweak integration tests Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com> * run integration tests serially Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com> * cleanup Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com> * fixes based on code review Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com> * cleanup Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com> * cleanup more Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com> * cleanup Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com> * add workspace fixes Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com> * cleanup Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
51 lines
1.4 KiB
TypeScript
51 lines
1.4 KiB
TypeScript
import { navigate } from "../../navigation";
|
|
import { commandRegistry } from "../../../extensions/registries/command-registry";
|
|
import { configMapsURL } from "../+config-maps";
|
|
import { secretsURL } from "../+config-secrets";
|
|
import { resourceQuotaURL } from "../+config-resource-quotas";
|
|
import { limitRangeURL } from "../+config-limit-ranges";
|
|
import { hpaURL } from "../+config-autoscalers";
|
|
import { pdbURL } from "../+config-pod-disruption-budgets";
|
|
|
|
commandRegistry.add({
|
|
id: "cluster.viewConfigMaps",
|
|
title: "Cluster: View ConfigMaps",
|
|
scope: "cluster",
|
|
action: () => navigate(configMapsURL())
|
|
});
|
|
|
|
commandRegistry.add({
|
|
id: "cluster.viewSecrets",
|
|
title: "Cluster: View Secrets",
|
|
scope: "cluster",
|
|
action: () => navigate(secretsURL())
|
|
});
|
|
|
|
commandRegistry.add({
|
|
id: "cluster.viewResourceQuotas",
|
|
title: "Cluster: View ResourceQuotas",
|
|
scope: "cluster",
|
|
action: () => navigate(resourceQuotaURL())
|
|
});
|
|
|
|
commandRegistry.add({
|
|
id: "cluster.viewLimitRanges",
|
|
title: "Cluster: View LimitRanges",
|
|
scope: "cluster",
|
|
action: () => navigate(limitRangeURL())
|
|
});
|
|
|
|
commandRegistry.add({
|
|
id: "cluster.viewHorizontalPodAutoscalers",
|
|
title: "Cluster: View HorizontalPodAutoscalers (HPA)",
|
|
scope: "cluster",
|
|
action: () => navigate(hpaURL())
|
|
});
|
|
|
|
commandRegistry.add({
|
|
id: "cluster.viewPodDisruptionBudget",
|
|
title: "Cluster: View PodDisruptionBudgets",
|
|
scope: "cluster",
|
|
action: () => navigate(pdbURL())
|
|
});
|