@k8slens/extensions 5.2.1-git.e251194cb5.0 → 5.2.1-git.e329ffd52c.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.
- package/dist/src/common/k8s-api/endpoints/resource-applier.api.d.ts +4 -4
- package/dist/src/common/k8s-api/kube-object.d.ts +14 -1
- package/dist/src/common/k8s-api/kube-object.store.d.ts +3 -0
- package/dist/src/common/routes/catalog.d.ts +2 -0
- package/dist/src/common/user-store/preferences-helpers.d.ts +1 -0
- package/dist/src/common/user-store/user-store.d.ts +1 -0
- package/dist/src/extensions/extension-api.js +2257 -439
- package/dist/src/extensions/registries/command-registry.d.ts +2 -2
- package/dist/src/main/{routes/utils/index.d.ts → __test__/lens-proxy.test.d.ts} +1 -1
- package/dist/src/main/context-handler.d.ts +1 -1
- package/dist/src/main/lens-proxy.d.ts +1 -0
- package/dist/src/main/resource-applier.d.ts +9 -0
- package/dist/src/main/routes/resource-applier-route.d.ts +1 -0
- package/dist/src/main/utils/http-responses.d.ts +20 -1
- package/dist/src/main/{routes/utils → utils}/parse-query.d.ts +0 -0
- package/dist/src/renderer/bootstrap.d.ts +1 -1
- package/dist/src/renderer/components/+add-cluster/add-cluster.d.ts +1 -1
- package/dist/src/renderer/components/+catalog/catalog.d.ts +1 -1
- package/dist/src/renderer/components/+entity-settings/entity-settings.d.ts +0 -1
- package/dist/src/renderer/components/activate-entity-command/activate-entity-command.d.ts +30 -0
- package/dist/src/renderer/components/activate-entity-command/index.d.ts +21 -0
- package/dist/src/renderer/components/app.d.ts +1 -1
- package/dist/src/renderer/components/dock/create-resource.d.ts +1 -1
- package/dist/src/renderer/components/dock/edit-resource.store.d.ts +2 -0
- package/dist/src/renderer/components/dock/terminal.d.ts +2 -0
- package/dist/src/renderer/components/input/input.d.ts +1 -1
- package/dist/src/renderer/components/menu/menu.d.ts +6 -0
- package/dist/src/renderer/lens-app.d.ts +1 -1
- package/package.json +4 -4
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
20
|
*/
|
|
21
21
|
import type { KubeJsonApiData } from "../kube-json-api";
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
import type { Patch } from "rfc6902";
|
|
23
|
+
export declare const annotations: string[];
|
|
24
|
+
export declare function update(resource: object | string): Promise<KubeJsonApiData>;
|
|
25
|
+
export declare function patch(name: string, kind: string, ns: string, patch: Patch): Promise<KubeJsonApiData>;
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
import type { KubeJsonApiData, KubeJsonApiDataList, KubeJsonApiListMetadata, KubeJsonApiMetadata } from "./kube-json-api";
|
|
22
22
|
import type { ItemObject } from "../item.store";
|
|
23
23
|
import type { JsonApiParams } from "./json-api";
|
|
24
|
+
import type { Patch } from "rfc6902";
|
|
24
25
|
export declare type KubeObjectConstructor<K extends KubeObject> = (new (data: KubeJsonApiData | any) => K) & {
|
|
25
26
|
kind?: string;
|
|
26
27
|
namespaced?: boolean;
|
|
@@ -96,7 +97,11 @@ export declare class KubeObject<Metadata extends KubeObjectMetadata = KubeObject
|
|
|
96
97
|
static stringifyLabels(labels?: {
|
|
97
98
|
[name: string]: string;
|
|
98
99
|
}): string[];
|
|
99
|
-
|
|
100
|
+
/**
|
|
101
|
+
* These must be RFC6902 compliant paths
|
|
102
|
+
*/
|
|
103
|
+
private static readonly nonEditiablePathPrefixes;
|
|
104
|
+
private static readonly nonEditablePaths;
|
|
100
105
|
constructor(data: KubeJsonApiData);
|
|
101
106
|
get selfLink(): string;
|
|
102
107
|
getId(): string;
|
|
@@ -119,6 +124,14 @@ export declare class KubeObject<Metadata extends KubeObjectMetadata = KubeObject
|
|
|
119
124
|
}[];
|
|
120
125
|
getSearchFields(): string[];
|
|
121
126
|
toPlainObject(): object;
|
|
127
|
+
patch(patch: Patch): Promise<KubeJsonApiData | null>;
|
|
128
|
+
/**
|
|
129
|
+
* Perform a full update (or more specifically a replace)
|
|
130
|
+
*
|
|
131
|
+
* Note: this is brittle if `data` is not actually partial (but instead whole).
|
|
132
|
+
* As fields such as `resourceVersion` will probably out of date. This is a
|
|
133
|
+
* common race condition.
|
|
134
|
+
*/
|
|
122
135
|
update(data: Partial<this>): Promise<KubeJsonApiData | null>;
|
|
123
136
|
delete(params?: JsonApiParams): Promise<KubeJsonApiData>;
|
|
124
137
|
}
|
|
@@ -25,6 +25,7 @@ import { ItemStore } from "../item.store";
|
|
|
25
25
|
import { IKubeApiQueryParams, KubeApi } from "./kube-api";
|
|
26
26
|
import type { KubeJsonApiData } from "./kube-json-api";
|
|
27
27
|
import type { RequestInit } from "node-fetch";
|
|
28
|
+
import type { Patch } from "rfc6902";
|
|
28
29
|
export interface KubeObjectStoreLoadingParams<K extends KubeObject> {
|
|
29
30
|
namespaces: string[];
|
|
30
31
|
api?: KubeApi<K>;
|
|
@@ -91,6 +92,8 @@ export declare abstract class KubeObjectStore<T extends KubeObject> extends Item
|
|
|
91
92
|
name: string;
|
|
92
93
|
namespace?: string;
|
|
93
94
|
}, data?: Partial<T>): Promise<T>;
|
|
95
|
+
private postUpdate;
|
|
96
|
+
patch(item: T, patch: Patch): Promise<T>;
|
|
94
97
|
update(item: T, data: Partial<T>): Promise<T>;
|
|
95
98
|
remove(item: T): Promise<void>;
|
|
96
99
|
removeSelectedItems(): Promise<void[]>;
|
|
@@ -24,4 +24,6 @@ export interface CatalogViewRouteParam {
|
|
|
24
24
|
kind?: string;
|
|
25
25
|
}
|
|
26
26
|
export declare const catalogRoute: RouteProps;
|
|
27
|
+
export declare const getPreviousTabUrl: (path: string) => string;
|
|
27
28
|
export declare const catalogURL: ({ params, query, fragment }?: import("../utils/buildUrl").URLParams<CatalogViewRouteParam, {}>) => string;
|
|
29
|
+
export declare const browseCatalogTab = "browse";
|
|
@@ -59,5 +59,6 @@ export declare const DESCRIPTORS: {
|
|
|
59
59
|
hiddenTableColumns: PreferenceDescription<[string, string[]][], Map<string, ObservableToggleSet<string>>>;
|
|
60
60
|
syncKubeconfigEntries: PreferenceDescription<KubeconfigSyncEntry[], Map<string, KubeconfigSyncValue>>;
|
|
61
61
|
editorConfiguration: PreferenceDescription<EditorConfiguration, EditorConfiguration>;
|
|
62
|
+
terminalCopyOnSelect: PreferenceDescription<boolean, boolean>;
|
|
62
63
|
};
|
|
63
64
|
export {};
|