@k8slens/extensions 5.5.0-git.b6af0e3eba.0 → 5.5.0-git.ff9837ce7b.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/metrics.api.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/persistent-volume-claims.api.d.ts +17 -10
- package/dist/src/common/k8s-api/endpoints/pods.api.d.ts +414 -43
- package/dist/src/common/k8s-api/endpoints/secret.api.d.ts +4 -0
- package/dist/src/common/k8s-api/kube-object.d.ts +6 -0
- package/dist/src/extensions/extension-api.js +98 -98
- package/dist/src/main/context-handler/context-handler.d.ts +2 -2
- package/dist/src/main/kube-auth-proxy/get-kube-auth-proxy-certificate.d.ts +8 -0
- package/dist/src/main/kube-auth-proxy/kube-auth-proxy.d.ts +2 -1
- package/dist/src/renderer/components/+pod-security-policies/pod-security-policy-details.d.ts +1 -1
- package/dist/src/renderer/components/+workloads-pods/details/volumes/variant-helpers.d.ts +21 -0
- package/dist/src/renderer/components/+workloads-pods/details/volumes/variant.d.ts +11 -0
- package/dist/src/renderer/components/+workloads-pods/details/volumes/variants/aws-elastic-block-store.d.ts +6 -0
- package/dist/src/renderer/components/+workloads-pods/details/volumes/variants/azure-disk.d.ts +2 -0
- package/dist/src/renderer/components/+workloads-pods/details/volumes/variants/azure-file.d.ts +2 -0
- package/dist/src/renderer/components/+workloads-pods/details/volumes/variants/ceph-fs.d.ts +6 -0
- package/dist/src/renderer/components/+workloads-pods/details/volumes/variants/cinder.d.ts +6 -0
- package/dist/src/renderer/components/+workloads-pods/details/volumes/variants/config-map.d.ts +6 -0
- package/dist/src/renderer/components/+workloads-pods/details/volumes/variants/container-storage-interface.d.ts +6 -0
- package/dist/src/renderer/components/+workloads-pods/details/volumes/variants/downward-api.d.ts +6 -0
- package/dist/src/renderer/components/+workloads-pods/details/volumes/variants/empty-dir.d.ts +2 -0
- package/dist/src/renderer/components/+workloads-pods/details/volumes/variants/ephemeral.d.ts +2 -0
- package/dist/src/renderer/components/+workloads-pods/details/volumes/variants/fiber-channel.d.ts +6 -0
- package/dist/src/renderer/components/+workloads-pods/details/volumes/variants/flex-volume.d.ts +6 -0
- package/dist/src/renderer/components/+workloads-pods/details/volumes/variants/flocker.d.ts +6 -0
- package/dist/src/renderer/components/+workloads-pods/details/volumes/variants/gce-persistent-disk.d.ts +6 -0
- package/dist/src/renderer/components/+workloads-pods/details/volumes/variants/git-repo.d.ts +6 -0
- package/dist/src/renderer/components/+workloads-pods/details/volumes/variants/gluster-fs.d.ts +6 -0
- package/dist/src/renderer/components/+workloads-pods/details/volumes/variants/host-path.d.ts +6 -0
- package/dist/src/renderer/components/+workloads-pods/details/volumes/variants/i-scsi.d.ts +6 -0
- package/dist/src/renderer/components/+workloads-pods/details/volumes/variants/local.d.ts +6 -0
- package/dist/src/renderer/components/+workloads-pods/details/volumes/variants/network-fs.d.ts +6 -0
- package/dist/src/renderer/components/+workloads-pods/details/volumes/variants/persistent-volume-claim.d.ts +6 -0
- package/dist/src/renderer/components/+workloads-pods/details/volumes/variants/photon-persistent-disk.d.ts +6 -0
- package/dist/src/renderer/components/+workloads-pods/details/volumes/variants/portworx-volume.d.ts +6 -0
- package/dist/src/renderer/components/+workloads-pods/details/volumes/variants/projected.d.ts +6 -0
- package/dist/src/renderer/components/+workloads-pods/details/volumes/variants/quobyte.d.ts +6 -0
- package/dist/src/renderer/components/+workloads-pods/details/volumes/variants/rados-block-device.d.ts +6 -0
- package/dist/src/renderer/components/+workloads-pods/details/volumes/variants/scale-io.d.ts +6 -0
- package/dist/src/renderer/components/+workloads-pods/details/volumes/variants/secret.d.ts +6 -0
- package/dist/src/renderer/components/+workloads-pods/details/volumes/variants/storage-os.d.ts +6 -0
- package/dist/src/renderer/components/+workloads-pods/details/volumes/variants/vsphere-volume.d.ts +6 -0
- package/dist/src/renderer/components/+workloads-pods/details/volumes/view.d.ts +9 -0
- package/dist/src/renderer/components/+workloads-pods/pod-details-secrets.d.ts +2 -9
- package/dist/src/renderer/components/drawer/drawer-item-labels.d.ts +1 -1
- package/dist/src/renderer/components/drawer/drawer-item.d.ts +2 -5
- package/dist/src/renderer/components/drawer/drawer-title.d.ts +8 -5
- package/dist/src/renderer/components/switch/switcher.d.ts +1 -1
- package/dist/src/renderer/components/tabs/tabs.d.ts +0 -1
- package/package.json +1 -1
- package/dist/src/main/kube-auth-proxy/create-kube-auth-proxy-cert-files.d.ts +0 -13
- package/dist/src/main/kube-auth-proxy/create-kube-auth-proxy-cert-files.injectable.d.ts +0 -3
- package/dist/src/main/kube-auth-proxy/kube-auth-proxy-ca.injectable.d.ts +0 -4
|
@@ -22,7 +22,7 @@ interface PrometheusServicePreferences {
|
|
|
22
22
|
}
|
|
23
23
|
interface Dependencies {
|
|
24
24
|
createKubeAuthProxy: CreateKubeAuthProxy;
|
|
25
|
-
authProxyCa:
|
|
25
|
+
authProxyCa: string;
|
|
26
26
|
}
|
|
27
27
|
export declare class ContextHandler {
|
|
28
28
|
private dependencies;
|
|
@@ -40,7 +40,7 @@ export declare class ContextHandler {
|
|
|
40
40
|
protected listPotentialProviders(): PrometheusProvider[];
|
|
41
41
|
protected getPrometheusService(): Promise<PrometheusService>;
|
|
42
42
|
resolveAuthProxyUrl(): Promise<string>;
|
|
43
|
-
resolveAuthProxyCa():
|
|
43
|
+
resolveAuthProxyCa(): string;
|
|
44
44
|
getApiTarget(isLongRunningRequest?: boolean): Promise<httpProxy.ServerOptions>;
|
|
45
45
|
protected newApiTarget(timeout: number): Promise<httpProxy.ServerOptions>;
|
|
46
46
|
ensureServer(): Promise<void>;
|
|
@@ -0,0 +1,8 @@
|
|
|
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 * as selfsigned from "selfsigned";
|
|
6
|
+
declare type SelfSignedGenerate = typeof selfsigned.generate;
|
|
7
|
+
export declare function getKubeAuthProxyCertificate(hostname: string, generate: SelfSignedGenerate, useCache?: boolean): selfsigned.SelfSignedCert;
|
|
8
|
+
export {};
|
|
@@ -5,9 +5,10 @@
|
|
|
5
5
|
/// <reference types="node" />
|
|
6
6
|
import type { ChildProcess, spawn } from "child_process";
|
|
7
7
|
import type { Cluster } from "../../common/cluster/cluster";
|
|
8
|
+
import type { SelfSignedCert } from "selfsigned";
|
|
8
9
|
export interface KubeAuthProxyDependencies {
|
|
9
10
|
proxyBinPath: string;
|
|
10
|
-
|
|
11
|
+
proxyCert: SelfSignedCert;
|
|
11
12
|
spawn: typeof spawn;
|
|
12
13
|
}
|
|
13
14
|
export declare class KubeAuthProxy {
|
package/dist/src/renderer/components/+pod-security-policies/pod-security-policy-details.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ interface RuleGroup {
|
|
|
16
16
|
}[];
|
|
17
17
|
}
|
|
18
18
|
export declare class PodSecurityPolicyDetails extends React.Component<PodSecurityPolicyDetailsProps> {
|
|
19
|
-
renderRuleGroup(title: React.ReactNode,
|
|
19
|
+
renderRuleGroup: (title: React.ReactNode, { rule, ranges }: RuleGroup) => JSX.Element;
|
|
20
20
|
render(): JSX.Element;
|
|
21
21
|
}
|
|
22
22
|
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
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 React from "react";
|
|
6
|
+
import type { PodVolumeVariants, Pod, SecretReference } from "../../../../../common/k8s-api/endpoints";
|
|
7
|
+
import type { KubeApi } from "../../../../../common/k8s-api/kube-api";
|
|
8
|
+
import type { LocalObjectReference, KubeObject } from "../../../../../common/k8s-api/kube-object";
|
|
9
|
+
export interface PodVolumeVariantSpecificProps<Kind extends keyof PodVolumeVariants> {
|
|
10
|
+
variant: PodVolumeVariants[Kind];
|
|
11
|
+
pod: Pod;
|
|
12
|
+
volumeName: string;
|
|
13
|
+
}
|
|
14
|
+
export declare type VolumeVariantComponent<Kind extends keyof PodVolumeVariants> = React.FunctionComponent<PodVolumeVariantSpecificProps<Kind>>;
|
|
15
|
+
export interface LocalRefProps {
|
|
16
|
+
pod: Pod;
|
|
17
|
+
title: string;
|
|
18
|
+
kubeRef: LocalObjectReference | SecretReference | undefined;
|
|
19
|
+
api: KubeApi<KubeObject>;
|
|
20
|
+
}
|
|
21
|
+
export declare const LocalRef: ({ pod, title, kubeRef: ref, api }: LocalRefProps) => JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
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 { Pod, PodVolume } from "../../../../../common/k8s-api/endpoints";
|
|
6
|
+
interface VolumeVariantProps {
|
|
7
|
+
pod: Pod;
|
|
8
|
+
volume: PodVolume;
|
|
9
|
+
}
|
|
10
|
+
export declare function VolumeVariant(props: VolumeVariantProps): JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -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 { VolumeVariantComponent } from "../variant-helpers";
|
|
6
|
+
export declare const AwsElasticBlockStore: VolumeVariantComponent<"awsElasticBlockStore">;
|
|
@@ -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 { VolumeVariantComponent } from "../variant-helpers";
|
|
6
|
+
export declare const CephFs: VolumeVariantComponent<"cephfs">;
|
|
@@ -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 { VolumeVariantComponent } from "../variant-helpers";
|
|
6
|
+
export declare const Cinder: VolumeVariantComponent<"cinder">;
|
|
@@ -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 { VolumeVariantComponent } from "../variant-helpers";
|
|
6
|
+
export declare const ConfigMap: VolumeVariantComponent<"configMap">;
|
|
@@ -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 { VolumeVariantComponent } from "../variant-helpers";
|
|
6
|
+
export declare const ContainerStorageInterface: VolumeVariantComponent<"csi">;
|
package/dist/src/renderer/components/+workloads-pods/details/volumes/variants/downward-api.d.ts
ADDED
|
@@ -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 { VolumeVariantComponent } from "../variant-helpers";
|
|
6
|
+
export declare const DownwardAPI: VolumeVariantComponent<"downwardAPI">;
|
package/dist/src/renderer/components/+workloads-pods/details/volumes/variants/fiber-channel.d.ts
ADDED
|
@@ -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 { VolumeVariantComponent } from "../variant-helpers";
|
|
6
|
+
export declare const FiberChannel: VolumeVariantComponent<"fc">;
|
package/dist/src/renderer/components/+workloads-pods/details/volumes/variants/flex-volume.d.ts
ADDED
|
@@ -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 { VolumeVariantComponent } from "../variant-helpers";
|
|
6
|
+
export declare const FlexVolume: VolumeVariantComponent<"flexVolume">;
|
|
@@ -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 { VolumeVariantComponent } from "../variant-helpers";
|
|
6
|
+
export declare const Flocker: VolumeVariantComponent<"flocker">;
|
|
@@ -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 { VolumeVariantComponent } from "../variant-helpers";
|
|
6
|
+
export declare const GcePersistentDisk: VolumeVariantComponent<"gcePersistentDisk">;
|
|
@@ -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 { VolumeVariantComponent } from "../variant-helpers";
|
|
6
|
+
export declare const GitRepo: VolumeVariantComponent<"gitRepo">;
|
|
@@ -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 { VolumeVariantComponent } from "../variant-helpers";
|
|
6
|
+
export declare const GlusterFs: VolumeVariantComponent<"glusterfs">;
|
|
@@ -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 { VolumeVariantComponent } from "../variant-helpers";
|
|
6
|
+
export declare const HostPath: VolumeVariantComponent<"hostPath">;
|
|
@@ -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 { VolumeVariantComponent } from "../variant-helpers";
|
|
6
|
+
export declare const IScsi: VolumeVariantComponent<"iscsi">;
|
|
@@ -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 { VolumeVariantComponent } from "../variant-helpers";
|
|
6
|
+
export declare const Local: VolumeVariantComponent<"local">;
|
|
@@ -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 { VolumeVariantComponent } from "../variant-helpers";
|
|
6
|
+
export declare const NetworkFs: VolumeVariantComponent<"nfs">;
|
|
@@ -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 { VolumeVariantComponent } from "../variant-helpers";
|
|
6
|
+
export declare const PersistentVolumeClaim: VolumeVariantComponent<"persistentVolumeClaim">;
|
|
@@ -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 { VolumeVariantComponent } from "../variant-helpers";
|
|
6
|
+
export declare const PhotonPersistentDisk: VolumeVariantComponent<"photonPersistentDisk">;
|
package/dist/src/renderer/components/+workloads-pods/details/volumes/variants/portworx-volume.d.ts
ADDED
|
@@ -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 { VolumeVariantComponent } from "../variant-helpers";
|
|
6
|
+
export declare const PortworxVolume: VolumeVariantComponent<"portworxVolume">;
|
|
@@ -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 { VolumeVariantComponent } from "../variant-helpers";
|
|
6
|
+
export declare const Projected: VolumeVariantComponent<"projected">;
|
|
@@ -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 { VolumeVariantComponent } from "../variant-helpers";
|
|
6
|
+
export declare const Quobyte: VolumeVariantComponent<"quobyte">;
|
|
@@ -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 { VolumeVariantComponent } from "../variant-helpers";
|
|
6
|
+
export declare const RadosBlockDevice: VolumeVariantComponent<"rbd">;
|
|
@@ -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 { VolumeVariantComponent } from "../variant-helpers";
|
|
6
|
+
export declare const ScaleIo: VolumeVariantComponent<"scaleIO">;
|
|
@@ -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 { VolumeVariantComponent } from "../variant-helpers";
|
|
6
|
+
export declare const Secret: VolumeVariantComponent<"secret">;
|
|
@@ -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 { VolumeVariantComponent } from "../variant-helpers";
|
|
6
|
+
export declare const StorageOs: VolumeVariantComponent<"storageos">;
|
package/dist/src/renderer/components/+workloads-pods/details/volumes/variants/vsphere-volume.d.ts
ADDED
|
@@ -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 { VolumeVariantComponent } from "../variant-helpers";
|
|
6
|
+
export declare const VsphereVolume: VolumeVariantComponent<"vsphereVolume">;
|
|
@@ -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
|
+
import type { Pod } from "../../../../../common/k8s-api/endpoints";
|
|
6
|
+
export interface PodVolumesProps {
|
|
7
|
+
pod: Pod;
|
|
8
|
+
}
|
|
9
|
+
export declare const PodVolumes: ({ pod }: PodVolumesProps) => JSX.Element;
|
|
@@ -3,15 +3,8 @@
|
|
|
3
3
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
|
4
4
|
*/
|
|
5
5
|
import "./pod-details-secrets.scss";
|
|
6
|
-
import {
|
|
7
|
-
import { Pod, Secret } from "../../../common/k8s-api/endpoints";
|
|
6
|
+
import { Pod } from "../../../common/k8s-api/endpoints";
|
|
8
7
|
export interface PodDetailsSecretsProps {
|
|
9
8
|
pod: Pod;
|
|
10
9
|
}
|
|
11
|
-
export declare
|
|
12
|
-
secrets: Map<string, Secret>;
|
|
13
|
-
componentDidMount(): void;
|
|
14
|
-
constructor(props: PodDetailsSecretsProps);
|
|
15
|
-
render(): JSX.Element;
|
|
16
|
-
protected renderSecretLink(secret: Secret): JSX.Element;
|
|
17
|
-
}
|
|
10
|
+
export declare const PodDetailsSecrets: ({ pod }: PodDetailsSecretsProps) => JSX.Element;
|
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { DrawerItemProps } from "./drawer-item";
|
|
6
6
|
export interface DrawerItemLabelsProps extends DrawerItemProps {
|
|
7
|
-
labels: string[]
|
|
7
|
+
labels: string[] | Record<string, string>;
|
|
8
8
|
}
|
|
9
9
|
export declare function DrawerItemLabels(props: DrawerItemLabelsProps): JSX.Element;
|
|
@@ -4,14 +4,11 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import "./drawer-item.scss";
|
|
6
6
|
import React from "react";
|
|
7
|
-
export interface DrawerItemProps extends React.HTMLAttributes<
|
|
7
|
+
export interface DrawerItemProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
8
8
|
name: React.ReactNode;
|
|
9
|
-
className?: string;
|
|
10
9
|
title?: string;
|
|
11
10
|
labelsOnly?: boolean;
|
|
12
11
|
hidden?: boolean;
|
|
13
12
|
renderBoolean?: boolean;
|
|
14
13
|
}
|
|
15
|
-
export declare
|
|
16
|
-
render(): JSX.Element;
|
|
17
|
-
}
|
|
14
|
+
export declare function DrawerItem({ name, title, labelsOnly, children, hidden, className, renderBoolean, ...elemProps }: DrawerItemProps): JSX.Element;
|
|
@@ -2,12 +2,15 @@
|
|
|
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 "./drawer-title.scss";
|
|
6
5
|
import React from "react";
|
|
7
6
|
export interface DrawerTitleProps {
|
|
8
7
|
className?: string;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
/**
|
|
10
|
+
* Specifies how large this title is
|
|
11
|
+
*
|
|
12
|
+
* @default "title"
|
|
13
|
+
*/
|
|
14
|
+
size?: "sub-title" | "title";
|
|
13
15
|
}
|
|
16
|
+
export declare function DrawerTitle({ className, children, size }: DrawerTitleProps): JSX.Element;
|
|
@@ -13,5 +13,5 @@ export interface SwitcherProps extends SwitchProps {
|
|
|
13
13
|
/**
|
|
14
14
|
* @deprecated Use <Switch/> instead from "../switch.tsx".
|
|
15
15
|
*/
|
|
16
|
-
export declare const Switcher: React.ComponentType<Pick<SwitcherProps, "id" | "name" | "title" | "value" | "size" | "key" | "
|
|
16
|
+
export declare const Switcher: React.ComponentType<Pick<SwitcherProps, "id" | "name" | "title" | "value" | "size" | "key" | "prefix" | "defaultValue" | "form" | "slot" | "style" | "hidden" | "className" | "color" | "ref" | "action" | "autoFocus" | "checked" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "placeholder" | "readOnly" | "required" | "type" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "icon" | "inputProps" | "innerRef" | "checkedIcon" | "disableFocusRipple" | "edge" | "buttonRef" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "onFocusVisible" | "TouchRippleProps" | "inputRef"> & import("@material-ui/core/styles").StyledComponentProps<"track" | "checked" | "root" | "thumb" | "focusVisible" | "switchBase">>;
|
|
17
17
|
export {};
|
|
@@ -10,7 +10,6 @@ interface TabsContextValue<D = any> {
|
|
|
10
10
|
value?: D;
|
|
11
11
|
onChange?(value: D): void;
|
|
12
12
|
}
|
|
13
|
-
declare type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
|
|
14
13
|
export interface TabsProps<D = any> extends TabsContextValue<D>, Omit<DOMAttributes<HTMLElement>, "onChange"> {
|
|
15
14
|
className?: string;
|
|
16
15
|
center?: boolean;
|
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.5.0-git.
|
|
5
|
+
"version": "5.5.0-git.ff9837ce7b.0",
|
|
6
6
|
"copyright": "© 2021 OpenLens Authors",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"main": "dist/src/extensions/extension-api.js",
|
|
@@ -1,13 +0,0 @@
|
|
|
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="node" />
|
|
6
|
-
import type * as selfsigned from "selfsigned";
|
|
7
|
-
declare type SelfSignedGenerate = typeof selfsigned.generate;
|
|
8
|
-
interface CreateKubeAuthProxyCertificateFilesDependencies {
|
|
9
|
-
generate: SelfSignedGenerate;
|
|
10
|
-
writeFile: (path: string, content: string | Buffer) => Promise<void>;
|
|
11
|
-
}
|
|
12
|
-
export declare function createKubeAuthProxyCertFiles(dir: string, dependencies: CreateKubeAuthProxyCertificateFilesDependencies): Promise<string>;
|
|
13
|
-
export {};
|