@k8slens/extensions 5.3.1-git.cfa21deece.0 → 5.3.1-git.d40071a9d5.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/catalog/catalog-entity.d.ts +51 -0
- package/dist/src/common/catalog-entities/kubernetes-cluster.d.ts +1 -2
- package/dist/src/common/catalog-entities/web-link.d.ts +0 -2
- package/dist/src/common/cluster-types.d.ts +5 -1
- package/dist/src/common/hotbar-store.d.ts +16 -11
- package/dist/src/common/hotbar-store.injectable.d.ts +4 -0
- package/dist/src/common/hotbar-types.d.ts +5 -2
- package/dist/src/{extensions/registries/welcome-menu-registry.d.ts → common/ipc/catalog.d.ts} +9 -7
- package/dist/src/common/ipc/extension-loader.ipc.d.ts +21 -0
- package/dist/src/common/ipc/index.d.ts +2 -0
- package/dist/src/common/k8s-api/endpoints/crd.api.d.ts +29 -28
- package/dist/src/common/k8s-api/endpoints/daemon-set.api.d.ts +2 -5
- package/dist/src/common/k8s-api/endpoints/deployment.api.d.ts +2 -5
- package/dist/src/common/k8s-api/endpoints/job.api.d.ts +2 -5
- package/dist/src/common/k8s-api/endpoints/network-policy.api.d.ts +72 -32
- package/dist/src/common/k8s-api/endpoints/persistent-volume-claims.api.d.ts +3 -16
- package/dist/src/common/k8s-api/endpoints/poddisruptionbudget.api.d.ts +2 -6
- package/dist/src/common/k8s-api/endpoints/replica-set.api.d.ts +2 -5
- package/dist/src/common/k8s-api/endpoints/stateful-set.api.d.ts +2 -5
- package/dist/src/common/k8s-api/kube-api-parse.d.ts +2 -2
- package/dist/src/common/k8s-api/kube-api.d.ts +35 -8
- package/dist/src/common/k8s-api/kube-json-api.d.ts +1 -2
- package/dist/src/common/k8s-api/kube-object.d.ts +22 -0
- package/dist/src/common/protocol-handler/error.d.ts +3 -3
- package/dist/src/common/protocol-handler/router.d.ts +13 -7
- package/dist/src/common/user-store/preferences-helpers.d.ts +14 -0
- package/dist/src/common/user-store/user-store.d.ts +2 -1
- package/dist/src/common/utils/index.d.ts +1 -0
- package/dist/src/common/utils/promise-exec.d.ts +1 -2
- package/dist/src/common/utils/readableStream.d.ts +2 -2
- package/dist/src/common/vars.d.ts +1 -0
- package/dist/src/extensions/{registries/command-registry.d.ts → as-legacy-globals-for-extension-api/as-legacy-global-function-for-extension-api.d.ts} +5 -16
- package/dist/src/extensions/as-legacy-globals-for-extension-api/as-legacy-global-object-for-extension-api.d.ts +24 -0
- package/dist/src/{renderer/utils/copyToClipboard.d.ts → extensions/as-legacy-globals-for-extension-api/as-legacy-global-singleton-for-extension-api.d.ts} +7 -6
- package/dist/src/extensions/as-legacy-globals-for-extension-api/legacy-global-di-for-extension-api.d.ts +23 -0
- package/dist/src/extensions/extension-api.js +1094 -1035
- package/dist/src/extensions/extension-compatibility.d.ts +3 -1
- package/dist/src/extensions/extension-discovery.d.ts +3 -1
- package/dist/src/extensions/{extension-loader.d.ts → extension-loader/extension-loader.d.ts} +15 -7
- package/dist/src/extensions/extension-loader/extension-loader.injectable.d.ts +4 -0
- package/dist/src/{main/initializers/registries.d.ts → extensions/extension-loader/index.d.ts} +1 -1
- package/dist/src/extensions/extensions.injectable.d.ts +3 -0
- package/dist/src/{renderer/components → extensions}/getDiForUnitTesting.d.ts +0 -0
- package/dist/src/extensions/lens-extension.d.ts +2 -1
- package/dist/src/extensions/lens-main-extension.d.ts +3 -1
- package/dist/src/extensions/lens-renderer-extension.d.ts +14 -7
- package/dist/src/extensions/main-extensions.injectable.d.ts +5 -0
- package/dist/src/extensions/registries/base-registry.d.ts +1 -1
- package/dist/src/extensions/registries/entity-setting-registry.d.ts +1 -1
- package/dist/src/extensions/registries/index.d.ts +0 -5
- package/dist/src/extensions/registries/status-bar-registry.d.ts +6 -0
- package/dist/src/extensions/renderer-api/components.d.ts +1 -1
- package/dist/src/extensions/renderer-api/k8s-api.d.ts +1 -0
- package/dist/src/extensions/renderer-extensions.injectable.d.ts +5 -0
- package/dist/src/main/catalog-pusher.d.ts +1 -1
- package/dist/src/main/cluster-manager.d.ts +1 -1
- package/dist/src/main/getDi.d.ts +22 -0
- package/dist/src/main/getDiForUnitTesting.d.ts +22 -0
- package/dist/src/main/helm/helm-release-manager.d.ts +9 -10
- package/dist/src/main/helm/helm-repo-manager.d.ts +2 -2
- package/dist/src/main/helm/helm-service.d.ts +2 -2
- package/dist/src/main/initializers/index.d.ts +0 -1
- package/dist/src/main/initializers/ipc.d.ts +3 -1
- package/dist/src/main/lens-proxy.d.ts +8 -1
- package/dist/src/main/menu/electron-menu-items.injectable.d.ts +3 -0
- package/dist/src/main/menu/electron-menu-items.test.d.ts +1 -0
- package/dist/src/main/menu/menu.d.ts +33 -0
- package/dist/src/main/protocol-handler/index.d.ts +1 -1
- package/dist/src/main/protocol-handler/{router.d.ts → lens-protocol-router-main/lens-protocol-router-main.d.ts} +14 -8
- package/dist/src/main/protocol-handler/lens-protocol-router-main/lens-protocol-router-main.injectable.d.ts +4 -0
- package/dist/src/main/routes/port-forward-route.d.ts +0 -1
- package/dist/src/main/tray/tray-menu-items.injectable.d.ts +3 -0
- package/dist/src/main/tray/tray-menu-items.test.d.ts +1 -0
- package/dist/src/main/tray/tray.d.ts +27 -0
- package/dist/src/main/window-manager.d.ts +3 -0
- package/dist/src/renderer/api/__tests__/catalog-entity-registry.test.d.ts +1 -1
- package/dist/src/renderer/api/catalog-entity-registry.d.ts +4 -0
- package/dist/src/renderer/api/catalog-entity.d.ts +1 -5
- package/dist/src/{main/catalog-sources → renderer/api}/helpers/general-active-sync.d.ts +0 -0
- package/dist/src/renderer/api/terminal-api.d.ts +0 -2
- package/dist/src/renderer/bootstrap.d.ts +3 -1
- package/dist/src/renderer/cluster-frame.d.ts +2 -1
- package/dist/src/renderer/components/+catalog/catalog-entity-details.d.ts +3 -3
- package/dist/src/renderer/components/+catalog/catalog-entity-drawer-menu.d.ts +1 -2
- package/dist/src/renderer/components/+catalog/catalog-entity.store.d.ts +4 -4
- package/dist/src/renderer/components/+catalog/catalog.d.ts +5 -6
- package/dist/src/renderer/components/{command-palette/command-overlay.d.ts → +catalog/helpers.d.ts} +5 -7
- package/dist/src/renderer/components/+custom-resources/custom-resources.injectable.d.ts +23 -0
- package/dist/src/renderer/components/{clipboard/clipboard.d.ts → +extensions/attempt-install/attempt-install.d.ts} +11 -16
- package/dist/src/renderer/components/+extensions/attempt-install/attempt-install.injectable.d.ts +3 -0
- package/dist/src/renderer/components/+extensions/attempt-install/create-temp-files-and-validate/create-temp-files-and-validate.d.ts +11 -0
- package/dist/src/renderer/components/+extensions/attempt-install/get-extension-dest-folder/get-extension-dest-folder.d.ts +1 -0
- package/dist/src/renderer/components/+extensions/attempt-install/unpack-extension/unpack-extension.d.ts +28 -0
- package/dist/src/renderer/components/+extensions/attempt-install/unpack-extension/unpack-extension.injectable.d.ts +3 -0
- package/dist/src/renderer/components/+extensions/attempt-install/validate-package/validate-package.d.ts +22 -0
- package/dist/src/renderer/components/+extensions/attempt-install-by-info/attempt-install-by-info.d.ts +13 -0
- package/dist/src/renderer/components/+extensions/attempt-install-by-info/attempt-install-by-info.injectable.d.ts +3 -0
- package/dist/src/renderer/components/+extensions/attempt-installs/attempt-installs.d.ts +6 -0
- package/dist/src/renderer/components/+extensions/attempt-installs/attempt-installs.injectable.d.ts +3 -0
- package/dist/src/renderer/components/+extensions/confirm-uninstall-extension/confirm-uninstall-extension.d.ts +7 -0
- package/dist/src/renderer/components/+extensions/confirm-uninstall-extension/confirm-uninstall-extension.injectable.d.ts +3 -0
- package/dist/src/renderer/components/+extensions/disable-extension/disable-extension.d.ts +27 -0
- package/dist/src/renderer/components/+extensions/disable-extension/disable-extension.injectable.d.ts +3 -0
- package/dist/src/renderer/components/+extensions/enable-extension/enable-extension.d.ts +27 -0
- package/dist/src/renderer/components/+extensions/enable-extension/enable-extension.injectable.d.ts +3 -0
- package/dist/src/renderer/components/+extensions/extensions.d.ts +1 -15
- package/dist/src/{extensions/registries/menu-registry.d.ts → renderer/components/+extensions/get-base-registry-url/get-base-registry-url.d.ts} +5 -6
- package/dist/src/renderer/components/+extensions/get-base-registry-url/get-base-registry-url.injectable.d.ts +23 -0
- package/dist/src/renderer/components/+extensions/get-message-from-error/get-message-from-error.d.ts +21 -0
- package/dist/src/renderer/components/+extensions/install-from-input/install-from-input.d.ts +29 -0
- package/dist/src/renderer/components/+extensions/install-from-input/install-from-input.injectable.d.ts +3 -0
- package/dist/src/renderer/components/+extensions/install-from-select-file-dialog/install-from-select-file-dialog.d.ts +5 -0
- package/dist/src/renderer/components/+extensions/install-from-select-file-dialog/install-from-select-file-dialog.injectable.d.ts +3 -0
- package/dist/src/renderer/components/+extensions/install-on-drop/install-on-drop.d.ts +5 -0
- package/dist/src/renderer/components/+extensions/install-on-drop/install-on-drop.injectable.d.ts +3 -0
- package/dist/src/renderer/components/+extensions/read-file-notify/read-file-notify.d.ts +2 -0
- package/dist/src/renderer/components/+extensions/supported-extension-formats.d.ts +21 -0
- package/dist/src/renderer/components/+extensions/uninstall-extension/uninstall-extension.d.ts +27 -0
- package/dist/src/renderer/components/+extensions/uninstall-extension/uninstall-extension.injectable.d.ts +3 -0
- package/dist/src/renderer/components/+extensions/user-extensions/user-extensions.injectable.d.ts +3 -0
- package/dist/src/renderer/{initializers/command-registry.d.ts → components/+network-policies/__tests__/network-policy-details.test.d.ts} +1 -1
- package/dist/src/renderer/components/+network-policies/network-policy-details.d.ts +8 -4
- package/dist/src/renderer/components/+network-port-forwards/port-forward-menu.d.ts +2 -0
- package/dist/src/renderer/components/+network-services/service-port-component.d.ts +1 -0
- package/dist/src/renderer/components/+preferences/extension-settings.d.ts +7 -0
- package/dist/src/renderer/components/+preferences/preferences.d.ts +0 -2
- package/dist/src/renderer/components/+welcome/welcome-banner-items/welcome-banner-items.injectable.d.ts +3 -0
- package/dist/src/renderer/components/+welcome/welcome-menu-items/get-welcome-menu-items.d.ts +27 -0
- package/dist/src/renderer/components/+welcome/welcome-menu-items/welcome-menu-items.injectable.d.ts +3 -0
- package/dist/src/renderer/components/+welcome/welcome.d.ts +1 -3
- package/dist/src/renderer/components/+workloads-pods/pod-container-port.d.ts +1 -0
- package/dist/src/renderer/components/activate-entity-command/activate-entity-command.d.ts +1 -9
- package/dist/src/renderer/components/{layout/__tests__/topbar.test.d.ts → avatar/__tests__/avatar.test.d.ts} +0 -0
- package/dist/src/renderer/components/avatar/avatar.d.ts +7 -8
- package/dist/src/renderer/components/{clipboard → avatar}/index.d.ts +1 -1
- package/dist/src/renderer/components/catalog-entities/weblink-add-command.d.ts +1 -11
- package/dist/src/renderer/components/checkbox/checkbox.d.ts +0 -1
- package/dist/src/renderer/components/cluster-manager/active-hotbar-name.d.ts +22 -0
- package/dist/src/renderer/components/cluster-manager/bottom-bar.d.ts +0 -1
- package/dist/src/renderer/components/command-palette/command-container.d.ts +1 -7
- package/dist/src/renderer/components/command-palette/command-dialog.d.ts +1 -13
- package/dist/src/renderer/components/command-palette/command-overlay.injectable.d.ts +31 -0
- package/dist/src/renderer/components/command-palette/index.d.ts +1 -1
- package/dist/src/renderer/components/command-palette/registered-commands/internal-commands.injectable.d.ts +25 -0
- package/dist/src/renderer/components/command-palette/registered-commands/registered-commands.injectable.d.ts +25 -0
- package/dist/src/renderer/components/dialog/dialog.d.ts +1 -0
- package/dist/src/renderer/components/dock/install-chart.d.ts +0 -1
- package/dist/src/renderer/components/dock/terminal.d.ts +1 -1
- package/dist/src/renderer/components/hotbar/hotbar-add-command.d.ts +1 -6
- package/dist/src/renderer/components/hotbar/hotbar-entity-icon.d.ts +3 -3
- package/dist/src/renderer/components/hotbar/hotbar-icon.d.ts +3 -10
- package/dist/src/renderer/components/hotbar/hotbar-menu.d.ts +1 -1
- package/dist/src/renderer/components/hotbar/hotbar-remove-command.d.ts +1 -9
- package/dist/src/renderer/components/hotbar/hotbar-rename-command.d.ts +1 -14
- package/dist/src/renderer/components/hotbar/hotbar-selector.d.ts +3 -3
- package/dist/src/renderer/components/hotbar/hotbar-switch-command.d.ts +1 -12
- package/dist/src/renderer/components/input/input.d.ts +1 -0
- package/dist/src/renderer/components/input/validators/unique-hotbar-name.injectable.d.ts +24 -0
- package/dist/src/renderer/components/kube-object-menu/dependencies/api-manager.injectable.d.ts +3 -0
- package/dist/src/{main/tray.d.ts → renderer/components/kube-object-menu/dependencies/cluster-name.injectable.d.ts} +3 -5
- package/dist/src/renderer/components/kube-object-menu/dependencies/cluster.injectable.d.ts +3 -0
- package/dist/src/renderer/components/kube-object-menu/dependencies/edit-resource-tab.injectable.d.ts +24 -0
- package/dist/src/renderer/components/kube-object-menu/dependencies/hide-details.injectable.d.ts +24 -0
- package/dist/src/renderer/components/kube-object-menu/dependencies/kube-object-menu-items/get-kube-object-menu-items.d.ts +26 -0
- package/dist/src/renderer/components/kube-object-menu/dependencies/kube-object-menu-items/kube-object-menu-items.injectable.d.ts +9 -0
- package/dist/src/renderer/components/kube-object-menu/dependencies/kube-object-menu-items/kube-object-menu-registry.injectable.d.ts +24 -0
- package/dist/src/renderer/components/kube-object-menu/index.d.ts +2 -1
- package/dist/src/renderer/components/kube-object-menu/kube-object-menu.d.ts +4 -13
- package/dist/src/renderer/components/kube-object-menu/kube-object-menu.test.d.ts +21 -0
- package/dist/src/renderer/components/kubeconfig-dialog/kubeconfig-dialog.d.ts +0 -1
- package/dist/src/renderer/components/layout/{topbar.d.ts → close-button.d.ts} +3 -3
- package/dist/src/renderer/components/layout/top-bar/top-bar-items/top-bar-items.injectable.d.ts +3 -0
- package/dist/src/renderer/components/layout/top-bar/top-bar-win-linux.test.d.ts +21 -0
- package/dist/src/renderer/components/layout/top-bar/top-bar.d.ts +22 -0
- package/dist/src/renderer/components/layout/top-bar/top-bar.test.d.ts +21 -0
- package/dist/src/renderer/components/menu/menu-actions.d.ts +1 -1
- package/dist/src/renderer/components/monaco-editor/monaco-editor.d.ts +1 -1
- package/dist/src/renderer/components/switch/__tests__/switch.test.d.ts +21 -0
- package/dist/src/renderer/components/switch/form-switcher.d.ts +3 -0
- package/dist/src/renderer/components/switch/index.d.ts +1 -0
- package/dist/src/{extensions/registries/topbar-registry.d.ts → renderer/components/switch/switch.d.ts} +4 -9
- package/dist/src/renderer/components/switch/switcher.d.ts +4 -1
- package/dist/src/renderer/components/test-utils/renderFor.d.ts +27 -0
- package/dist/src/renderer/{components/hotbar/hotbar-display-label.d.ts → getDi.d.ts} +2 -2
- package/dist/src/renderer/{components/getDi.d.ts → getDiForUnitTesting.d.ts} +2 -2
- package/dist/src/renderer/initializers/catalog.d.ts +6 -1
- package/dist/src/renderer/initializers/index.d.ts +1 -2
- package/dist/src/renderer/initializers/ipc.d.ts +2 -1
- package/dist/src/renderer/initializers/status-bar-registry.d.ts +21 -0
- package/dist/src/renderer/navigation/helpers.d.ts +1 -1
- package/dist/src/renderer/port-forward/port-forward-dialog.d.ts +1 -1
- package/dist/src/renderer/port-forward/port-forward-item.d.ts +4 -4
- package/dist/src/renderer/port-forward/port-forward-notify.d.ts +1 -0
- package/dist/src/renderer/port-forward/port-forward.store.d.ts +56 -6
- package/dist/src/{main/menu.d.ts → renderer/protocol-handler/bind-protocol-add-route-handlers/bind-protocol-add-route-handlers.d.ts} +8 -6
- package/dist/src/renderer/protocol-handler/bind-protocol-add-route-handlers/bind-protocol-add-route-handlers.injectable.d.ts +3 -0
- package/dist/src/renderer/protocol-handler/index.d.ts +2 -2
- package/dist/src/renderer/protocol-handler/{router.d.ts → lens-protocol-router-renderer/lens-protocol-router-renderer.d.ts} +8 -1
- package/dist/src/renderer/protocol-handler/lens-protocol-router-renderer/lens-protocol-router-renderer.injectable.d.ts +4 -0
- package/dist/src/renderer/root-frame.d.ts +3 -1
- package/dist/src/renderer/theme.store.d.ts +0 -1
- package/dist/src/renderer/utils/index.d.ts +0 -1
- package/dist/src/{extensions/registries/welcome-banner-registry.d.ts → renderer/window/event-listener.injectable.d.ts} +5 -18
- package/package.json +1 -1
- package/dist/src/renderer/initializers/welcome-menu-registry.d.ts +0 -21
- package/dist/src/renderer/protocol-handler/app-handlers.d.ts +0 -21
|
@@ -26,13 +26,42 @@ declare type ExtractEntityStatusType<Entity> = Entity extends CatalogEntity<any,
|
|
|
26
26
|
declare type ExtractEntitySpecType<Entity> = Entity extends CatalogEntity<any, any, infer Spec> ? Spec : never;
|
|
27
27
|
export declare type CatalogEntityConstructor<Entity extends CatalogEntity> = ((new (data: CatalogEntityData<ExtractEntityMetadataType<Entity>, ExtractEntityStatusType<Entity>, ExtractEntitySpecType<Entity>>) => Entity));
|
|
28
28
|
export interface CatalogCategoryVersion<Entity extends CatalogEntity> {
|
|
29
|
+
/**
|
|
30
|
+
* The specific version that the associated constructor is for. This MUST be
|
|
31
|
+
* a DNS label and SHOULD be of the form `vN`, `vNalphaY`, or `vNbetaY` where
|
|
32
|
+
* `N` and `Y` are both integers greater than 0.
|
|
33
|
+
*
|
|
34
|
+
* Examples: The following are valid values for this field.
|
|
35
|
+
* - `v1`
|
|
36
|
+
* - `v1beta1`
|
|
37
|
+
* - `v1alpha2`
|
|
38
|
+
* - `v3beta2`
|
|
39
|
+
*/
|
|
29
40
|
name: string;
|
|
41
|
+
/**
|
|
42
|
+
* The constructor for the entities.
|
|
43
|
+
*/
|
|
30
44
|
entityClass: CatalogEntityConstructor<Entity>;
|
|
31
45
|
}
|
|
32
46
|
export interface CatalogCategorySpec {
|
|
47
|
+
/**
|
|
48
|
+
* The grouping for for the category. This MUST be a DNS label.
|
|
49
|
+
*/
|
|
33
50
|
group: string;
|
|
51
|
+
/**
|
|
52
|
+
* The specific versions of the constructors.
|
|
53
|
+
*
|
|
54
|
+
* NOTE: the field `.apiVersion` after construction MUST match `{.group}/{.versions.[] | .name}`.
|
|
55
|
+
* For example, if `group = "entity.k8slens.dev"` and there is an entry in `.versions` with
|
|
56
|
+
* `name = "v1alpha1"` then the resulting `.apiVersion` MUST be `entity.k8slens.dev/v1alpha1`
|
|
57
|
+
*/
|
|
34
58
|
versions: CatalogCategoryVersion<CatalogEntity>[];
|
|
35
59
|
names: {
|
|
60
|
+
/**
|
|
61
|
+
* The kind of entity that this category is for. This value MUST be a DNS
|
|
62
|
+
* label and MUST be equal to the `kind` fields that are produced by the
|
|
63
|
+
* `.versions.[] | .entityClass` fields.
|
|
64
|
+
*/
|
|
36
65
|
kind: string;
|
|
37
66
|
};
|
|
38
67
|
}
|
|
@@ -76,6 +105,7 @@ export declare abstract class CatalogCategory extends CatalogCategory_base {
|
|
|
76
105
|
export interface CatalogEntityMetadata {
|
|
77
106
|
uid: string;
|
|
78
107
|
name: string;
|
|
108
|
+
shortName?: string;
|
|
79
109
|
description?: string;
|
|
80
110
|
source?: string;
|
|
81
111
|
labels: Record<string, string>;
|
|
@@ -151,14 +181,35 @@ export interface CatalogEntityKindData {
|
|
|
151
181
|
readonly kind: string;
|
|
152
182
|
}
|
|
153
183
|
export declare abstract class CatalogEntity<Metadata extends CatalogEntityMetadata = CatalogEntityMetadata, Status extends CatalogEntityStatus = CatalogEntityStatus, Spec extends CatalogEntitySpec = CatalogEntitySpec> implements CatalogEntityKindData {
|
|
184
|
+
/**
|
|
185
|
+
* The group and version of this class.
|
|
186
|
+
*/
|
|
154
187
|
abstract readonly apiVersion: string;
|
|
188
|
+
/**
|
|
189
|
+
* A DNS label name of the entity.
|
|
190
|
+
*/
|
|
155
191
|
abstract readonly kind: string;
|
|
156
192
|
metadata: Metadata;
|
|
157
193
|
status: Status;
|
|
158
194
|
spec: Spec;
|
|
159
195
|
constructor(data: CatalogEntityData<Metadata, Status, Spec>);
|
|
196
|
+
/**
|
|
197
|
+
* Get the UID of this entity
|
|
198
|
+
*/
|
|
160
199
|
getId(): string;
|
|
200
|
+
/**
|
|
201
|
+
* Get the name of this entity
|
|
202
|
+
*/
|
|
161
203
|
getName(): string;
|
|
204
|
+
/**
|
|
205
|
+
* Get the specified source of this entity, defaulting to `"unknown"` if not
|
|
206
|
+
* provided
|
|
207
|
+
*/
|
|
208
|
+
getSource(): string;
|
|
209
|
+
/**
|
|
210
|
+
* Get if this entity is enabled.
|
|
211
|
+
*/
|
|
212
|
+
isEnabled(): boolean;
|
|
162
213
|
abstract onRun?(context: CatalogEntityActionContext): void | Promise<void>;
|
|
163
214
|
abstract onContextMenuOpen(context: CatalogEntityContextMenuContext): void | Promise<void>;
|
|
164
215
|
abstract onSettingsOpen(context: CatalogEntitySettingsContext): void | Promise<void>;
|
|
@@ -18,8 +18,7 @@
|
|
|
18
18
|
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
19
19
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
20
|
*/
|
|
21
|
-
import { CatalogEntity, CatalogEntityActionContext, CatalogEntityContextMenuContext, CatalogEntityMetadata, CatalogEntityStatus } from "../catalog";
|
|
22
|
-
import { CatalogCategory, CatalogCategorySpec } from "../catalog";
|
|
21
|
+
import { CatalogEntity, CatalogEntityActionContext, CatalogEntityContextMenuContext, CatalogEntityMetadata, CatalogEntityStatus, CatalogCategory, CatalogCategorySpec } from "../catalog";
|
|
23
22
|
import type { CatalogEntitySpec } from "../catalog/catalog-entity";
|
|
24
23
|
export interface KubernetesClusterPrometheusMetrics {
|
|
25
24
|
address?: {
|
|
@@ -76,7 +76,11 @@ export interface ClusterPreferences extends ClusterPrometheusPreferences {
|
|
|
76
76
|
terminalCWD?: string;
|
|
77
77
|
clusterName?: string;
|
|
78
78
|
iconOrder?: number;
|
|
79
|
-
|
|
79
|
+
/**
|
|
80
|
+
* The <img> src for the cluster. If set to `null` that means that it was
|
|
81
|
+
* cleared by preferences.
|
|
82
|
+
*/
|
|
83
|
+
icon?: string | null;
|
|
80
84
|
httpsProxy?: string;
|
|
81
85
|
hiddenMetrics?: string[];
|
|
82
86
|
nodeShellImage?: string;
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
*/
|
|
21
21
|
import { BaseStore } from "./base-store";
|
|
22
22
|
import { CatalogEntity } from "./catalog";
|
|
23
|
-
import { Hotbar,
|
|
23
|
+
import { Hotbar, CreateHotbarData, CreateHotbarOptions } from "./hotbar-types";
|
|
24
24
|
export interface HotbarStoreModel {
|
|
25
25
|
hotbars: Hotbar[];
|
|
26
26
|
activeHotbarId: string;
|
|
@@ -31,19 +31,22 @@ export declare class HotbarStore extends BaseStore<HotbarStoreModel> {
|
|
|
31
31
|
private _activeHotbarId;
|
|
32
32
|
constructor();
|
|
33
33
|
get activeHotbarId(): string;
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
/**
|
|
35
|
+
* If `hotbar` points to a known hotbar, make it active. Otherwise, ignore
|
|
36
|
+
* @param hotbar The hotbar instance, or the index, or its ID
|
|
37
|
+
*/
|
|
38
|
+
setActiveHotbar(hotbar: Hotbar | number | string): void;
|
|
39
|
+
private hotbarIndexById;
|
|
40
|
+
private hotbarIndex;
|
|
36
41
|
get activeHotbarIndex(): number;
|
|
37
42
|
protected fromStore(data?: Partial<HotbarStoreModel>): void;
|
|
38
43
|
toJSON(): HotbarStoreModel;
|
|
39
|
-
getActive(): Required<
|
|
40
|
-
getByName(name: string): Required<
|
|
41
|
-
getById(id: string): Required<
|
|
42
|
-
add(data:
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
setHotbarName(id: string, name: string): void;
|
|
46
|
-
remove(hotbar: Hotbar): void;
|
|
44
|
+
getActive(): Required<CreateHotbarData>;
|
|
45
|
+
getByName(name: string): Required<CreateHotbarData>;
|
|
46
|
+
getById(id: string): Required<CreateHotbarData>;
|
|
47
|
+
add: (data: CreateHotbarData, { setActive }?: CreateHotbarOptions) => void;
|
|
48
|
+
setHotbarName: (id: string, name: string) => any;
|
|
49
|
+
remove: (hotbar: Hotbar) => void;
|
|
47
50
|
addToHotbar(item: CatalogEntity, cellIndex?: number): void;
|
|
48
51
|
removeFromHotbar(uid: string): void;
|
|
49
52
|
/**
|
|
@@ -61,4 +64,6 @@ export declare class HotbarStore extends BaseStore<HotbarStoreModel> {
|
|
|
61
64
|
* @returns boolean
|
|
62
65
|
*/
|
|
63
66
|
isAddedToActive(entity: CatalogEntity): boolean;
|
|
67
|
+
getDisplayLabel(hotbar: Hotbar): string;
|
|
68
|
+
getDisplayIndex(hotbar: Hotbar): string;
|
|
64
69
|
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="@ogre-tools/injectable" />
|
|
2
|
+
import { HotbarStore } from "./hotbar-store";
|
|
3
|
+
declare const hotbarManagerInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<HotbarStore, unknown>, HotbarStore, unknown>;
|
|
4
|
+
export default hotbarManagerInjectable;
|
|
@@ -29,11 +29,14 @@ export interface HotbarItem {
|
|
|
29
29
|
[key: string]: string;
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
export declare type Hotbar = Required<
|
|
33
|
-
export interface
|
|
32
|
+
export declare type Hotbar = Required<CreateHotbarData>;
|
|
33
|
+
export interface CreateHotbarData {
|
|
34
34
|
id?: string;
|
|
35
35
|
name: string;
|
|
36
36
|
items?: Tuple<HotbarItem | null, typeof defaultHotbarCells>;
|
|
37
37
|
}
|
|
38
|
+
export interface CreateHotbarOptions {
|
|
39
|
+
setActive?: boolean;
|
|
40
|
+
}
|
|
38
41
|
export declare const defaultHotbarCells = 12;
|
|
39
42
|
export declare function getEmptyHotbar(name: string, id?: string): Hotbar;
|
package/dist/src/{extensions/registries/welcome-menu-registry.d.ts → common/ipc/catalog.d.ts}
RENAMED
|
@@ -18,11 +18,13 @@
|
|
|
18
18
|
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
19
19
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
20
|
*/
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
21
|
+
export declare enum CatalogIpcEvents {
|
|
22
|
+
/**
|
|
23
|
+
* This is broadcast on whenever there is an update to any catalog item
|
|
24
|
+
*/
|
|
25
|
+
ITEMS = "catalog:items",
|
|
26
|
+
/**
|
|
27
|
+
* This can be sent from renderer to main to initialize a broadcast of ITEMS
|
|
28
|
+
*/
|
|
29
|
+
INIT = "catalog:init"
|
|
28
30
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2021 OpenLens Authors
|
|
3
|
+
*
|
|
4
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
5
|
+
* this software and associated documentation files (the "Software"), to deal in
|
|
6
|
+
* the Software without restriction, including without limitation the rights to
|
|
7
|
+
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
8
|
+
* the Software, and to permit persons to whom the Software is furnished to do so,
|
|
9
|
+
* subject to the following conditions:
|
|
10
|
+
*
|
|
11
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
12
|
+
* copies or substantial portions of the Software.
|
|
13
|
+
*
|
|
14
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
16
|
+
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
17
|
+
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
18
|
+
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
19
|
+
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
|
+
*/
|
|
21
|
+
export declare const BundledExtensionsLoaded = "extension-loader:bundled-extensions-loaded";
|
|
@@ -19,9 +19,11 @@
|
|
|
19
19
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
20
|
*/
|
|
21
21
|
export declare const dialogShowOpenDialogHandler = "dialog:show-open-dialog";
|
|
22
|
+
export declare const catalogEntityRunListener = "catalog-entity:run";
|
|
22
23
|
export * from "./ipc";
|
|
23
24
|
export * from "./invalid-kubeconfig";
|
|
24
25
|
export * from "./update-available.ipc";
|
|
25
26
|
export * from "./cluster.ipc";
|
|
26
27
|
export * from "./type-enforced-ipc";
|
|
27
28
|
export * from "./hotbar";
|
|
29
|
+
export * from "./extension-loader.ipc";
|
|
@@ -40,34 +40,35 @@ export interface CRDVersion {
|
|
|
40
40
|
schema?: object;
|
|
41
41
|
additionalPrinterColumns?: AdditionalPrinterColumnsV1[];
|
|
42
42
|
}
|
|
43
|
-
export interface
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
listKind: string;
|
|
55
|
-
};
|
|
56
|
-
scope: "Namespaced" | "Cluster" | string;
|
|
57
|
-
/**
|
|
58
|
-
* @deprecated for apiextensions.k8s.io/v1 but used previously
|
|
59
|
-
*/
|
|
60
|
-
validation?: object;
|
|
61
|
-
versions?: CRDVersion[];
|
|
62
|
-
conversion: {
|
|
63
|
-
strategy?: string;
|
|
64
|
-
webhook?: any;
|
|
65
|
-
};
|
|
66
|
-
/**
|
|
67
|
-
* @deprecated for apiextensions.k8s.io/v1 but used previously
|
|
68
|
-
*/
|
|
69
|
-
additionalPrinterColumns?: AdditionalPrinterColumnsV1Beta[];
|
|
43
|
+
export interface CustomResourceDefinitionSpec {
|
|
44
|
+
group: string;
|
|
45
|
+
/**
|
|
46
|
+
* @deprecated for apiextensions.k8s.io/v1 but used in v1beta1
|
|
47
|
+
*/
|
|
48
|
+
version?: string;
|
|
49
|
+
names: {
|
|
50
|
+
plural: string;
|
|
51
|
+
singular: string;
|
|
52
|
+
kind: string;
|
|
53
|
+
listKind: string;
|
|
70
54
|
};
|
|
55
|
+
scope: "Namespaced" | "Cluster";
|
|
56
|
+
/**
|
|
57
|
+
* @deprecated for apiextensions.k8s.io/v1 but used in v1beta1
|
|
58
|
+
*/
|
|
59
|
+
validation?: object;
|
|
60
|
+
versions?: CRDVersion[];
|
|
61
|
+
conversion: {
|
|
62
|
+
strategy?: string;
|
|
63
|
+
webhook?: any;
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* @deprecated for apiextensions.k8s.io/v1 but used in v1beta1
|
|
67
|
+
*/
|
|
68
|
+
additionalPrinterColumns?: AdditionalPrinterColumnsV1Beta[];
|
|
69
|
+
}
|
|
70
|
+
export interface CustomResourceDefinition {
|
|
71
|
+
spec: CustomResourceDefinitionSpec;
|
|
71
72
|
status: {
|
|
72
73
|
conditions: {
|
|
73
74
|
lastTransitionTime: string;
|
|
@@ -100,7 +101,7 @@ export declare class CustomResourceDefinition extends KubeObject {
|
|
|
100
101
|
getResourceKind(): string;
|
|
101
102
|
getResourceTitle(): string;
|
|
102
103
|
getGroup(): string;
|
|
103
|
-
getScope():
|
|
104
|
+
getScope(): "Namespaced" | "Cluster";
|
|
104
105
|
getPreferedVersion(): CRDVersion;
|
|
105
106
|
getVersion(): string;
|
|
106
107
|
isNamespaced(): boolean;
|
|
@@ -22,17 +22,14 @@ import { IAffinity, WorkloadKubeObject } from "../workload-kube-object";
|
|
|
22
22
|
import { KubeApi } from "../kube-api";
|
|
23
23
|
import type { KubeJsonApiData } from "../kube-json-api";
|
|
24
24
|
import type { IPodContainer, IPodMetrics } from "./pods.api";
|
|
25
|
+
import type { LabelSelector } from "../kube-object";
|
|
25
26
|
export declare class DaemonSet extends WorkloadKubeObject {
|
|
26
27
|
static kind: string;
|
|
27
28
|
static namespaced: boolean;
|
|
28
29
|
static apiBase: string;
|
|
29
30
|
constructor(data: KubeJsonApiData);
|
|
30
31
|
spec: {
|
|
31
|
-
selector:
|
|
32
|
-
matchLabels: {
|
|
33
|
-
[name: string]: string;
|
|
34
|
-
};
|
|
35
|
-
};
|
|
32
|
+
selector: LabelSelector;
|
|
36
33
|
template: {
|
|
37
34
|
metadata: {
|
|
38
35
|
creationTimestamp?: string;
|
|
@@ -22,6 +22,7 @@ import { IAffinity, WorkloadKubeObject } from "../workload-kube-object";
|
|
|
22
22
|
import { KubeApi } from "../kube-api";
|
|
23
23
|
import type { IPodMetrics } from "./pods.api";
|
|
24
24
|
import type { KubeJsonApiData } from "../kube-json-api";
|
|
25
|
+
import type { LabelSelector } from "../kube-object";
|
|
25
26
|
export declare class DeploymentApi extends KubeApi<Deployment> {
|
|
26
27
|
protected getScaleApiUrl(params: {
|
|
27
28
|
namespace: string;
|
|
@@ -67,11 +68,7 @@ export declare class Deployment extends WorkloadKubeObject {
|
|
|
67
68
|
constructor(data: KubeJsonApiData);
|
|
68
69
|
spec: {
|
|
69
70
|
replicas: number;
|
|
70
|
-
selector:
|
|
71
|
-
matchLabels: {
|
|
72
|
-
[app: string]: string;
|
|
73
|
-
};
|
|
74
|
-
};
|
|
71
|
+
selector: LabelSelector;
|
|
75
72
|
template: {
|
|
76
73
|
metadata: {
|
|
77
74
|
creationTimestamp?: string;
|
|
@@ -22,6 +22,7 @@ import { IAffinity, WorkloadKubeObject } from "../workload-kube-object";
|
|
|
22
22
|
import { KubeApi } from "../kube-api";
|
|
23
23
|
import type { KubeJsonApiData } from "../kube-json-api";
|
|
24
24
|
import type { IPodContainer, IPodMetrics } from "./pods.api";
|
|
25
|
+
import type { LabelSelector } from "../kube-object";
|
|
25
26
|
export declare class Job extends WorkloadKubeObject {
|
|
26
27
|
static kind: string;
|
|
27
28
|
static namespaced: boolean;
|
|
@@ -31,11 +32,7 @@ export declare class Job extends WorkloadKubeObject {
|
|
|
31
32
|
parallelism?: number;
|
|
32
33
|
completions?: number;
|
|
33
34
|
backoffLimit?: number;
|
|
34
|
-
selector?:
|
|
35
|
-
matchLabels: {
|
|
36
|
-
[name: string]: string;
|
|
37
|
-
};
|
|
38
|
-
};
|
|
35
|
+
selector?: LabelSelector;
|
|
39
36
|
template: {
|
|
40
37
|
metadata: {
|
|
41
38
|
creationTimestamp?: string;
|
|
@@ -18,50 +18,90 @@
|
|
|
18
18
|
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
19
19
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
20
|
*/
|
|
21
|
-
import { KubeObject } from "../kube-object";
|
|
21
|
+
import { KubeObject, LabelSelector } from "../kube-object";
|
|
22
22
|
import { KubeApi } from "../kube-api";
|
|
23
23
|
import type { KubeJsonApiData } from "../kube-json-api";
|
|
24
24
|
export interface IPolicyIpBlock {
|
|
25
25
|
cidr: string;
|
|
26
26
|
except?: string[];
|
|
27
27
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
/**
|
|
29
|
+
* @deprecated Use `LabelSelector` instead
|
|
30
|
+
*/
|
|
31
|
+
export declare type IPolicySelector = LabelSelector;
|
|
32
|
+
export interface NetworkPolicyPort {
|
|
33
|
+
/**
|
|
34
|
+
* The protocol which network traffic must match.
|
|
35
|
+
*
|
|
36
|
+
* One of:
|
|
37
|
+
* - `"TCP"`
|
|
38
|
+
* - `"UDP"`
|
|
39
|
+
* - `"SCTP"`
|
|
40
|
+
*
|
|
41
|
+
* @default "TCP"
|
|
42
|
+
*/
|
|
43
|
+
protocol?: string;
|
|
44
|
+
/**
|
|
45
|
+
* The port on the given protocol. This can either be a numerical or named
|
|
46
|
+
* port on a pod. If this field is not provided, this matches all port names and
|
|
47
|
+
* numbers.
|
|
48
|
+
*
|
|
49
|
+
* If present, only traffic on the specified protocol AND port will be matched.
|
|
50
|
+
*/
|
|
51
|
+
port?: number | string;
|
|
52
|
+
/**
|
|
53
|
+
* If set, indicates that the range of ports from port to endPort, inclusive,
|
|
54
|
+
* should be allowed by the policy. This field cannot be defined if the port field
|
|
55
|
+
* is not defined or if the port field is defined as a named (string) port.
|
|
56
|
+
*
|
|
57
|
+
* The endPort must be equal or greater than port.
|
|
58
|
+
*/
|
|
59
|
+
endPort?: number;
|
|
60
|
+
}
|
|
61
|
+
export interface NetworkPolicyPeer {
|
|
62
|
+
/**
|
|
63
|
+
* IPBlock defines policy on a particular IPBlock. If this field is set then
|
|
64
|
+
* neither of the other fields can be.
|
|
65
|
+
*/
|
|
66
|
+
ipBlock?: IPolicyIpBlock;
|
|
67
|
+
/**
|
|
68
|
+
* Selects Namespaces using cluster-scoped labels. This field follows standard label
|
|
69
|
+
* selector semantics; if present but empty, it selects all namespaces.
|
|
70
|
+
*
|
|
71
|
+
* If PodSelector is also set, then the NetworkPolicyPeer as a whole selects
|
|
72
|
+
* the Pods matching PodSelector in the Namespaces selected by NamespaceSelector.
|
|
73
|
+
*
|
|
74
|
+
* Otherwise it selects all Pods in the Namespaces selected by NamespaceSelector.
|
|
75
|
+
*/
|
|
76
|
+
namespaceSelector?: LabelSelector;
|
|
77
|
+
/**
|
|
78
|
+
* This is a label selector which selects Pods. This field follows standard label
|
|
79
|
+
* selector semantics; if present but empty, it selects all pods.
|
|
80
|
+
*
|
|
81
|
+
* If NamespaceSelector is also set, then the NetworkPolicyPeer as a whole selects
|
|
82
|
+
* the Pods matching PodSelector in the Namespaces selected by NamespaceSelector.
|
|
83
|
+
*
|
|
84
|
+
* Otherwise it selects the Pods matching PodSelector in the policy's own Namespace.
|
|
85
|
+
*/
|
|
86
|
+
podSelector?: LabelSelector;
|
|
32
87
|
}
|
|
33
88
|
export interface IPolicyIngress {
|
|
34
|
-
from
|
|
35
|
-
|
|
36
|
-
namespaceSelector?: IPolicySelector;
|
|
37
|
-
podSelector?: IPolicySelector;
|
|
38
|
-
}[];
|
|
39
|
-
ports: {
|
|
40
|
-
protocol: string;
|
|
41
|
-
port: number;
|
|
42
|
-
}[];
|
|
89
|
+
from?: NetworkPolicyPeer[];
|
|
90
|
+
ports?: NetworkPolicyPort[];
|
|
43
91
|
}
|
|
44
92
|
export interface IPolicyEgress {
|
|
45
|
-
to
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
93
|
+
to?: NetworkPolicyPeer[];
|
|
94
|
+
ports?: NetworkPolicyPort[];
|
|
95
|
+
}
|
|
96
|
+
export declare type PolicyType = "Ingress" | "Egress";
|
|
97
|
+
export interface NetworkPolicySpec {
|
|
98
|
+
podSelector: LabelSelector;
|
|
99
|
+
policyTypes?: PolicyType[];
|
|
100
|
+
ingress?: IPolicyIngress[];
|
|
101
|
+
egress?: IPolicyEgress[];
|
|
52
102
|
}
|
|
53
103
|
export interface NetworkPolicy {
|
|
54
|
-
spec:
|
|
55
|
-
podSelector: {
|
|
56
|
-
matchLabels: {
|
|
57
|
-
[label: string]: string;
|
|
58
|
-
role: string;
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
policyTypes: string[];
|
|
62
|
-
ingress: IPolicyIngress[];
|
|
63
|
-
egress: IPolicyEgress[];
|
|
64
|
-
};
|
|
104
|
+
spec: NetworkPolicySpec;
|
|
65
105
|
}
|
|
66
106
|
export declare class NetworkPolicy extends KubeObject {
|
|
67
107
|
static kind: string;
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
19
19
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
20
|
*/
|
|
21
|
-
import { KubeObject } from "../kube-object";
|
|
21
|
+
import { KubeObject, LabelSelector } from "../kube-object";
|
|
22
22
|
import { IMetrics } from "./metrics.api";
|
|
23
23
|
import type { Pod } from "./pods.api";
|
|
24
24
|
import { KubeApi } from "../kube-api";
|
|
@@ -35,16 +35,7 @@ export interface PersistentVolumeClaim {
|
|
|
35
35
|
spec: {
|
|
36
36
|
accessModes: string[];
|
|
37
37
|
storageClassName: string;
|
|
38
|
-
selector:
|
|
39
|
-
matchLabels: {
|
|
40
|
-
release: string;
|
|
41
|
-
};
|
|
42
|
-
matchExpressions: {
|
|
43
|
-
key: string;
|
|
44
|
-
operator: string;
|
|
45
|
-
values: string[];
|
|
46
|
-
}[];
|
|
47
|
-
};
|
|
38
|
+
selector: LabelSelector;
|
|
48
39
|
resources: {
|
|
49
40
|
requests: {
|
|
50
41
|
storage: string;
|
|
@@ -63,11 +54,7 @@ export declare class PersistentVolumeClaim extends KubeObject {
|
|
|
63
54
|
getPods(allPods: Pod[]): Pod[];
|
|
64
55
|
getStorage(): string;
|
|
65
56
|
getMatchLabels(): string[];
|
|
66
|
-
getMatchExpressions():
|
|
67
|
-
key: string;
|
|
68
|
-
operator: string;
|
|
69
|
-
values: string[];
|
|
70
|
-
}[];
|
|
57
|
+
getMatchExpressions(): import("../kube-object").LabelMatchExpression[];
|
|
71
58
|
getStatus(): string;
|
|
72
59
|
}
|
|
73
60
|
declare let pvcApi: PersistentVolumeClaimsApi;
|
|
@@ -18,18 +18,14 @@
|
|
|
18
18
|
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
19
19
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
20
|
*/
|
|
21
|
-
import { KubeObject } from "../kube-object";
|
|
21
|
+
import { KubeObject, LabelSelector } from "../kube-object";
|
|
22
22
|
import { KubeApi } from "../kube-api";
|
|
23
23
|
import type { KubeJsonApiData } from "../kube-json-api";
|
|
24
24
|
export interface PodDisruptionBudget {
|
|
25
25
|
spec: {
|
|
26
26
|
minAvailable: string;
|
|
27
27
|
maxUnavailable: string;
|
|
28
|
-
selector:
|
|
29
|
-
matchLabels: {
|
|
30
|
-
[app: string]: string;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
28
|
+
selector: LabelSelector;
|
|
33
29
|
};
|
|
34
30
|
status: {
|
|
35
31
|
currentHealthy: number;
|
|
@@ -22,6 +22,7 @@ import { WorkloadKubeObject } from "../workload-kube-object";
|
|
|
22
22
|
import { KubeApi } from "../kube-api";
|
|
23
23
|
import type { IPodMetrics, Pod } from "./pods.api";
|
|
24
24
|
import type { KubeJsonApiData } from "../kube-json-api";
|
|
25
|
+
import type { LabelSelector } from "../kube-object";
|
|
25
26
|
export declare class ReplicaSetApi extends KubeApi<ReplicaSet> {
|
|
26
27
|
protected getScaleApiUrl(params: {
|
|
27
28
|
namespace: string;
|
|
@@ -44,11 +45,7 @@ export declare class ReplicaSet extends WorkloadKubeObject {
|
|
|
44
45
|
constructor(data: KubeJsonApiData);
|
|
45
46
|
spec: {
|
|
46
47
|
replicas?: number;
|
|
47
|
-
selector:
|
|
48
|
-
matchLabels: {
|
|
49
|
-
[app: string]: string;
|
|
50
|
-
};
|
|
51
|
-
};
|
|
48
|
+
selector: LabelSelector;
|
|
52
49
|
template?: {
|
|
53
50
|
metadata: {
|
|
54
51
|
labels: {
|
|
@@ -22,6 +22,7 @@ import { IAffinity, WorkloadKubeObject } from "../workload-kube-object";
|
|
|
22
22
|
import { KubeApi } from "../kube-api";
|
|
23
23
|
import type { IPodMetrics } from "./pods.api";
|
|
24
24
|
import type { KubeJsonApiData } from "../kube-json-api";
|
|
25
|
+
import type { LabelSelector } from "../kube-object";
|
|
25
26
|
export declare class StatefulSetApi extends KubeApi<StatefulSet> {
|
|
26
27
|
protected getScaleApiUrl(params: {
|
|
27
28
|
namespace: string;
|
|
@@ -45,11 +46,7 @@ export declare class StatefulSet extends WorkloadKubeObject {
|
|
|
45
46
|
spec: {
|
|
46
47
|
serviceName: string;
|
|
47
48
|
replicas: number;
|
|
48
|
-
selector:
|
|
49
|
-
matchLabels: {
|
|
50
|
-
[key: string]: string;
|
|
51
|
-
};
|
|
52
|
-
};
|
|
49
|
+
selector: LabelSelector;
|
|
53
50
|
template: {
|
|
54
51
|
metadata: {
|
|
55
52
|
labels: {
|
|
@@ -28,7 +28,7 @@ export interface IKubeApiLinkRef {
|
|
|
28
28
|
apiPrefix?: string;
|
|
29
29
|
apiVersion: string;
|
|
30
30
|
resource: string;
|
|
31
|
-
name
|
|
31
|
+
name?: string;
|
|
32
32
|
namespace?: string;
|
|
33
33
|
}
|
|
34
34
|
export interface IKubeApiParsed extends IKubeApiLinkRef {
|
|
@@ -37,4 +37,4 @@ export interface IKubeApiParsed extends IKubeApiLinkRef {
|
|
|
37
37
|
apiVersionWithGroup: string;
|
|
38
38
|
}
|
|
39
39
|
export declare function parseKubeApi(path: string): IKubeApiParsed;
|
|
40
|
-
export declare function createKubeApiURL(
|
|
40
|
+
export declare function createKubeApiURL({ apiPrefix, resource, apiVersion, name, namespace }: IKubeApiLinkRef): string;
|