@k8slens/extensions 5.5.0 → 5.5.3-beta.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.
@@ -61,7 +61,7 @@ declare class KubernetesClusterCategory extends CatalogCategory {
61
61
  readonly kind = "CatalogCategory";
62
62
  metadata: {
63
63
  name: string;
64
- icon: any;
64
+ icon: string;
65
65
  };
66
66
  spec: CatalogCategorySpec;
67
67
  }
@@ -236,8 +236,10 @@ export interface CephfsSource {
236
236
  secretRef?: SecretReference;
237
237
  /**
238
238
  * Whether the filesystem is used as readOnly.
239
+ *
240
+ * @default false
239
241
  */
240
- readOnly: boolean;
242
+ readOnly?: boolean;
241
243
  }
242
244
  export interface CinderSource {
243
245
  volumeID: string;
@@ -368,46 +370,53 @@ export interface PortworxVolumeSource {
368
370
  fsType?: string;
369
371
  readOnly?: boolean;
370
372
  }
373
+ export interface KeyToPath {
374
+ key: string;
375
+ path: string;
376
+ mode?: number;
377
+ }
378
+ export interface ConfigMapProjection {
379
+ name: string;
380
+ items?: KeyToPath[];
381
+ optional?: boolean;
382
+ }
383
+ export interface ObjectFieldSelector {
384
+ fieldPath: string;
385
+ apiVersion?: string;
386
+ }
387
+ export interface ResourceFieldSelector {
388
+ resource: string;
389
+ containerName?: string;
390
+ divisor?: string;
391
+ }
392
+ export interface DownwardAPIVolumeFile {
393
+ path: string;
394
+ fieldRef?: ObjectFieldSelector;
395
+ resourceFieldRef?: ResourceFieldSelector;
396
+ mode?: number;
397
+ }
398
+ export interface DownwardAPIProjection {
399
+ items?: DownwardAPIVolumeFile[];
400
+ }
401
+ export interface SecretProjection {
402
+ name: string;
403
+ items?: KeyToPath[];
404
+ optional?: boolean;
405
+ }
406
+ export interface ServiceAccountTokenProjection {
407
+ audience?: string;
408
+ expirationSeconds?: number;
409
+ path: string;
410
+ }
411
+ export interface VolumeProjection {
412
+ secret?: SecretProjection;
413
+ downwardAPI?: DownwardAPIProjection;
414
+ configMap?: ConfigMapProjection;
415
+ serviceAccountToken?: ServiceAccountTokenProjection;
416
+ }
371
417
  export interface ProjectedSource {
372
- sources: {
373
- secret?: {
374
- name: string;
375
- items?: {
376
- key: string;
377
- path: string;
378
- mode?: number;
379
- }[];
380
- };
381
- downwardAPI?: {
382
- items?: {
383
- path: string;
384
- fieldRef?: {
385
- fieldPath: string;
386
- apiVersion?: string;
387
- };
388
- resourceFieldRef?: {
389
- resource: string;
390
- containerName?: string;
391
- };
392
- mode?: number;
393
- }[];
394
- };
395
- configMap?: {
396
- name: string;
397
- items?: {
398
- key: string;
399
- path: string;
400
- mode?: number;
401
- }[];
402
- optional?: boolean;
403
- };
404
- serviceAccountToken?: {
405
- audience?: string;
406
- expirationSeconds?: number;
407
- path: string;
408
- };
409
- }[];
410
- defaultMode: number;
418
+ sources?: VolumeProjection[];
419
+ defaultMode?: number;
411
420
  }
412
421
  export interface QuobyteSource {
413
422
  registry: string;
@@ -36,6 +36,7 @@ export interface KubeJsonApiData extends JsonApiData {
36
36
  kind: string;
37
37
  apiVersion: string;
38
38
  metadata: KubeJsonApiMetadata;
39
+ spec?: unknown;
39
40
  }
40
41
  export interface KubeJsonApiError extends JsonApiError {
41
42
  code: number;