@k8slens/extensions 5.6.0-git.649ca09d70.0 → 5.6.0-git.827cb8a886.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-entities/kubernetes-cluster.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/node.api.d.ts +2 -0
- package/dist/src/common/k8s-api/endpoints/pod.api.d.ts +49 -40
- package/dist/src/main/start-main-application/lens-window/application-window/create-electron-window-for.injectable.d.ts +6 -2
- package/dist/src/main/start-main-application/lens-window/application-window/create-lens-window.injectable.d.ts +2 -0
- package/dist/src/renderer/components/icon/icon.d.ts +22 -1
- package/dist/src/renderer/utils/display-mode.d.ts +8 -0
- package/dist/src/renderer/utils/index.d.ts +1 -0
- package/package.json +1 -1
| @@ -122,6 +122,8 @@ export declare class Node extends KubeObject<NodeStatus, NodeSpec, KubeObjectSco | |
| 122 122 | 
             
                 */
         | 
| 123 123 | 
             
                getNodeConditionText(): string;
         | 
| 124 124 | 
             
                getTaints(): NodeTaint[];
         | 
| 125 | 
            +
                isMasterNode(): boolean;
         | 
| 126 | 
            +
                getRoleLabelItems(): string[];
         | 
| 125 127 | 
             
                getRoleLabels(): string;
         | 
| 126 128 | 
             
                getCpuCapacity(): number;
         | 
| 127 129 | 
             
                getMemoryCapacity(): number;
         | 
| @@ -241,8 +241,10 @@ export interface CephfsSource { | |
| 241 241 | 
             
                secretRef?: SecretReference;
         | 
| 242 242 | 
             
                /**
         | 
| 243 243 | 
             
                 * Whether the filesystem is used as readOnly.
         | 
| 244 | 
            +
                 *
         | 
| 245 | 
            +
                 * @default false
         | 
| 244 246 | 
             
                 */
         | 
| 245 | 
            -
                readOnly | 
| 247 | 
            +
                readOnly?: boolean;
         | 
| 246 248 | 
             
            }
         | 
