@k8slens/extensions 6.3.0-git.6d7090f8a7.0 → 6.3.0-git.75aee7e4fd.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (112) hide show
  1. package/dist/src/common/certificate-authorities/inject-system-cas.injectable.d.ts +6 -0
  2. package/dist/src/{main/prometheus/index.d.ts → common/certificate-authorities/request-system-cas-token.d.ts} +1 -1
  3. package/dist/src/common/certificate-authorities/request-system-cas.injectable.darwin.d.ts +2 -0
  4. package/dist/src/common/certificate-authorities/request-system-cas.injectable.linux.d.ts +2 -0
  5. package/dist/src/common/certificate-authorities/request-system-cas.injectable.testing-env.d.ts +2 -0
  6. package/dist/src/common/certificate-authorities/request-system-cas.injectable.win32.d.ts +2 -0
  7. package/dist/src/common/fs/exec-file.injectable.d.ts +6 -3
  8. package/dist/src/common/ipc/cluster.d.ts +0 -2
  9. package/dist/src/common/k8s/create-resource-stack.injectable.d.ts +5 -0
  10. package/dist/src/common/k8s/resource-stack.d.ts +25 -6
  11. package/dist/src/common/k8s-api/endpoints/helm-releases.api/request-update.injectable.d.ts +2 -6
  12. package/dist/src/common/kube-helpers/channels.d.ts +25 -0
  13. package/dist/src/common/utils/binary-name.injectable.d.ts +2 -0
  14. package/dist/src/common/utils/bundled-binary-path.injectable.d.ts +2 -0
  15. package/dist/src/common/utils/channel/message-to-channel-injection-token.d.ts +1 -0
  16. package/dist/src/common/utils/composable-responsibilities/orderable/orderable.d.ts +1 -0
  17. package/dist/src/common/vars/normalized-platform.injectable.d.ts +2 -1
  18. package/dist/src/common/vars.d.ts +0 -27
  19. package/dist/src/extensions/common-api/k8s-api.d.ts +12 -1
  20. package/dist/src/extensions/extension-api.js +73 -906
  21. package/dist/src/extensions/lens-renderer-extension.d.ts +2 -1
  22. package/dist/src/extensions/registries/index.d.ts +0 -1
  23. package/dist/src/{main/utils/shell-env/compute-unix-shell-environment.test.d.ts → features/entity-settings/showing-settings-for-correct-entity.test.d.ts} +0 -0
  24. package/dist/src/features/preferences/renderer/preference-navigation/navigate-to-preference-tab/navigate-to-preference-tab.injectable.d.ts +2 -1
  25. package/dist/src/features/shell-sync/common/failure-channel.d.ts +6 -0
  26. package/dist/src/{main/utils/shell-env → features/shell-sync/main}/compute-shell-environment.injectable.d.ts +0 -0
  27. package/dist/src/{main/utils/shell-env → features/shell-sync/main}/compute-unix-shell-environment.global-override-for-injectable.d.ts +0 -0
  28. package/dist/src/{main/utils/shell-env → features/shell-sync/main}/compute-unix-shell-environment.injectable.d.ts +0 -0
  29. package/dist/src/{renderer/components/cluster-settings/components/__tests__/cluster-local-terminal-settings.test.d.ts → features/shell-sync/main/compute-unix-shell-environment.test.d.ts} +0 -0
  30. package/dist/src/features/shell-sync/main/emit-failure.injectable.d.ts +2 -0
  31. package/dist/src/{main/utils/shell-env → features/shell-sync/main}/env.injectable.d.ts +0 -0
  32. package/dist/src/{main/utils/shell-env → features/shell-sync/main}/execPath.injectable.d.ts +0 -0
  33. package/dist/src/{main/start-main-application/runnables → features/shell-sync/main}/setup-shell.injectable.d.ts +0 -0
  34. package/dist/src/features/shell-sync/renderer/failure-listener.injectable.d.ts +5 -0
  35. package/dist/src/main/context-handler/context-handler.d.ts +12 -7
  36. package/dist/src/main/electron-app/runnables/setup-ipc-main-handlers/setup-ipc-main-handlers.d.ts +1 -3
  37. package/dist/src/main/helm/exec-helm/exec-env.global-override-for-injectable.d.ts +9 -0
  38. package/dist/src/main/helm/exec-helm/exec-env.injectable.d.ts +2 -0
  39. package/dist/src/main/helm/helm-service/update-helm-release.injectable.d.ts +1 -2
  40. package/dist/src/main/kube-auth-proxy/kube-auth-proxy-certificate.injectable.d.ts +7 -0
  41. package/dist/src/main/kube-auth-proxy/lens-k8s-proxy-path.injectable.d.ts +2 -0
  42. package/dist/src/main/kubectl/apply-all-handler.injectable.d.ts +5 -0
  43. package/dist/src/main/kubectl/binary-name.injectable.d.ts +1 -1
  44. package/dist/src/main/kubectl/delete-all-handler.injectable.d.ts +5 -0
  45. package/dist/src/main/kubectl/kubectl-apply-all.injectable.d.ts +2 -0
  46. package/dist/src/main/kubectl/kubectl-delete-all.injectable.d.ts +2 -0
  47. package/dist/src/main/kubectl/kubectl.d.ts +2 -1
  48. package/dist/src/main/prometheus/get-by-kind.injectable.d.ts +4 -0
  49. package/dist/src/main/prometheus/helm-14-provider.injectable.d.ts +6 -0
  50. package/dist/src/main/prometheus/helm-provider.injectable.d.ts +10 -0
  51. package/dist/src/main/prometheus/lens-provider.injectable.d.ts +10 -0
  52. package/dist/src/main/prometheus/operator-provider.injectable.ts.d.ts +10 -0
  53. package/dist/src/main/prometheus/provider.d.ts +38 -0
  54. package/dist/src/main/prometheus/providers.injectable.d.ts +2 -0
  55. package/dist/src/main/prometheus/stacklight-provider.injectable.d.ts +10 -0
  56. package/dist/src/main/resource-applier/resource-applier.d.ts +6 -5
  57. package/dist/src/main/routes/resource-applier/create-resource-route.injectable.d.ts +13 -1
  58. package/dist/src/main/shell-session/shell-session.d.ts +1 -1
  59. package/dist/src/renderer/components/+catalog/columns/extensions-registrator.injectable.d.ts +18 -2
  60. package/dist/src/renderer/components/+entity-settings/active-tabs.injectable.d.ts +21 -0
  61. package/dist/src/renderer/components/+entity-settings/current-entity.injectable.d.ts +2 -0
  62. package/dist/src/renderer/components/+entity-settings/entity-settings.d.ts +1 -1
  63. package/dist/src/renderer/components/+entity-settings/extension-registrator.injectable.d.ts +39 -0
  64. package/dist/src/renderer/components/+entity-settings/has-settings.injectable.d.ts +4 -0
  65. package/dist/src/renderer/components/+entity-settings/index.d.ts +0 -1
  66. package/dist/src/renderer/components/+entity-settings/internal-kubernetes-cluster/general-settings.injectable.d.ts +15 -0
  67. package/dist/src/renderer/components/+entity-settings/internal-kubernetes-cluster/metrics-settings.injectable.d.ts +14 -0
  68. package/dist/src/renderer/components/+entity-settings/internal-kubernetes-cluster/namespace-settings.injectable.d.ts +14 -0
  69. package/dist/src/renderer/components/+entity-settings/internal-kubernetes-cluster/node-shell-settings.injectable.d.ts +14 -0
  70. package/dist/src/renderer/components/+entity-settings/internal-kubernetes-cluster/proxy-settings.injectable.d.ts +14 -0
  71. package/dist/src/renderer/components/+entity-settings/internal-kubernetes-cluster/terminal-settings.injectable.d.ts +14 -0
  72. package/dist/src/renderer/components/+entity-settings/{entity-settings-route-component.injectable.d.ts → route-component.injectable.d.ts} +0 -0
  73. package/dist/src/renderer/components/+entity-settings/{entity-settings-route-parameters.injectable.d.ts → route-parameters.injectable.d.ts} +0 -0
  74. package/dist/src/renderer/components/+entity-settings/settings.injectable.d.ts +3 -0
  75. package/dist/src/renderer/components/+entity-settings/token.d.ts +6 -0
  76. package/dist/src/renderer/components/cluster-settings/{index.d.ts → __tests__/cluster-local-terminal-settings.test.d.ts} +1 -1
  77. package/dist/src/renderer/components/cluster-settings/{components/cluster-accessible-namespaces.d.ts → accessible-namespaces.d.ts} +1 -1
  78. package/dist/src/renderer/components/cluster-settings/{components/cluster-icon-settings.d.ts → icon-settings.d.ts} +2 -2
  79. package/dist/src/renderer/components/cluster-settings/{components/cluster-kubeconfig.d.ts → kubeconfig.d.ts} +1 -1
  80. package/dist/src/renderer/components/cluster-settings/{components/cluster-local-terminal-settings.d.ts → local-terminal-settings.d.ts} +1 -1
  81. package/dist/src/renderer/components/cluster-settings/{components/cluster-metrics-setting.d.ts → metrics-setting.d.ts} +1 -1
  82. package/dist/src/renderer/components/cluster-settings/{components/cluster-name-setting.d.ts → name-setting.d.ts} +2 -2
  83. package/dist/src/renderer/components/cluster-settings/{components/cluster-node-shell-setting.d.ts → node-shell-setting.d.ts} +1 -1
  84. package/dist/src/renderer/components/cluster-settings/{components/cluster-prometheus-setting.d.ts → prometheus-setting.d.ts} +1 -1
  85. package/dist/src/renderer/components/cluster-settings/{components/cluster-proxy-setting.d.ts → proxy-setting.d.ts} +1 -1
  86. package/dist/src/renderer/components/cluster-settings/{components/cluster-show-metrics.d.ts → show-metrics.d.ts} +1 -1
  87. package/dist/src/renderer/components/dock/upgrade-chart/upgrade-chart-model.injectable.d.ts +2 -4
  88. package/dist/src/renderer/components/dock/upgrade-chart/view.d.ts +1 -1
  89. package/dist/src/renderer/components/tabs/tabs.d.ts +9 -9
  90. package/dist/src/renderer/initializers/index.d.ts +0 -1
  91. package/dist/src/renderer/ipc/index.d.ts +0 -8
  92. package/dist/src/renderer/kubectl/apply-all.injectable.d.ts +2 -0
  93. package/dist/src/renderer/kubectl/delete-all.injectable.d.ts +2 -0
  94. package/dist/src/test-utils/skippers.d.ts +13 -0
  95. package/package.json +1 -1
  96. package/dist/src/common/__tests__/system-ca.test.d.ts +0 -1
  97. package/dist/src/common/system-ca.d.ts +0 -24
  98. package/dist/src/common/utils/lazy-initialized.d.ts +0 -17
  99. package/dist/src/extensions/registries/entity-setting-registry.d.ts +0 -30
  100. package/dist/src/main/kube-auth-proxy/get-kube-auth-proxy-certificate.d.ts +0 -8
  101. package/dist/src/main/prometheus/helm-14.d.ts +0 -14
  102. package/dist/src/main/prometheus/helm.d.ts +0 -14
  103. package/dist/src/main/prometheus/lens.d.ts +0 -15
  104. package/dist/src/main/prometheus/operator.d.ts +0 -15
  105. package/dist/src/main/prometheus/prometheus-provider-registry.injectable.d.ts +0 -3
  106. package/dist/src/main/prometheus/provider-registry.d.ts +0 -27
  107. package/dist/src/main/prometheus/stacklight.d.ts +0 -15
  108. package/dist/src/main/start-main-application/runnables/setup-prometheus-registry.injectable.d.ts +0 -5
  109. package/dist/src/renderer/components/cluster-settings/cluster-settings.d.ts +0 -11
  110. package/dist/src/renderer/components/cluster-settings/components/index.d.ts +0 -14
  111. package/dist/src/renderer/components/command-palette/registered-commands/get-entity-setting-commands.injectable.d.ts +0 -4
  112. package/dist/src/renderer/initializers/entity-settings-registry.d.ts +0 -5
