@k8slens/extensions 6.3.0-git.892b105a6b.0 → 6.3.0-git.95cee3bcc8.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.
@@ -1,14 +1,10 @@
1
+ import type { AsyncResult } from "../../../utils/async-result";
1
2
  interface HelmReleaseUpdatePayload {
2
3
  repo: string;
3
4
  chart: string;
4
5
  version: string;
5
6
  values: string;
6
7
  }
7
- export type RequestHelmReleaseUpdate = (name: string, namespace: string, payload: HelmReleaseUpdatePayload) => Promise<{
8
- updateWasSuccessful: true;
9
- } | {
10
- updateWasSuccessful: false;
11
- error: unknown;
12
- }>;
8
+ export type RequestHelmReleaseUpdate = (name: string, namespace: string, payload: HelmReleaseUpdatePayload) => Promise<AsyncResult<void, unknown>>;
13
9
  declare const requestHelmReleaseUpdateInjectable: import("@ogre-tools/injectable").Injectable<RequestHelmReleaseUpdate, unknown, void>;
14
10
  export default requestHelmReleaseUpdateInjectable;
@@ -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<{
@@ -2,6 +2,7 @@ import type { IComputedValue } from "mobx";
2
2
  import type { SingleValue } from "react-select";
3
3
  import type { HelmChartVersion } from "../../+helm-charts/helm-charts/versions";
4
4
  import type { HelmRelease } from "../../../../common/k8s-api/endpoints/helm-releases.api";
5
+ import type { AsyncResult } from "../../../../common/utils/async-result";
5
6
  import type { SelectOption } from "../../select";
6
7
  export interface UpgradeChartModel {
7
8
  readonly release: HelmRelease;
@@ -16,10 +17,7 @@ export interface UpgradeChartModel {
16
17
  readonly value: IComputedValue<HelmChartVersion | undefined>;
17
18
  set: (value: SingleValue<SelectOption<HelmChartVersion>>) => void;
18
19
  };
19
- submit: () => Promise<UpgradeChartSubmitResult>;
20
- }
21
- export interface UpgradeChartSubmitResult {
22
- completedSuccessfully: boolean;
20
+ submit: () => Promise<AsyncResult<void, string>>;
23
21
  }
24
22
  declare const upgradeChartModelInjectable: import("@ogre-tools/injectable").Injectable<Promise<UpgradeChartModel>, unknown, Required<import("../dock/store").DockTabCreate>>;
25
23
  export default upgradeChartModelInjectable;
@@ -14,7 +14,7 @@ interface Dependencies {
14
14
  model: UpgradeChartModel;
15
15
  }
16
16
  export declare class NonInjectedUpgradeChart extends React.Component<UpgradeChartProps & Dependencies> {
17
- upgrade: () => Promise<JSX.Element | null>;
17
+ upgrade: () => Promise<JSX.Element>;
18
18
  render(): JSX.Element;
19
19
  }
20
20
  export declare const UpgradeChart: React.FunctionComponent<UpgradeChartProps>;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@k8slens/extensions",
3
3
  "productName": "OpenLens extensions",
4
4
  "description": "OpenLens - Open Source Kubernetes IDE: extensions",
5
- "version": "6.3.0-git.892b105a6b.0",
5
+ "version": "6.3.0-git.95cee3bcc8.0",
6
6
  "copyright": "© 2022 OpenLens Authors",
7
7
  "license": "MIT",
8
8
  "main": "dist/src/extensions/extension-api.js",