| 247 249 | 
             
            export interface CinderSource {
         | 
| 248 250 | 
             
                volumeID: string;
         | 
| @@ -373,46 +375,53 @@ export interface PortworxVolumeSource { | |
| 373 375 | 
             
                fsType?: string;
         | 
| 374 376 | 
             
                readOnly?: boolean;
         | 
| 375 377 | 
             
            }
         | 
| 378 | 
            +
            export interface KeyToPath {
         | 
| 379 | 
            +
                key: string;
         | 
| 380 | 
            +
                path: string;
         | 
| 381 | 
            +
                mode?: number;
         | 
| 382 | 
            +
            }
         | 
| 383 | 
            +
            export interface ConfigMapProjection {
         | 
| 384 | 
            +
                name: string;
         | 
| 385 | 
            +
                items?: KeyToPath[];
         | 
| 386 | 
            +
                optional?: boolean;
         | 
| 387 | 
            +
            }
         | 
| 388 | 
            +
            export interface ObjectFieldSelector {
         | 
| 389 | 
            +
                fieldPath: string;
         | 
| 390 | 
            +
                apiVersion?: string;
         | 
| 391 | 
            +
            }
         | 
| 392 | 
            +
            export interface ResourceFieldSelector {
         | 
| 393 | 
            +
                resource: string;
         | 
| 394 | 
            +
                containerName?: string;
         | 
| 395 | 
            +
                divisor?: string;
         | 
| 396 | 
            +
            }
         | 
| 397 | 
            +
            export interface DownwardAPIVolumeFile {
         | 
| 398 | 
            +
                path: string;
         | 
| 399 | 
            +
                fieldRef?: ObjectFieldSelector;
         | 
| 400 | 
            +
                resourceFieldRef?: ResourceFieldSelector;
         | 
| 401 | 
            +
                mode?: number;
         | 
| 402 | 
            +
            }
         | 
| 403 | 
            +
            export interface DownwardAPIProjection {
         | 
| 404 | 
            +
                items?: DownwardAPIVolumeFile[];
         | 
| 405 | 
            +
            }
         | 
| 406 | 
            +
            export interface SecretProjection {
         | 
| 407 | 
            +
                name: string;
         | 
| 408 | 
            +
                items?: KeyToPath[];
         | 
| 409 | 
            +
                optional?: boolean;
         | 
| 410 | 
            +
            }
         | 
| 411 | 
            +
            export interface ServiceAccountTokenProjection {
         | 
| 412 | 
            +
                audience?: string;
         | 
| 413 | 
            +
                expirationSeconds?: number;
         | 
| 414 | 
            +
                path: string;
         | 
| 415 | 
            +
            }
         | 
| 416 | 
            +
            export interface VolumeProjection {
         | 
| 417 | 
            +
                secret?: SecretProjection;
         | 
| 418 | 
            +
                downwardAPI?: DownwardAPIProjection;
         | 
| 419 | 
            +
                configMap?: ConfigMapProjection;
         | 
| 420 | 
            +
                serviceAccountToken?: ServiceAccountTokenProjection;
         | 
| 421 | 
            +
            }
         | 
| 376 422 | 
             
            export interface ProjectedSource {
         | 
| 377 | 
            -
                sources | 
| 378 | 
            -
             | 
| 379 | 
            -
                        name: string;
         | 
| 380 | 
            -
                        items?: {
         | 
| 381 | 
            -
                            key: string;
         | 
| 382 | 
            -
                            path: string;
         | 
| 383 | 
            -
                            mode?: number;
         | 
| 384 | 
            -
                        }[];
         | 
| 385 | 
            -
                    };
         | 
| 386 | 
            -
                    downwardAPI?: {
         | 
| 387 | 
            -
                        items?: {
         | 
| 388 | 
            -
                            path: string;
         | 
| 389 | 
            -
                            fieldRef?: {
         | 
| 390 | 
            -
                                fieldPath: string;
         | 
| 391 | 
            -
                                apiVersion?: string;
         | 
| 392 | 
            -
                            };
         | 
| 393 | 
            -
                            resourceFieldRef?: {
         | 
| 394 | 
            -
                                resource: string;
         | 
| 395 | 
            -
                                containerName?: string;
         | 
| 396 | 
            -
                            };
         | 
| 397 | 
            -
                            mode?: number;
         | 
| 398 | 
            -
                        }[];
         | 
| 399 | 
            -
                    };
         | 
| 400 | 
            -
                    configMap?: {
         | 
| 401 | 
            -
                        name: string;
         | 
| 402 | 
            -
                        items?: {
         | 
| 403 | 
            -
                            key: string;
         | 
| 404 | 
            -
                            path: string;
         | 
| 405 | 
            -
                            mode?: number;
         | 
| 406 | 
            -
                        }[];
         | 
| 407 | 
            -
                        optional?: boolean;
         | 
| 408 | 
            -
                    };
         | 
| 409 | 
            -
                    serviceAccountToken?: {
         | 
| 410 | 
            -
                        audience?: string;
         | 
| 411 | 
            -
                        expirationSeconds?: number;
         | 
| 412 | 
            -
                        path: string;
         | 
| 413 | 
            -
                    };
         | 
| 414 | 
            -
                }[];
         | 
| 415 | 
            -
                defaultMode: number;
         | 
| 423 | 
            +
                sources?: VolumeProjection[];
         | 
| 424 | 
            +
                defaultMode?: number;
         | 
| 416 425 | 
             
            }
         | 