@@ -25,6 +25,7 @@ import type { KubeObjectHandlerRegistration } from "../renderer/kube-object/hand
25
25
  import type { AppPreferenceTabRegistration } from "../features/preferences/renderer/compliance-for-legacy-extension-api/app-preference-tab-registration";
26
26
  import type { KubeObjectDetailRegistration } from "../renderer/components/kube-object-details/kube-object-detail-registration";
27
27
  import type { ClusterFrameChildComponent } from "../renderer/frames/cluster-frame/cluster-frame-child-component-injection-token";
28
+ import type { EntitySettingRegistration } from "../renderer/components/+entity-settings/extension-registrator.injectable";
28
29
  export declare class LensRendererExtension extends LensExtension<LensRendererExtensionDependencies> {
29
30
  globalPages: registries.PageRegistration[];
30
31
  clusterPages: registries.PageRegistration[];
@@ -33,7 +34,7 @@ export declare class LensRendererExtension extends LensExtension<LensRendererExt
33
34
  kubeObjectStatusTexts: KubeObjectStatusRegistration[];
34
35
  appPreferences: AppPreferenceRegistration[];
35
36
  appPreferenceTabs: AppPreferenceTabRegistration[];
36
- entitySettings: registries.EntitySettingRegistration[];
37
+ entitySettings: EntitySettingRegistration[];
37
38
  statusBarItems: StatusBarRegistration[];
38
39
  kubeObjectDetailItems: KubeObjectDetailRegistration[];
39
40
  kubeObjectMenuItems: KubeObjectMenuRegistration[];
@@ -4,6 +4,5 @@
4
4
  */
5
5
  export * from "./page-registry";
6
6
  export * from "./page-menu-registry";
7
- export * from "./entity-setting-registry";
8
7
  export * from "./catalog-entity-detail-registry";
9
8
  export * from "./protocol-handler";
@@ -1,2 +1,3 @@
1
- declare const navigateToPreferenceTabInjectable: import("@ogre-tools/injectable").Injectable<(preferenceTabId: string) => void, unknown, void>;
1
+ export type NavigateToPreferenceTab = (tabId: string) => void;
2
+ declare const navigateToPreferenceTabInjectable: import("@ogre-tools/injectable").Injectable<NavigateToPreferenceTab, unknown, void>;
2
3
  export default navigateToPreferenceTabInjectable;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Copyright (c) OpenLens Authors. All rights reserved.
3
+ * Licensed under MIT License. See LICENSE in root directory for more information.
4
+ */
5
+ import type { MessageChannel } from "../../../common/utils/channel/message-channel-listener-injection-token";
6
+ export declare const shellSyncFailedChannel: MessageChannel<string>;
@@ -0,0 +1,2 @@
1
+ declare const emitShellSyncFailedInjectable: import("@ogre-tools/injectable").Injectable<(message: string) => void, unknown, void>;
2
+ export default emitShellSyncFailedInjectable;
@@ -0,0 +1,5 @@
1
+ declare const shellSyncFailureListenerInjectable: import("@ogre-tools/injectable").Injectable<{
2
+ channel: import("../../../common/utils/channel/message-channel-listener-injection-token").MessageChannel<string>;
3
+ handler: (message: string) => void;
4
+ }, import("../../../common/utils/channel/message-channel-listener-injection-token").MessageChannelListener<import("../../../common/utils/channel/message-channel-listener-injection-token").MessageChannel<unknown>>, void>;
5
+ export default shellSyncFailureListenerInjectable;
@@ -3,13 +3,16 @@
3
3
  * Licensed under MIT License. See LICENSE in root directory for more information.
4
4
  */
5
5
  /// <reference types="node" />
6
- import type { PrometheusProvider, PrometheusService, PrometheusProviderRegistry } from "../prometheus/provider-registry";
6
+ import type { PrometheusProvider, PrometheusService } from "../prometheus/provider";
7
7
  import type { ClusterPrometheusPreferences } from "../../common/cluster-types";
8
8
  import type { Cluster } from "../../common/cluster/cluster";
9
9
  import type httpProxy from "http-proxy";
10
10
  import type { UrlWithStringQuery } from "url";
11
11
  import type { KubeAuthProxy } from "../kube-auth-proxy/kube-auth-proxy";
12
12
  import type { CreateKubeAuthProxy } from "../kube-auth-proxy/create-kube-auth-proxy.injectable";
13
+ import type { GetPrometheusProviderByKind } from "../prometheus/get-by-kind.injectable";
14
+ import type { IComputedValue } from "mobx";
15
+ import type { Logger } from "../../common/logger";
13
16
  export interface PrometheusDetails {
14
17
  prometheusPath: string;
15
18
  provider: PrometheusProvider;
@@ -20,10 +23,12 @@ interface PrometheusServicePreferences {
20
23
  port: number;
21
24
  prefix: string;
22
25
  }
23
- interface Dependencies {
24
- readonly createKubeAuthProxy: CreateKubeAuthProxy;
26
+ export interface ContextHandlerDependencies {
27
+ createKubeAuthProxy: CreateKubeAuthProxy;
28
+ getPrometheusProviderByKind: GetPrometheusProviderByKind;
25
29
  readonly authProxyCa: string;
26
- readonly prometheusProviderRegistry: PrometheusProviderRegistry;
30
+ readonly prometheusProviders: IComputedValue<PrometheusProvider[]>;
31
+ readonly logger: Logger;
27
32
  }
28
33
  export interface ClusterContextHandler {
29
34
  readonly clusterUrl: UrlWithStringQuery;
@@ -37,14 +42,14 @@ export interface ClusterContextHandler {
37
42
  stopServer(): void;
38
43
  }
39
44
  export declare class ContextHandler implements ClusterContextHandler {
40
- private dependencies;
41
- protected cluster: Cluster;
45
+ private readonly dependencies;
46
+ protected readonly cluster: Cluster;
42
47
  readonly clusterUrl: UrlWithStringQuery;
43
48
  protected kubeAuthProxy?: KubeAuthProxy;
44
49
  protected apiTarget?: httpProxy.ServerOptions;
45
50
  protected prometheusProvider?: string;
46
51
  protected prometheus?: PrometheusServicePreferences;
47
- constructor(dependencies: Dependencies, cluster: Cluster);
52
+ constructor(dependencies: ContextHandlerDependencies, cluster: Cluster);
48
53
  setupPrometheus(preferences?: ClusterPrometheusPreferences): void;
49
54
  getPrometheusDetails(): Promise<PrometheusDetails>;
50
55
  protected ensurePrometheusPath({ service, namespace, port }: PrometheusService): string;
@@ -7,7 +7,6 @@ import type { ApplicationMenuItemTypes } from "../../../../features/application-
7
7
  import type { Composite } from "../../../../common/utils/composite/get-composite/get-composite";
8
8
  import type { MenuItemRoot } from "../../../../features/application-menu/main/application-menu-item-composite.injectable";
9
9
  import type { EmitAppEvent } from "../../../../common/app-event-bus/emit-event.injectable";
10
- import type { CreateResourceApplier } from "../../../resource-applier/create-resource-applier.injectable";
11
10
  interface Dependencies {
12
11
  applicationMenuItemComposite: IComputedValue<Composite<ApplicationMenuItemTypes | MenuItemRoot>>;
13
12
  catalogEntityRegistry: CatalogEntityRegistry;
@@ -15,7 +14,6 @@ interface Dependencies {
15
14
  operatingSystemTheme: IComputedValue<Theme>;
16
15
  askUserForFilePaths: AskUserForFilePaths;
17
16
  emitAppEvent: EmitAppEvent;
18
- createResourceApplier: CreateResourceApplier;
19
17
  }
20
- export declare const setupIpcMainHandlers: ({ applicationMenuItemComposite, catalogEntityRegistry, clusterStore, operatingSystemTheme, askUserForFilePaths, emitAppEvent, createResourceApplier, }: Dependencies) => void;
18
+ export declare const setupIpcMainHandlers: ({ applicationMenuItemComposite, catalogEntityRegistry, clusterStore, operatingSystemTheme, askUserForFilePaths, emitAppEvent, }: Dependencies) => void;
21
19
  export {};
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Copyright (c) OpenLens Authors. All rights reserved.
3
+ * Licensed under MIT License. See LICENSE in root directory for more information.
4
+ */
5
+ declare const _default: {
6
+ injectable: import("@ogre-tools/injectable").Injectable<import("mobx").IComputedValue<Partial<Record<string, string>>>, unknown, void>;
7
+ overridingInstantiate: import("@ogre-tools/injectable").Instantiate<import("mobx").IComputedValue<Partial<Record<string, string>>>, void>;
8
+ };
9
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const execHelmEnvInjectable: import("@ogre-tools/injectable").Injectable<import("mobx").IComputedValue<Partial<Record<string, string>>>, unknown, void>;
2
+ export default execHelmEnvInjectable;
@@ -1,8 +1,7 @@
1
1
  import type { Cluster } from "../../../common/cluster/cluster";
2
- import type { JsonObject } from "type-fest";
3
2
  export interface UpdateChartArgs {
4
3
  chart: string;
5
- values: JsonObject;
4
+ values: string;
6
5
  version: string;
7
6
  }
8
7
  declare const updateHelmReleaseInjectable: import("@ogre-tools/injectable").Injectable<(cluster: Cluster, releaseName: string, namespace: string, data: UpdateChartArgs) => Promise<{
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Copyright (c) OpenLens Authors. All rights reserved.
3
+ * Licensed under MIT License. See LICENSE in root directory for more information.
4
+ */
5
+ /// <reference types="selfsigned" />
6
+ declare const kubeAuthProxyCertificateInjectable: import("@ogre-tools/injectable").Injectable<import("selfsigned").SelfSignedCert, unknown, string>;
7
+ export default kubeAuthProxyCertificateInjectable;
@@ -0,0 +1,2 @@
1
+ declare const lensK8sProxyPathInjectable: import("@ogre-tools/injectable").Injectable<string, unknown, void>;
2
+ export default lensK8sProxyPathInjectable;
@@ -0,0 +1,5 @@
1
+ declare const kubectlApplyAllChannelHandlerInjectable: import("@ogre-tools/injectable").Injectable<{
2
+ channel: import("../../common/utils/channel/request-channel-listener-injection-token").RequestChannel<import("../../common/kube-helpers/channels").KubectlApplyAllArgs, import("../../common/utils/async-result").AsyncResult<string, string>>;
3
+ handler: (req: import("../../common/kube-helpers/channels").KubectlApplyAllArgs) => import("../../common/utils/async-result").AsyncResult<string, string> | Promise<import("../../common/utils/async-result").AsyncResult<string, string>>;
4
+ }, import("../utils/channel/channel-listeners/listener-tokens").RequestChannelListener<import("../../common/utils/channel/request-channel-listener-injection-token").RequestChannel<unknown, unknown>>, void>;
5
+ export default kubectlApplyAllChannelHandlerInjectable;
@@ -1,2 +1,2 @@
1
- declare const kubectlBinaryNameInjectable: import("@ogre-tools/injectable").Injectable<"kubectl.exe" | "kubectl", unknown, void>;
1
+ declare const kubectlBinaryNameInjectable: import("@ogre-tools/injectable").Injectable<string, unknown, void>;
2
2
  export default kubectlBinaryNameInjectable;
@@ -0,0 +1,5 @@
1
+ declare const kubectlDeleteAllChannelHandlerInjectable: import("@ogre-tools/injectable").Injectable<{
2
+ channel: import("../../common/utils/channel/request-channel-listener-injection-token").RequestChannel<import("../../common/kube-helpers/channels").KubectlDeleteAllArgs, import("../../common/utils/async-result").AsyncResult<string, string>>;
3
+ handler: (req: import("../../common/kube-helpers/channels").KubectlDeleteAllArgs) => import("../../common/utils/async-result").AsyncResult<string, string> | Promise<import("../../common/utils/async-result").AsyncResult<string, string>>;
4
+ }, import("../utils/channel/channel-listeners/listener-tokens").RequestChannelListener<import("../../common/utils/channel/request-channel-listener-injection-token").RequestChannel<unknown, unknown>>, void>;
5
+ export default kubectlDeleteAllChannelHandlerInjectable;
@@ -0,0 +1,2 @@
1
+ declare const kubectlApplyAllInjectable: import("@ogre-tools/injectable").Injectable<(req: import("../../common/kube-helpers/channels").KubectlApplyAllArgs) => Promise<import("../../common/utils/async-result").AsyncResult<string, string>>, (req: import("../../common/kube-helpers/channels").KubectlApplyAllArgs) => Promise<import("../../common/utils/async-result").AsyncResult<string, string>>, void>;
2
+ export default kubectlApplyAllInjectable;
@@ -0,0 +1,2 @@
1
+ declare const kubectlDeleteAllInjectable: import("@ogre-tools/injectable").Injectable<(req: import("../../common/kube-helpers/channels").KubectlDeleteAllArgs) => Promise<import("../../common/utils/async-result").AsyncResult<string, string>>, (req: import("../../common/kube-helpers/channels").KubectlDeleteAllArgs) => Promise<import("../../common/utils/async-result").AsyncResult<string, string>>, void>;
2
+ export default kubectlDeleteAllInjectable;
@@ -5,9 +5,10 @@
5
5
  import type { JoinPaths } from "../../common/path/join-paths.injectable";
6
6
  import type { GetDirnameOfPath } from "../../common/path/get-dirname.injectable";
7
7
  import type { GetBasenameOfPath } from "../../common/path/get-basename.injectable";
8
+ import type { NormalizedPlatform } from "../../common/vars/normalized-platform.injectable";
8
9
  export interface KubectlDependencies {
9
10
  readonly directoryForKubectlBinaries: string;
10
- readonly normalizedDownloadPlatform: "darwin" | "linux" | "windows";
11
+ readonly normalizedDownloadPlatform: NormalizedPlatform;
11
12
  readonly normalizedDownloadArch: "amd64" | "arm64" | "386";
12
13
  readonly kubectlBinaryName: string;
13
14
  readonly bundledKubectlBinaryPath: string;
@@ -0,0 +1,4 @@
1
+ import type { PrometheusProvider } from "./provider";
2
+ export type GetPrometheusProviderByKind = (kind: string) => PrometheusProvider;
3
+ declare const getPrometheusProviderByKindInjectable: import("@ogre-tools/injectable").Injectable<GetPrometheusProviderByKind, unknown, void>;
4
+ export default getPrometheusProviderByKindInjectable;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Copyright (c) OpenLens Authors. All rights reserved.
3
+ * Licensed under MIT License. See LICENSE in root directory for more information.
4
+ */
5
+ declare const helm14PrometheusProviderInjectable: import("@ogre-tools/injectable").Injectable<import("./provider").PrometheusProvider, import("./provider").PrometheusProvider, void>;
6
+ export default helm14PrometheusProviderInjectable;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Copyright (c) OpenLens Authors. All rights reserved.
3
+ * Licensed under MIT License. See LICENSE in root directory for more information.
4
+ */
5
+ import type { PrometheusProvider } from "./provider";
6
+ export declare const getHelmLikeQueryFor: ({ rateAccuracy }: {
7
+ rateAccuracy: string;
8
+ }) => PrometheusProvider["getQuery"];
9
+ declare const helmPrometheusProviderInjectable: import("@ogre-tools/injectable").Injectable<PrometheusProvider, PrometheusProvider, void>;
10
+ export default helmPrometheusProviderInjectable;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Copyright (c) OpenLens Authors. All rights reserved.
3
+ * Licensed under MIT License. See LICENSE in root directory for more information.
4
+ */
5
+ import type { PrometheusProvider } from "./provider";
6
+ export declare const getLensLikeQueryFor: ({ rateAccuracy }: {
7
+ rateAccuracy: string;
8
+ }) => PrometheusProvider["getQuery"];
9
+ declare const lensPrometheusProviderInjectable: import("@ogre-tools/injectable").Injectable<PrometheusProvider, PrometheusProvider, void>;
10
+ export default lensPrometheusProviderInjectable;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Copyright (c) OpenLens Authors. All rights reserved.
3
+ * Licensed under MIT License. See LICENSE in root directory for more information.
4
+ */
5
+ import type { PrometheusProvider } from "./provider";
6
+ export declare const getOperatorLikeQueryFor: ({ rateAccuracy }: {
7
+ rateAccuracy: string;
8
+ }) => PrometheusProvider["getQuery"];
9
+ declare const operatorPrometheusProviderInjectable: import("@ogre-tools/injectable").Injectable<PrometheusProvider, PrometheusProvider, void>;
10
+ export default operatorPrometheusProviderInjectable;
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Copyright (c) OpenLens Authors. All rights reserved.
3
+ * Licensed under MIT License. See LICENSE in root directory for more information.
4
+ */
5
+ import type { CoreV1Api } from "@kubernetes/client-node";
6
+ export interface PrometheusService extends PrometheusServiceInfo {
7
+ kind: string;
8
+ }
9
+ export interface PrometheusServiceInfo {
10
+ namespace: string;
11
+ service: string;
12
+ port: number;
13
+ }
14
+ export interface PrometheusProvider {
15
+ readonly kind: string;
16
+ readonly name: string;
17
+ readonly isConfigurable: boolean;
18
+ getQuery(opts: Record<string, string>, queryName: string): string;
19
+ getPrometheusService(client: CoreV1Api): Promise<PrometheusService>;
20
+ }
21
+ export interface CreatePrometheusProviderOpts {
22
+ readonly kind: string;
23
+ readonly name: string;
24
+ readonly isConfigurable: boolean;
25
+ getQuery(opts: Record<string, string>, queryName: string): string;
26
+ getService(client: CoreV1Api): Promise<PrometheusServiceInfo>;
27
+ }
28
+ export declare const createPrometheusProvider: ({ getService, ...opts }: CreatePrometheusProviderOpts) => PrometheusProvider;
29
+ export declare function findFirstNamespacedService(client: CoreV1Api, ...selectors: string[]): Promise<PrometheusServiceInfo>;
30
+ export declare function findNamespacedService(client: CoreV1Api, name: string, namespace: string): Promise<PrometheusServiceInfo>;
31
+ export interface BytesSentArgs {
32
+ rateAccuracy: string;
33
+ ingress: string;
34
+ namespace: string;
35
+ statuses: string;
36
+ }
37
+ export declare function bytesSent({ rateAccuracy, ingress, namespace, statuses }: BytesSentArgs): string;
38
+ export declare const prometheusProviderInjectionToken: import("@ogre-tools/injectable").InjectionToken<PrometheusProvider, void>;
@@ -0,0 +1,2 @@
1
+ declare const prometheusProvidersInjectable: import("@ogre-tools/injectable").Injectable<import("mobx").IComputedValue<import("./provider").PrometheusProvider[]>, unknown, void>;
2
+ export default prometheusProvidersInjectable;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Copyright (c) OpenLens Authors. All rights reserved.
3
+ * Licensed under MIT License. See LICENSE in root directory for more information.
4
+ */
5
+ import type { PrometheusProvider } from "./provider";
6
+ export declare const getStacklightLikeQueryFor: ({ rateAccuracy }: {
7
+ rateAccuracy: string;
8
+ }) => PrometheusProvider["getQuery"];
9
+ declare const stacklightPrometheusProviderInjectable: import("@ogre-tools/injectable").Injectable<PrometheusProvider, PrometheusProvider, void>;
10
+ export default stacklightPrometheusProviderInjectable;
@@ -10,6 +10,7 @@ import type { WriteFile } from "../../common/fs/write-file.injectable";
10
10
  import type { DeleteFile } from "../../common/fs/delete-file.injectable";
11
11
  import type { ExecFile } from "../../common/fs/exec-file.injectable";
12
12
  import type { JoinPaths } from "../../common/path/join-paths.injectable";
13
+ import type { AsyncResult } from "../../common/utils/async-result";
13
14
  export interface ResourceApplierDependencies {
14
15
  emitAppEvent: EmitAppEvent;
15
16
  writeFile: WriteFile;
@@ -30,10 +31,10 @@ export declare class ResourceApplier {
30
31
  * @param ns The optional namespace of the kube resource
31
32
  */
32
33
  patch(name: string, kind: string, patch: Patch, ns?: string): Promise<string>;
33
- create(resource: string): Promise<string>;
34
- protected kubectlApply(content: string): Promise<string>;
35
- kubectlApplyAll(resources: string[], extraArgs?: string[]): Promise<string>;
36
- kubectlDeleteAll(resources: string[], extraArgs?: string[]): Promise<string>;
37
- protected kubectlCmdAll(subCmd: string, resources: string[], parentArgs?: string[]): Promise<string>;
34
+ create(resource: string): Promise<AsyncResult<string, string>>;
35
+ protected kubectlApply(content: string): Promise<AsyncResult<string, string>>;
36
+ kubectlApplyAll(resources: string[], extraArgs?: string[]): Promise<AsyncResult<string, string>>;
37
+ kubectlDeleteAll(resources: string[], extraArgs?: string[]): Promise<AsyncResult<string, string>>;
38
+ protected kubectlCmdAll(subCmd: string, resources: string[], parentArgs?: string[]): Promise<AsyncResult<string, string>>;
38
39
  protected sanitizeObject(resource: string): string;
39
40
  }
@@ -1,2 +1,14 @@
1
- declare const createResourceRouteInjectable: import("@ogre-tools/injectable").Injectable<import("../../router/route").Route<string, "/api/stack">, import("../../router/route").Route<string, "/api/stack">, void>;
1
+ declare const createResourceRouteInjectable: import("@ogre-tools/injectable").Injectable<import("../../router/route").Route<{
2
+ callWasSuccessful: true;
3
+ response: string;
4
+ } | {
5
+ callWasSuccessful: false;
6
+ error: string;
7
+ }, "/api/stack">, import("../../router/route").Route<{
8
+ callWasSuccessful: true;
9
+ response: string;
10
+ } | {
11
+ callWasSuccessful: false;
12
+ error: string;
13
+ }, "/api/stack">, void>;
2
14
  export default createResourceRouteInjectable;
@@ -8,7 +8,7 @@ import type WebSocket from "ws";
8
8
  import type * as pty from "node-pty";
9
9
  import { type TerminalMessage } from "../../common/terminal/channels";
10
10
  import type { Logger } from "../../common/logger";
11
- import type { ComputeShellEnvironment } from "../utils/shell-env/compute-shell-environment.injectable";
11
+ import type { ComputeShellEnvironment } from "../../features/shell-sync/main/compute-shell-environment.injectable";
12
12
  import type { SpawnPty } from "./spawn-pty.injectable";
13
13
  import type { InitializableState } from "../../common/initializable-state/create";
14
14
  import type { EmitAppEvent } from "../../common/app-event-bus/emit-event.injectable";
@@ -1,3 +1,19 @@
1
- import type { ExtensionRegistrator } from "../../../../extensions/extension-loader/extension-registrator-injection-token";
2
- declare const customCategoryColumnsRegistratorInjectable: import("@ogre-tools/injectable").Injectable<ExtensionRegistrator, ExtensionRegistrator, void>;
1
+ /// <reference types="react" />
2
+ declare const customCategoryColumnsRegistratorInjectable: import("@ogre-tools/injectable").Injectable<(ext: import("../../../../extensions/lens-extension").LensExtension<import("../../../../extensions/lens-extension-set-dependencies").LensExtensionDependencies>) => import("@ogre-tools/injectable").Injectable<{
3
+ group: string;
4
+ kind: string;
5
+ registration: {
6
+ renderCell: (entity: import("../../../api/catalog-entity").CatalogEntity<import("../../../../common/catalog").CatalogEntityMetadata, import("../../../../common/catalog").CatalogEntityStatus, import("../../../../common/catalog").CatalogEntitySpec>) => import("react").ReactNode;
7
+ priority: number;
8
+ id: string;
9
+ titleProps: {
10
+ sortBy: string | undefined;
11
+ className?: string | undefined;
12
+ title: string;
13
+ id: string;
14
+ };
15
+ searchFilter: ((entity: import("../../../api/catalog-entity").CatalogEntity<import("../../../../common/catalog").CatalogEntityMetadata, import("../../../../common/catalog").CatalogEntityStatus, import("../../../../common/catalog").CatalogEntitySpec>) => string | string[]) | undefined;
16
+ sortCallback: ((entity: import("../../../api/catalog-entity").CatalogEntity<import("../../../../common/catalog").CatalogEntityMetadata, import("../../../../common/catalog").CatalogEntityStatus, import("../../../../common/catalog").CatalogEntitySpec>) => string | number | (string | number)[]) | undefined;
17
+ };
18
+ }, import("./custom-token").CustomCatalogCategoryRegistration, void>[], import("../../../../extensions/extension-loader/extension-registrator-injection-token").ExtensionRegistrator, void>;
3
19
  export default customCategoryColumnsRegistratorInjectable;
@@ -0,0 +1,21 @@
1
+ import type { CatalogEntity } from "../../api/catalog-entity";
2
+ import type { RegisteredEntitySetting } from "./extension-registrator.injectable";
3
+ export interface SettingTabs {
4
+ title: string;
5
+ id: string;
6
+ }
7
+ export interface SettingGroup {
8
+ title: string;
9
+ tabs: SettingTabs[];
10
+ }
11
+ export interface ActiveEntitySettingDetails {
12
+ tabId: string | undefined;
13
+ setting: RegisteredEntitySetting | undefined;
14
+ groups: SettingGroup[];
15
+ }
16
+ export interface ActiveEntitySettings {
17
+ get: () => ActiveEntitySettingDetails;
18
+ set: (tabId: string) => void;
19
+ }
20
+ declare const activeEntitySettingsTabInjectable: import("@ogre-tools/injectable").Injectable<ActiveEntitySettings, unknown, CatalogEntity<import("../../../common/catalog").CatalogEntityMetadata, import("../../../common/catalog").CatalogEntityStatus, import("../../../common/catalog").CatalogEntitySpec>>;
21
+ export default activeEntitySettingsTabInjectable;
@@ -0,0 +1,2 @@
1
+ declare const currentCatalogEntityForSettingsInjectable: import("@ogre-tools/injectable").Injectable<import("mobx").IComputedValue<import("../../api/catalog-entity").CatalogEntity<import("../../../common/catalog").CatalogEntityMetadata, import("../../../common/catalog").CatalogEntityStatus, import("../../../common/catalog").CatalogEntitySpec> | undefined>, unknown, void>;
2
+ export default currentCatalogEntityForSettingsInjectable;
@@ -3,4 +3,4 @@
3
3
  * Licensed under MIT License. See LICENSE in root directory for more information.
4
4
  */
5
5
  import React from "react";
6
- export declare const EntitySettings: React.FunctionComponent<{}>;
6
+ export declare const EntitySettingsRouteComponent: React.FunctionComponent<{}>;
@@ -0,0 +1,39 @@
1
+ /// <reference types="react" />
2
+ import type { CatalogEntity } from "../../api/catalog-entity";
3
+ export interface EntitySettingViewProps {
4
+ entity: CatalogEntity;
5
+ }
6
+ export interface EntitySettingComponents {
7
+ View: React.ComponentType<EntitySettingViewProps>;
8
+ }
9
+ export interface EntitySettingRegistration {
10
+ apiVersions: string[];
11
+ kind: string;
12
+ title: string;
13
+ components: EntitySettingComponents;
14
+ source?: string;
15
+ id?: string;
16
+ priority?: number;
17
+ group?: string;
18
+ }
19
+ export interface RegisteredEntitySetting {
20
+ id: string;
21
+ orderNumber: number;
22
+ apiVersions: Set<string>;
23
+ kind: string;
24
+ title: string;
25
+ components: EntitySettingComponents;
26
+ source?: string;
27
+ group: string;
28
+ }
29
+ declare const entitySettingExtensionRegistratorInjectable: import("@ogre-tools/injectable").Injectable<(ext: import("../../../extensions/lens-extension").LensExtension<import("../../../extensions/lens-extension-set-dependencies").LensExtensionDependencies>) => import("@ogre-tools/injectable").Injectable<{
30
+ apiVersions: Set<string>;
31
+ components: EntitySettingComponents;
32
+ id: string;
33
+ kind: string;
34
+ orderNumber: number;
35
+ title: string;
36
+ group: string;
37
+ source: string | undefined;
38
+ }, RegisteredEntitySetting, void>[], import("../../../extensions/extension-loader/extension-registrator-injection-token").ExtensionRegistrator, void>;
39
+ export default entitySettingExtensionRegistratorInjectable;
@@ -0,0 +1,4 @@
1
+ import type { CatalogEntity } from "../../api/catalog-entity";
2
+ export type HasCatalogEntitySettingItems = (entity: CatalogEntity) => boolean;
3
+ declare const hasCatalogEntitySettingItemsInjectable: import("@ogre-tools/injectable").Injectable<HasCatalogEntitySettingItems, unknown, void>;
4
+ export default hasCatalogEntitySettingItemsInjectable;
@@ -2,5 +2,4 @@
2
2
  * Copyright (c) OpenLens Authors. All rights reserved.
3
3
  * Licensed under MIT License. See LICENSE in root directory for more information.
4
4
  */
5
- import "../cluster-settings";
6
5
  export * from "./entity-settings";
@@ -0,0 +1,15 @@
1
+ import React from "react";
2
+ import type { EntitySettingViewProps } from "../extension-registrator.injectable";
3
+ declare const generalKubernetesClusterEntitySettingsInjectable: import("@ogre-tools/injectable").Injectable<{
4
+ apiVersions: Set<string>;
5
+ kind: string;
6
+ source: string;
7
+ title: string;
8
+ group: string;
9
+ id: string;
10
+ orderNumber: number;
11
+ components: {
12
+ View: React.FunctionComponent<EntitySettingViewProps>;
13
+ };
14
+ }, import("../extension-registrator.injectable").RegisteredEntitySetting, void>;
15
+ export default generalKubernetesClusterEntitySettingsInjectable;
@@ -0,0 +1,14 @@
1
+ import React from "react";
2
+ import type { EntitySettingViewProps } from "../extension-registrator.injectable";
3
+ declare const metricsKubernetesClusterEntitySettingsInjectable: import("@ogre-tools/injectable").Injectable<{
4
+ apiVersions: Set<string>;
5
+ kind: string;
6
+ title: string;
7
+ group: string;
8
+ id: string;
9
+ orderNumber: number;
10
+ components: {
11
+ View: React.FunctionComponent<EntitySettingViewProps>;
12
+ };
13
+ }, import("../extension-registrator.injectable").RegisteredEntitySetting, void>;
14
+ export default metricsKubernetesClusterEntitySettingsInjectable;
@@ -0,0 +1,14 @@
1
+ import React from "react";
2
+ import type { EntitySettingViewProps } from "../extension-registrator.injectable";
3
+ declare const namespaceKubernetesClusterEntitySettingsInjectable: import("@ogre-tools/injectable").Injectable<{
4
+ apiVersions: Set<string>;
5
+ kind: string;
6
+ title: string;
7
+ group: string;
8
+ id: string;
9
+ orderNumber: number;
10
+ components: {
11
+ View: React.FunctionComponent<EntitySettingViewProps>;
12
+ };
13
+ }, import("../extension-registrator.injectable").RegisteredEntitySetting, void>;
14
+ export default namespaceKubernetesClusterEntitySettingsInjectable;
@@ -0,0 +1,14 @@
1
+ import React from "react";
2
+ import type { EntitySettingViewProps } from "../extension-registrator.injectable";
3
+ declare const nodeShellKubernetesClusterEntitySettingsInjectable: import("@ogre-tools/injectable").Injectable<{
4
+ apiVersions: Set<string>;
5
+ kind: string;
6
+ title: string;
7
+ group: string;
8
+ id: string;
9
+ orderNumber: number;
10
+ components: {
11
+ View: React.FunctionComponent<EntitySettingViewProps>;
12
+ };
13
+ }, import("../extension-registrator.injectable").RegisteredEntitySetting, void>;
14
+ export default nodeShellKubernetesClusterEntitySettingsInjectable;
@@ -0,0 +1,14 @@
1
+ import React from "react";
2
+ import type { EntitySettingViewProps } from "../extension-registrator.injectable";
3
+ declare const proxyKubernetesClusterEntitySettingsInjectable: import("@ogre-tools/injectable").Injectable<{
4
+ apiVersions: Set<string>;
5
+ kind: string;
6
+ title: string;
7
+ group: string;
8
+ id: string;
9
+ orderNumber: number;
10
+ components: {
11
+ View: React.FunctionComponent<EntitySettingViewProps>;
12
+ };
13
+ }, import("../extension-registrator.injectable").RegisteredEntitySetting, void>;
14
+ export default proxyKubernetesClusterEntitySettingsInjectable;
@@ -0,0 +1,14 @@
1
+ import React from "react";
2
+ import type { EntitySettingViewProps } from "../extension-registrator.injectable";
3
+ declare const terminalKubernetesClusterEntitySettingsInjectable: import("@ogre-tools/injectable").Injectable<{
4
+ apiVersions: Set<string>;
5
+ kind: string;
6
+ title: string;
7
+ group: string;
8
+ id: string;
9
+ orderNumber: number;
10
+ components: {
11
+ View: React.FunctionComponent<EntitySettingViewProps>;
12
+ };
13
+ }, import("../extension-registrator.injectable").RegisteredEntitySetting, void>;
14
+ export default terminalKubernetesClusterEntitySettingsInjectable;
@@ -0,0 +1,3 @@
1
+ import type { CatalogEntity } from "../../api/catalog-entity";
2
+ declare const catalogEntitySettingItemsInjectable: import("@ogre-tools/injectable").Injectable<import("mobx").IComputedValue<import("./extension-registrator.injectable").RegisteredEntitySetting[]>, unknown, CatalogEntity<import("../../../common/catalog").CatalogEntityMetadata, import("../../../common/catalog").CatalogEntityStatus, import("../../../common/catalog").CatalogEntitySpec>>;
3
+ export default catalogEntitySettingItemsInjectable;