@rork8s/ror-resources 1.1.4 → 1.2.0-rc10
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/resources.d.ts +100 -51
- package/package.json +2 -2
- package/rork8s-ror-resources-1.2.0-rc10.tgz +0 -0
- package/src/resources.ts +93 -48
- package/rork8s-ror-resources-1.1.4.tgz +0 -0
package/dist/resources.d.ts
CHANGED
|
@@ -270,7 +270,9 @@ export interface ResourceVirtualMachineStatus {
|
|
|
270
270
|
lastUpdated: Time;
|
|
271
271
|
location: string;
|
|
272
272
|
cpu: ResourceVirtualMachineCpuStatus;
|
|
273
|
-
tags:
|
|
273
|
+
tags: {
|
|
274
|
+
[key: string]: ResourceVirtualMachineTag;
|
|
275
|
+
};
|
|
274
276
|
state: ResourceVirtualMachineState;
|
|
275
277
|
disks: ResourceVirtualMachineDiskStatus[];
|
|
276
278
|
memory: ResourceVirtualMachineMemoryStatus;
|
|
@@ -297,7 +299,7 @@ export interface ResourceVirtualMachineSpec {
|
|
|
297
299
|
memory: ResourceVirtualMachineMemorySpec;
|
|
298
300
|
}
|
|
299
301
|
export interface ResourceVirtualMachine {
|
|
300
|
-
|
|
302
|
+
externalId: string;
|
|
301
303
|
spec: ResourceVirtualMachineSpec;
|
|
302
304
|
status: ResourceVirtualMachineStatus;
|
|
303
305
|
provider: string;
|
|
@@ -356,8 +358,6 @@ export interface ResourceClusterVulnerabilityReportReportOwner {
|
|
|
356
358
|
namespace: string;
|
|
357
359
|
ownerReferences: OwnerReference[];
|
|
358
360
|
}
|
|
359
|
-
export interface Time {
|
|
360
|
-
}
|
|
361
361
|
export interface ResourceClusterVulnerabilityReportReport {
|
|
362
362
|
severity: string;
|
|
363
363
|
score: number;
|
|
@@ -412,10 +412,17 @@ export interface ResourceProjectSpec {
|
|
|
412
412
|
export interface ResourceProject {
|
|
413
413
|
spec: ResourceProjectSpec;
|
|
414
414
|
}
|
|
415
|
+
export interface ResourceKubernetesClusterOrderStatusCondition {
|
|
416
|
+
type: string;
|
|
417
|
+
status: string;
|
|
418
|
+
lastTransitionTime: string;
|
|
419
|
+
reason: string;
|
|
420
|
+
message: string;
|
|
421
|
+
}
|
|
415
422
|
export interface ResourceClusterOrderStatus {
|
|
416
423
|
status: string;
|
|
417
424
|
phase: string;
|
|
418
|
-
conditions:
|
|
425
|
+
conditions: ResourceKubernetesClusterOrderStatusCondition[];
|
|
419
426
|
createdTime: string;
|
|
420
427
|
updatedTime: string;
|
|
421
428
|
lastObservedTime: string;
|
|
@@ -447,75 +454,117 @@ export interface ResourceClusterOrder {
|
|
|
447
454
|
spec: ResourceClusterOrderSpec;
|
|
448
455
|
status: ResourceClusterOrderStatus;
|
|
449
456
|
}
|
|
450
|
-
export interface
|
|
457
|
+
export interface Condition {
|
|
451
458
|
type: string;
|
|
452
459
|
status: string;
|
|
453
460
|
lastTransitionTime: string;
|
|
454
461
|
reason: string;
|
|
455
462
|
message: string;
|
|
456
463
|
}
|
|
457
|
-
export interface
|
|
464
|
+
export interface Time {
|
|
465
|
+
}
|
|
466
|
+
export interface Version {
|
|
467
|
+
name: string;
|
|
468
|
+
version: string;
|
|
469
|
+
branch: string;
|
|
470
|
+
}
|
|
471
|
+
export interface NodePoolStatus {
|
|
472
|
+
name: string;
|
|
458
473
|
status: string;
|
|
459
|
-
|
|
460
|
-
conditions: ResourceKubernetesClusterStatusCondition[];
|
|
461
|
-
kubernetesVersion: string;
|
|
462
|
-
providerStatus: {
|
|
463
|
-
[key: string]: any;
|
|
464
|
-
};
|
|
465
|
-
createdTime: string;
|
|
466
|
-
updatedTime: string;
|
|
467
|
-
lastObservedTime: string;
|
|
474
|
+
message: string;
|
|
468
475
|
}
|
|
469
|
-
export interface
|
|
470
|
-
|
|
471
|
-
|
|
476
|
+
export interface WorkerStatus {
|
|
477
|
+
nodepools: NodePoolStatus[];
|
|
478
|
+
}
|
|
479
|
+
export interface ControlPlaneStatus {
|
|
480
|
+
status: string;
|
|
481
|
+
message: string;
|
|
472
482
|
}
|
|
473
|
-
export interface
|
|
483
|
+
export interface Resource {
|
|
474
484
|
name: string;
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
machineClass: string;
|
|
485
|
+
allocated: string;
|
|
486
|
+
usage: string;
|
|
478
487
|
}
|
|
479
|
-
export interface
|
|
480
|
-
|
|
481
|
-
|
|
488
|
+
export interface ClusterDetails {
|
|
489
|
+
externalId: string;
|
|
490
|
+
resources: Resource[];
|
|
491
|
+
controlplane: ControlPlaneStatus;
|
|
492
|
+
workers: WorkerStatus;
|
|
493
|
+
}
|
|
494
|
+
export interface ClusterState {
|
|
495
|
+
cluster: ClusterDetails;
|
|
496
|
+
versions: Version[];
|
|
497
|
+
controlplaneendpoint: string;
|
|
498
|
+
egressIP: string;
|
|
499
|
+
lastUpdated: Time;
|
|
500
|
+
lastUpdatedBy: string;
|
|
501
|
+
created: Time;
|
|
502
|
+
}
|
|
503
|
+
export interface KubernetesClusterStatus {
|
|
504
|
+
state: ClusterState;
|
|
505
|
+
phase: string;
|
|
506
|
+
conditions: Condition[];
|
|
507
|
+
}
|
|
508
|
+
export interface Autoscaling {
|
|
509
|
+
enabled: boolean;
|
|
510
|
+
minReplicas: number;
|
|
511
|
+
maxReplicas: number;
|
|
512
|
+
scalingRules: string[];
|
|
513
|
+
}
|
|
514
|
+
export interface NodePool {
|
|
482
515
|
machineClass: string;
|
|
516
|
+
provider: string;
|
|
517
|
+
name: string;
|
|
518
|
+
replicas: number;
|
|
519
|
+
autoscaling: Autoscaling;
|
|
520
|
+
metadata: MetadataDetails;
|
|
483
521
|
}
|
|
484
|
-
export interface
|
|
485
|
-
|
|
486
|
-
workers: ResourceKubernetesClusterSpecTopologyWorkers[];
|
|
522
|
+
export interface Workers {
|
|
523
|
+
nodePools: NodePool[];
|
|
487
524
|
}
|
|
488
|
-
export interface
|
|
489
|
-
|
|
490
|
-
|
|
525
|
+
export interface Storage {
|
|
526
|
+
class: string;
|
|
527
|
+
path: string;
|
|
528
|
+
size: string;
|
|
491
529
|
}
|
|
492
|
-
export interface
|
|
493
|
-
|
|
494
|
-
|
|
530
|
+
export interface MetadataDetails {
|
|
531
|
+
labels: {
|
|
532
|
+
[key: string]: string;
|
|
533
|
+
};
|
|
534
|
+
annotations: {
|
|
535
|
+
[key: string]: string;
|
|
536
|
+
};
|
|
495
537
|
}
|
|
496
|
-
export interface
|
|
497
|
-
|
|
498
|
-
|
|
538
|
+
export interface ControlPlane {
|
|
539
|
+
replicas: number;
|
|
540
|
+
provider: string;
|
|
541
|
+
machineClass: string;
|
|
542
|
+
metadata: MetadataDetails;
|
|
543
|
+
storage: Storage[];
|
|
499
544
|
}
|
|
500
|
-
export interface
|
|
501
|
-
|
|
545
|
+
export interface KubernetesClusterSpecTopology {
|
|
546
|
+
version: string;
|
|
547
|
+
controlplane: ControlPlane;
|
|
548
|
+
workers: Workers;
|
|
502
549
|
}
|
|
503
|
-
export interface
|
|
550
|
+
export interface KubernetesClusterSpecData {
|
|
504
551
|
clusterId: string;
|
|
505
|
-
clusterName: string;
|
|
506
|
-
description: string;
|
|
507
|
-
project: string;
|
|
508
552
|
provider: string;
|
|
509
|
-
|
|
510
|
-
|
|
553
|
+
datacenter: string;
|
|
554
|
+
region: string;
|
|
555
|
+
zone: string;
|
|
556
|
+
project: string;
|
|
557
|
+
workspace: string;
|
|
558
|
+
workorder: string;
|
|
511
559
|
environment: string;
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
560
|
+
}
|
|
561
|
+
export interface KubernetesClusterSpec {
|
|
562
|
+
data?: KubernetesClusterSpecData;
|
|
563
|
+
topology?: KubernetesClusterSpecTopology;
|
|
515
564
|
}
|
|
516
565
|
export interface ResourceKubernetesCluster {
|
|
517
|
-
spec:
|
|
518
|
-
status
|
|
566
|
+
spec: KubernetesClusterSpec;
|
|
567
|
+
status?: KubernetesClusterStatus;
|
|
519
568
|
}
|
|
520
569
|
export interface ResourceVirtualMachineClassSpecHardwareInstanceStorage {
|
|
521
570
|
storageClass: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"author": "ROR Team",
|
|
3
|
-
"commit": "
|
|
3
|
+
"commit": "e61432f",
|
|
4
4
|
"description": "ROR resource models",
|
|
5
5
|
"devDependencies": {
|
|
6
6
|
"prettier": "^3.4.2",
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
}
|
|
58
58
|
},
|
|
59
59
|
"typings": "dist/index.d.ts",
|
|
60
|
-
"version": "1.
|
|
60
|
+
"version": "1.2.0-rc10"
|
|
61
61
|
}
|
|
Binary file
|
package/src/resources.ts
CHANGED
|
@@ -266,7 +266,7 @@ export interface ResourceVirtualMachineStatus {
|
|
|
266
266
|
lastUpdated: Time;
|
|
267
267
|
location: string;
|
|
268
268
|
cpu: ResourceVirtualMachineCpuStatus;
|
|
269
|
-
tags:
|
|
269
|
+
tags: { [key: string]: ResourceVirtualMachineTag };
|
|
270
270
|
state: ResourceVirtualMachineState;
|
|
271
271
|
disks: ResourceVirtualMachineDiskStatus[];
|
|
272
272
|
memory: ResourceVirtualMachineMemoryStatus;
|
|
@@ -293,7 +293,7 @@ export interface ResourceVirtualMachineSpec {
|
|
|
293
293
|
memory: ResourceVirtualMachineMemorySpec;
|
|
294
294
|
}
|
|
295
295
|
export interface ResourceVirtualMachine {
|
|
296
|
-
|
|
296
|
+
externalId: string;
|
|
297
297
|
spec: ResourceVirtualMachineSpec;
|
|
298
298
|
status: ResourceVirtualMachineStatus;
|
|
299
299
|
provider: string;
|
|
@@ -352,7 +352,6 @@ export interface ResourceClusterVulnerabilityReportReportOwner {
|
|
|
352
352
|
namespace: string;
|
|
353
353
|
ownerReferences: OwnerReference[];
|
|
354
354
|
}
|
|
355
|
-
export interface Time {}
|
|
356
355
|
export interface ResourceClusterVulnerabilityReportReport {
|
|
357
356
|
severity: string;
|
|
358
357
|
score: number;
|
|
@@ -404,10 +403,17 @@ export interface ResourceProjectSpec {
|
|
|
404
403
|
export interface ResourceProject {
|
|
405
404
|
spec: ResourceProjectSpec;
|
|
406
405
|
}
|
|
406
|
+
export interface ResourceKubernetesClusterOrderStatusCondition {
|
|
407
|
+
type: string;
|
|
408
|
+
status: string;
|
|
409
|
+
lastTransitionTime: string;
|
|
410
|
+
reason: string;
|
|
411
|
+
message: string;
|
|
412
|
+
}
|
|
407
413
|
export interface ResourceClusterOrderStatus {
|
|
408
414
|
status: string;
|
|
409
415
|
phase: string;
|
|
410
|
-
conditions:
|
|
416
|
+
conditions: ResourceKubernetesClusterOrderStatusCondition[];
|
|
411
417
|
createdTime: string;
|
|
412
418
|
updatedTime: string;
|
|
413
419
|
lastObservedTime: string;
|
|
@@ -435,73 +441,112 @@ export interface ResourceClusterOrder {
|
|
|
435
441
|
spec: ResourceClusterOrderSpec;
|
|
436
442
|
status: ResourceClusterOrderStatus;
|
|
437
443
|
}
|
|
438
|
-
export interface
|
|
444
|
+
export interface Condition {
|
|
439
445
|
type: string;
|
|
440
446
|
status: string;
|
|
441
447
|
lastTransitionTime: string;
|
|
442
448
|
reason: string;
|
|
443
449
|
message: string;
|
|
444
450
|
}
|
|
445
|
-
export interface
|
|
451
|
+
export interface Time {}
|
|
452
|
+
export interface Version {
|
|
453
|
+
name: string;
|
|
454
|
+
version: string;
|
|
455
|
+
branch: string;
|
|
456
|
+
}
|
|
457
|
+
export interface NodePoolStatus {
|
|
458
|
+
name: string;
|
|
446
459
|
status: string;
|
|
447
|
-
|
|
448
|
-
conditions: ResourceKubernetesClusterStatusCondition[];
|
|
449
|
-
kubernetesVersion: string;
|
|
450
|
-
providerStatus: { [key: string]: any };
|
|
451
|
-
createdTime: string;
|
|
452
|
-
updatedTime: string;
|
|
453
|
-
lastObservedTime: string;
|
|
460
|
+
message: string;
|
|
454
461
|
}
|
|
455
|
-
export interface
|
|
456
|
-
|
|
457
|
-
|
|
462
|
+
export interface WorkerStatus {
|
|
463
|
+
nodepools: NodePoolStatus[];
|
|
464
|
+
}
|
|
465
|
+
export interface ControlPlaneStatus {
|
|
466
|
+
status: string;
|
|
467
|
+
message: string;
|
|
458
468
|
}
|
|
459
|
-
export interface
|
|
469
|
+
export interface Resource {
|
|
460
470
|
name: string;
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
machineClass: string;
|
|
471
|
+
allocated: string;
|
|
472
|
+
usage: string;
|
|
464
473
|
}
|
|
465
|
-
export interface
|
|
466
|
-
|
|
467
|
-
|
|
474
|
+
export interface ClusterDetails {
|
|
475
|
+
externalId: string;
|
|
476
|
+
resources: Resource[];
|
|
477
|
+
controlplane: ControlPlaneStatus;
|
|
478
|
+
workers: WorkerStatus;
|
|
479
|
+
}
|
|
480
|
+
export interface ClusterState {
|
|
481
|
+
cluster: ClusterDetails;
|
|
482
|
+
versions: Version[];
|
|
483
|
+
controlplaneendpoint: string;
|
|
484
|
+
egressIP: string;
|
|
485
|
+
lastUpdated: Time;
|
|
486
|
+
lastUpdatedBy: string;
|
|
487
|
+
created: Time;
|
|
488
|
+
}
|
|
489
|
+
export interface KubernetesClusterStatus {
|
|
490
|
+
state: ClusterState;
|
|
491
|
+
phase: string;
|
|
492
|
+
conditions: Condition[];
|
|
493
|
+
}
|
|
494
|
+
export interface Autoscaling {
|
|
495
|
+
enabled: boolean;
|
|
496
|
+
minReplicas: number;
|
|
497
|
+
maxReplicas: number;
|
|
498
|
+
scalingRules: string[];
|
|
499
|
+
}
|
|
500
|
+
export interface NodePool {
|
|
468
501
|
machineClass: string;
|
|
502
|
+
provider: string;
|
|
503
|
+
name: string;
|
|
504
|
+
replicas: number;
|
|
505
|
+
autoscaling: Autoscaling;
|
|
506
|
+
metadata: MetadataDetails;
|
|
469
507
|
}
|
|
470
|
-
export interface
|
|
471
|
-
|
|
472
|
-
workers: ResourceKubernetesClusterSpecTopologyWorkers[];
|
|
508
|
+
export interface Workers {
|
|
509
|
+
nodePools: NodePool[];
|
|
473
510
|
}
|
|
474
|
-
export interface
|
|
475
|
-
|
|
476
|
-
|
|
511
|
+
export interface Storage {
|
|
512
|
+
class: string;
|
|
513
|
+
path: string;
|
|
514
|
+
size: string;
|
|
477
515
|
}
|
|
478
|
-
export interface
|
|
479
|
-
|
|
480
|
-
|
|
516
|
+
export interface MetadataDetails {
|
|
517
|
+
labels: { [key: string]: string };
|
|
518
|
+
annotations: { [key: string]: string };
|
|
481
519
|
}
|
|
482
|
-
export interface
|
|
483
|
-
|
|
484
|
-
|
|
520
|
+
export interface ControlPlane {
|
|
521
|
+
replicas: number;
|
|
522
|
+
provider: string;
|
|
523
|
+
machineClass: string;
|
|
524
|
+
metadata: MetadataDetails;
|
|
525
|
+
storage: Storage[];
|
|
485
526
|
}
|
|
486
|
-
export interface
|
|
487
|
-
|
|
527
|
+
export interface KubernetesClusterSpecTopology {
|
|
528
|
+
version: string;
|
|
529
|
+
controlplane: ControlPlane;
|
|
530
|
+
workers: Workers;
|
|
488
531
|
}
|
|
489
|
-
export interface
|
|
532
|
+
export interface KubernetesClusterSpecData {
|
|
490
533
|
clusterId: string;
|
|
491
|
-
clusterName: string;
|
|
492
|
-
description: string;
|
|
493
|
-
project: string;
|
|
494
534
|
provider: string;
|
|
495
|
-
|
|
496
|
-
|
|
535
|
+
datacenter: string;
|
|
536
|
+
region: string;
|
|
537
|
+
zone: string;
|
|
538
|
+
project: string;
|
|
539
|
+
workspace: string;
|
|
540
|
+
workorder: string;
|
|
497
541
|
environment: string;
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
542
|
+
}
|
|
543
|
+
export interface KubernetesClusterSpec {
|
|
544
|
+
data?: KubernetesClusterSpecData;
|
|
545
|
+
topology?: KubernetesClusterSpecTopology;
|
|
501
546
|
}
|
|
502
547
|
export interface ResourceKubernetesCluster {
|
|
503
|
-
spec:
|
|
504
|
-
status
|
|
548
|
+
spec: KubernetesClusterSpec;
|
|
549
|
+
status?: KubernetesClusterStatus;
|
|
505
550
|
}
|
|
506
551
|
export interface ResourceVirtualMachineClassSpecHardwareInstanceStorage {
|
|
507
552
|
storageClass: string;
|
|
Binary file
|