| 417 426 | 
             
            export interface QuobyteSource {
         | 
| 418 427 | 
             
                registry: string;
         | 
| @@ -1,5 +1,6 @@ | |
| 1 1 | 
             
            import type { LensWindow } from "./create-lens-window.injectable";
         | 
| 2 | 
            -
             | 
| 2 | 
            +
            export declare type ElectronWindowTitleBarStyle = "hiddenInset" | "hidden" | "default" | "customButtonsOnHover";
         | 
| 3 | 
            +
            export interface ElectronWindowConfiguration {
         | 
| 3 4 | 
             
                id: string;
         | 
| 4 5 | 
             
                title: string;
         | 
| 5 6 | 
             
                defaultHeight: number;
         | 
| @@ -8,11 +9,14 @@ interface ElectronWindowConfiguration { | |
| 8 9 | 
             
                resizable: boolean;
         | 
| 9 10 | 
             
                windowFrameUtilitiesAreShown: boolean;
         | 
| 10 11 | 
             
                centered: boolean;
         | 
| 12 | 
            +
                titleBarStyle?: ElectronWindowTitleBarStyle;
         | 
| 11 13 | 
             
                beforeOpen?: () => Promise<void>;
         | 
| 12 14 | 
             
                onClose: () => void;
         | 
| 13 15 | 
             
                onFocus?: () => void;
         | 
| 14 16 | 
             
                onBlur?: () => void;
         | 
| 15 17 | 
             
                onDomReady?: () => void;
         | 
| 16 18 | 
             
            }
         | 
| 17 | 
            -
            declare  | 
| 19 | 
            +
            export declare type CreateElectronWindow = () => Promise<LensWindow>;
         | 
| 20 | 
            +
            export declare type CreateElectronWindowFor = (config: ElectronWindowConfiguration) => CreateElectronWindow;
         | 
| 21 | 
            +
            declare const createElectronWindowFor: import("@ogre-tools/injectable").Injectable<CreateElectronWindowFor, unknown, void>;
         | 
| 18 22 | 
             
            export default createElectronWindowFor;
         | 
| @@ -1,4 +1,5 @@ | |
| 1 1 | 
             
            import type { SendToViewArgs } from "./lens-window-injection-token";
         | 
| 2 | 
            +
            import type { ElectronWindowTitleBarStyle } from "./create-electron-window-for.injectable";
         | 
| 2 3 | 
             
            export interface LensWindow {
         | 
| 3 4 | 
             
                show: () => void;
         | 
| 4 5 | 
             
                close: () => void;
         | 
| @@ -13,6 +14,7 @@ interface LensWindowConfiguration { | |
| 13 14 | 
             
                resizable: boolean;
         | 
| 14 15 | 
             
                windowFrameUtilitiesAreShown: boolean;
         | 
| 15 16 | 
             
                centered: boolean;
         | 
| 17 | 
            +
                titleBarStyle?: ElectronWindowTitleBarStyle;
         | 
| 16 18 | 
             
                beforeOpen?: () => Promise<void>;
         | 
| 17 19 | 
             
                onFocus?: () => void;
         | 
| 18 20 | 
             
                onBlur?: () => void;
         | 
| @@ -11,7 +11,28 @@ export interface BaseIconProps { | |
| 11 11 | 
             
                */
         | 
| 12 12 | 
             
                material?: string;
         | 
| 13 13 | 
             
                /**
         | 
| 14 | 
            -
                 * Either an SVG  | 
| 14 | 
            +
                 * Either an SVG XML or one of the following names
         | 
| 15 | 
            +
                 * - configuration
         | 
| 16 | 
            +
                 * - crane
         | 
| 17 | 
            +
                 * - group
         | 
| 18 | 
            +
                 * - helm
         | 
| 19 | 
            +
                 * - install
         | 
| 20 | 
            +
                 * - kube
         | 
| 21 | 
            +
                 * - lens-logo
         | 
| 22 | 
            +
                 * - license
         | 
| 23 | 
            +
                 * - logo-lens
         | 
| 24 | 
            +
                 * - logout
         | 
| 25 | 
            +
                 * - nodes
         | 
| 26 | 
            +
                 * - push_off
         | 
| 27 | 
            +
                 * - push_pin
         | 
| 28 | 
            +
                 * - spinner
         | 
| 29 | 
            +
                 * - ssh
         | 
| 30 | 
            +
                 * - storage
         | 
| 31 | 
            +
                 * - terminal
         | 
| 32 | 
            +
                 * - user
         | 
| 33 | 
            +
                 * - users
         | 
| 34 | 
            +
                 * - wheel
         | 
| 35 | 
            +
                 * - workloads
         | 
| 15 36 | 
             
                 */
         | 
| 16 37 | 
             
                svg?: string;
         | 
| 17 38 | 
             
                /**
         | 
| @@ -7,6 +7,7 @@ export * from "../../common/event-emitter"; | |
| 7 7 | 
             
            export * from "./cssNames";
         | 
| 8 8 | 
             
            export * from "./cssVar";
         | 
| 9 9 | 
             
            export * from "./display-booleans";
         | 
| 10 | 
            +
            export * from "./display-mode";
         | 
| 10 11 | 
             
            export * from "./interval";
         | 
| 11 12 | 
             
            export * from "./isMiddleClick";
         | 
| 12 13 | 
             
            export * from "./isReactNode";
         | 
    
        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": "5.6.0-git. | 
| 5 | 
            +
              "version": "5.6.0-git.827cb8a886.0",
         | 
| 6 6 | 
             
              "copyright": "© 2021 OpenLens Authors",
         | 
| 7 7 | 
             
              "license": "MIT",
         | 
| 8 8 | 
             
              "main": "dist/src/extensions/extension-api.js",
         |