@controlplane/schema 1.0.3 → 1.0.5
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/build/src/interfaces/base.d.ts +6 -2
- package/build/src/interfaces/command.d.ts +25 -19
- package/build/src/interfaces/containerstatus.d.ts +6 -0
- package/build/src/interfaces/crmevent.d.ts +39 -0
- package/build/src/interfaces/crmevent.js +3 -0
- package/build/src/interfaces/cronjob.d.ts +3 -2
- package/build/src/interfaces/deployment.d.ts +1 -0
- package/build/src/interfaces/discovery.d.ts +2 -0
- package/build/src/interfaces/domain.d.ts +19 -3
- package/build/src/interfaces/env.d.ts +0 -1
- package/build/src/interfaces/envoyCommon.d.ts +5 -4
- package/build/src/interfaces/envoyHttp.d.ts +1 -1
- package/build/src/interfaces/event.d.ts +2 -2
- package/build/src/interfaces/gvc.d.ts +15 -0
- package/build/src/interfaces/identity.d.ts +13 -1
- package/build/src/interfaces/internal.d.ts +0 -0
- package/build/src/interfaces/internal.js +2 -0
- package/build/src/interfaces/ipSet.d.ts +37 -0
- package/build/src/interfaces/ipSet.js +3 -0
- package/build/src/interfaces/locationDns.d.ts +11 -0
- package/build/src/interfaces/locationDns.js +3 -0
- package/build/src/interfaces/mk8s.d.ts +14 -3
- package/build/src/interfaces/mk8sAddons.d.ts +10 -0
- package/build/src/interfaces/mk8sAws.d.ts +11 -2
- package/build/src/interfaces/mk8sAzure.d.ts +53 -0
- package/build/src/interfaces/mk8sAzure.js +3 -0
- package/build/src/interfaces/mk8sCommon.d.ts +27 -1
- package/build/src/interfaces/mk8sDigitalOcean.d.ts +32 -0
- package/build/src/interfaces/mk8sDigitalOcean.js +3 -0
- package/build/src/interfaces/mk8sGcp.d.ts +45 -0
- package/build/src/interfaces/mk8sGcp.js +3 -0
- package/build/src/interfaces/mk8sGeneric.d.ts +1 -0
- package/build/src/interfaces/mk8sHetzner.d.ts +9 -4
- package/build/src/interfaces/mk8sLambdalabs.d.ts +7 -4
- package/build/src/interfaces/mk8sLinode.d.ts +13 -5
- package/build/src/interfaces/mk8sOblivus.d.ts +14 -2
- package/build/src/interfaces/mk8sPaperspace.d.ts +6 -1
- package/build/src/interfaces/mk8sTriton.d.ts +73 -0
- package/build/src/interfaces/mk8sTriton.js +3 -0
- package/build/src/interfaces/org.d.ts +10 -3
- package/build/src/interfaces/orgLogging.d.ts +3 -0
- package/build/src/interfaces/outboxmessage.d.ts +6 -0
- package/build/src/interfaces/outboxmessage.js +3 -0
- package/build/src/interfaces/permissions.d.ts +1 -1
- package/build/src/interfaces/query.d.ts +4 -0
- package/build/src/interfaces/valkey.d.ts +0 -0
- package/build/src/interfaces/valkey.js +2 -0
- package/build/src/interfaces/volumeSet.d.ts +34 -14
- package/build/src/interfaces/workload.d.ts +186 -13
- package/build/src/interfaces/workloadOptions.d.ts +65 -5
- package/package.json +1 -1
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { Labels, Taints, SshPublicKey, AutoscalerConfig } from './mk8sCommon';
|
|
2
|
+
export interface Image {
|
|
3
|
+
recommended?: 'ubuntu/noble-24.04' | 'ubuntu/jammy-22.04' | 'ubuntu/focal-20.04' | 'debian/bookworm-12' | 'debian/bullseye-11';
|
|
4
|
+
reference?: {
|
|
5
|
+
publisher: string;
|
|
6
|
+
offer: string;
|
|
7
|
+
sku: string;
|
|
8
|
+
version: string;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export interface AzurePool {
|
|
12
|
+
name: string;
|
|
13
|
+
labels?: Labels;
|
|
14
|
+
taints?: Taints;
|
|
15
|
+
size: string;
|
|
16
|
+
subnetId: string;
|
|
17
|
+
zones: number[];
|
|
18
|
+
overrideImage?: Image;
|
|
19
|
+
bootDiskSize: number;
|
|
20
|
+
minSize: number;
|
|
21
|
+
maxSize: number;
|
|
22
|
+
}
|
|
23
|
+
export interface AzureProvider {
|
|
24
|
+
location: 'centralus' | 'eastus2' | 'eastus' | 'southcentralus';
|
|
25
|
+
subscriptionId: string;
|
|
26
|
+
sdkSecretLink: string;
|
|
27
|
+
resourceGroup: string;
|
|
28
|
+
networking?: {
|
|
29
|
+
serviceNetwork?: '10.43.0.0/16' | '192.168.0.0/16';
|
|
30
|
+
podNetwork?: '10.42.0.0/16' | '172.16.0.0/15' | '172.18.0.0/15' | '172.20.0.0/15' | '172.22.0.0/15' | '172.24.0.0/15' | '172.26.0.0/15' | '172.28.0.0/15' | '172.30.0.0/15';
|
|
31
|
+
dnsForwarder?: string;
|
|
32
|
+
};
|
|
33
|
+
preInstallScript?: string;
|
|
34
|
+
image: {
|
|
35
|
+
recommended?: 'ubuntu/noble-24.04' | 'ubuntu/jammy-22.04' | 'ubuntu/focal-20.04' | 'debian/bookworm-12' | 'debian/bullseye-11';
|
|
36
|
+
reference?: {
|
|
37
|
+
publisher: string;
|
|
38
|
+
offer: string;
|
|
39
|
+
sku: string;
|
|
40
|
+
version: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
sshKeys: SshPublicKey[];
|
|
44
|
+
networkId: string;
|
|
45
|
+
tags?: {
|
|
46
|
+
[x: string]: string;
|
|
47
|
+
};
|
|
48
|
+
nodePools?: AzurePool[];
|
|
49
|
+
autoscaler?: AutoscalerConfig;
|
|
50
|
+
}
|
|
51
|
+
export interface AzureProviderStatus {
|
|
52
|
+
[x: string]: any;
|
|
53
|
+
}
|
|
@@ -11,7 +11,7 @@ export type Taints = Taint[];
|
|
|
11
11
|
export type NodePoolName = string;
|
|
12
12
|
export type SshPublicKey = string;
|
|
13
13
|
export interface AutoscalerConfig {
|
|
14
|
-
expander: ('random' | 'most-pods' | 'least-waste' | 'price'
|
|
14
|
+
expander: ('random' | 'most-pods' | 'least-waste' | 'price')[];
|
|
15
15
|
unneededTime: string;
|
|
16
16
|
unreadyTime: string;
|
|
17
17
|
utilizationThreshold: number;
|
|
@@ -22,3 +22,29 @@ export interface UnmanagedPool {
|
|
|
22
22
|
taints?: Taints;
|
|
23
23
|
}
|
|
24
24
|
export type PreInstallScript = string;
|
|
25
|
+
export interface CacertsRes {
|
|
26
|
+
cacerts?: string;
|
|
27
|
+
}
|
|
28
|
+
export interface ReadyRes {
|
|
29
|
+
ready?: boolean;
|
|
30
|
+
message?: string;
|
|
31
|
+
}
|
|
32
|
+
export interface JoinBody {
|
|
33
|
+
[x: string]: any;
|
|
34
|
+
}
|
|
35
|
+
export interface JoinRes {
|
|
36
|
+
script?: string;
|
|
37
|
+
}
|
|
38
|
+
export interface InitBody {
|
|
39
|
+
[x: string]: any;
|
|
40
|
+
}
|
|
41
|
+
export interface InitRes {
|
|
42
|
+
script?: string;
|
|
43
|
+
}
|
|
44
|
+
export interface KubeConfigBody {
|
|
45
|
+
[x: string]: any;
|
|
46
|
+
}
|
|
47
|
+
export interface KubeConfigRes {
|
|
48
|
+
kubeconfig?: string;
|
|
49
|
+
fileName?: string;
|
|
50
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Labels, Taints, PreInstallScript, SshPublicKey, AutoscalerConfig } from './mk8sCommon';
|
|
2
|
+
export type ValidTag = string;
|
|
3
|
+
export interface DigitalOceanPool {
|
|
4
|
+
name: string;
|
|
5
|
+
labels?: Labels;
|
|
6
|
+
taints?: Taints;
|
|
7
|
+
dropletSize: string;
|
|
8
|
+
overrideImage?: string;
|
|
9
|
+
minSize: number;
|
|
10
|
+
maxSize: number;
|
|
11
|
+
}
|
|
12
|
+
export interface DigitalOceanProvider {
|
|
13
|
+
region: 'ams3' | 'blr1' | 'fra1' | 'lon1' | 'nyc1' | 'nyc2' | 'nyc3' | 'sfo2' | 'sfo3' | 'sgp1' | 'syd1' | 'tor1';
|
|
14
|
+
digitalOceanTags?: ValidTag[];
|
|
15
|
+
networking?: {
|
|
16
|
+
serviceNetwork?: '10.43.0.0/16' | '192.168.0.0/16';
|
|
17
|
+
podNetwork?: '10.42.0.0/16' | '172.16.0.0/15' | '172.18.0.0/15' | '172.20.0.0/15' | '172.22.0.0/15' | '172.24.0.0/15' | '172.26.0.0/15' | '172.28.0.0/15' | '172.30.0.0/15';
|
|
18
|
+
dnsForwarder?: string;
|
|
19
|
+
};
|
|
20
|
+
preInstallScript?: PreInstallScript;
|
|
21
|
+
tokenSecretLink: string;
|
|
22
|
+
vpcId: string;
|
|
23
|
+
nodePools?: DigitalOceanPool[];
|
|
24
|
+
image: string;
|
|
25
|
+
sshKeys: string[];
|
|
26
|
+
extraSshKeys?: SshPublicKey[];
|
|
27
|
+
autoscaler?: AutoscalerConfig;
|
|
28
|
+
reservedIPs?: string[];
|
|
29
|
+
}
|
|
30
|
+
export interface DigitalOceanProviderStatus {
|
|
31
|
+
[x: string]: any;
|
|
32
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Labels, Taints, AutoscalerConfig } from './mk8sCommon';
|
|
2
|
+
export interface Image {
|
|
3
|
+
recommended?: 'ubuntu-2004-lts' | 'ubuntu-2204-lts' | 'ubuntu-2404-lts';
|
|
4
|
+
exact?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface GcpPool {
|
|
7
|
+
name: string;
|
|
8
|
+
labels?: Labels;
|
|
9
|
+
taints?: Taints;
|
|
10
|
+
instanceType: string;
|
|
11
|
+
overrideImage?: Image;
|
|
12
|
+
bootDiskSize: number;
|
|
13
|
+
minSize: number;
|
|
14
|
+
maxSize: number;
|
|
15
|
+
subnetId: string;
|
|
16
|
+
zones?: string[];
|
|
17
|
+
targetShape?: 'ANY' | 'BALANCED' | 'CLOSEST_TO_HEALTHY';
|
|
18
|
+
extraSecurityGroupIds?: string[];
|
|
19
|
+
}
|
|
20
|
+
export interface GcpProvider {
|
|
21
|
+
region: 'africa-south1' | 'asia-east1' | 'asia-east2' | 'asia-northeast1' | 'asia-northeast2' | 'asia-northeast3' | 'asia-south1' | 'asia-south2' | 'asia-southeast1' | 'asia-southeast2' | 'australia-southeast1' | 'australia-southeast2' | 'europe-central2' | 'europe-north1' | 'europe-southwest1' | 'europe-west1' | 'europe-west10' | 'europe-west12' | 'europe-west2' | 'europe-west3' | 'europe-west4' | 'europe-west6' | 'europe-west8' | 'europe-west9' | 'me-central1' | 'me-central2' | 'me-west1' | 'northamerica-northeast1' | 'northamerica-northeast2' | 'southamerica-east1' | 'southamerica-west1' | 'us-central1' | 'us-east1' | 'us-east4' | 'us-east5' | 'us-south1' | 'us-west1' | 'us-west2' | 'us-west3' | 'us-west4';
|
|
22
|
+
gcpTags?: {
|
|
23
|
+
[x: string]: string;
|
|
24
|
+
};
|
|
25
|
+
skipCreateRoles?: boolean;
|
|
26
|
+
networking?: {
|
|
27
|
+
serviceNetwork?: '10.43.0.0/16' | '192.168.0.0/16';
|
|
28
|
+
podNetwork?: 'vpc' | '10.42.0.0/16' | '172.16.0.0/15' | '172.18.0.0/15' | '172.20.0.0/15' | '172.22.0.0/15' | '172.24.0.0/15' | '172.26.0.0/15' | '172.28.0.0/15' | '172.30.0.0/15';
|
|
29
|
+
};
|
|
30
|
+
preInstallScript?: string;
|
|
31
|
+
image: {
|
|
32
|
+
recommended?: 'ubuntu-2004-lts' | 'ubuntu-2204-lts' | 'ubuntu-2404-lts';
|
|
33
|
+
exact?: string;
|
|
34
|
+
};
|
|
35
|
+
deployServiceAccount: string;
|
|
36
|
+
vpcId: string;
|
|
37
|
+
projectId: string;
|
|
38
|
+
keyPair?: string;
|
|
39
|
+
diskEncryptionKey?: string;
|
|
40
|
+
nodePools?: GcpPool[];
|
|
41
|
+
autoscaler?: AutoscalerConfig;
|
|
42
|
+
}
|
|
43
|
+
export interface GcpProviderStatus {
|
|
44
|
+
[x: string]: any;
|
|
45
|
+
}
|
|
@@ -9,6 +9,7 @@ export interface GenericProvider {
|
|
|
9
9
|
networking?: {
|
|
10
10
|
serviceNetwork?: '10.43.0.0/16' | '192.168.0.0/16';
|
|
11
11
|
podNetwork?: '10.42.0.0/16' | '172.16.0.0/15' | '172.18.0.0/15' | '172.20.0.0/15' | '172.22.0.0/15' | '172.24.0.0/15' | '172.26.0.0/15' | '172.28.0.0/15' | '172.30.0.0/15';
|
|
12
|
+
dnsForwarder?: string;
|
|
12
13
|
};
|
|
13
14
|
nodePools?: GenericPool[];
|
|
14
15
|
}
|
|
@@ -13,15 +13,17 @@ export interface HetznerPool {
|
|
|
13
13
|
minSize: number;
|
|
14
14
|
maxSize: number;
|
|
15
15
|
}
|
|
16
|
+
export interface NetworkingConfig {
|
|
17
|
+
serviceNetwork?: '10.43.0.0/16' | '192.168.0.0/16';
|
|
18
|
+
podNetwork?: '10.42.0.0/16' | '172.16.0.0/15' | '172.18.0.0/15' | '172.20.0.0/15' | '172.22.0.0/15' | '172.24.0.0/15' | '172.26.0.0/15' | '172.28.0.0/15' | '172.30.0.0/15';
|
|
19
|
+
dnsForwarder?: string;
|
|
20
|
+
}
|
|
16
21
|
export interface HetznerProvider {
|
|
17
22
|
region: 'fsn1' | 'nbg1' | 'hel1' | 'ash' | 'hil';
|
|
18
23
|
hetznerLabels?: {
|
|
19
24
|
[x: string]: string;
|
|
20
25
|
};
|
|
21
|
-
networking?:
|
|
22
|
-
serviceNetwork?: '10.43.0.0/16' | '192.168.0.0/16';
|
|
23
|
-
podNetwork?: '10.42.0.0/16' | '172.16.0.0/15' | '172.18.0.0/15' | '172.20.0.0/15' | '172.22.0.0/15' | '172.24.0.0/15' | '172.26.0.0/15' | '172.28.0.0/15' | '172.30.0.0/15';
|
|
24
|
-
};
|
|
26
|
+
networking?: NetworkingConfig;
|
|
25
27
|
preInstallScript?: PreInstallScript;
|
|
26
28
|
tokenSecretLink: string;
|
|
27
29
|
networkId: string;
|
|
@@ -31,6 +33,9 @@ export interface HetznerProvider {
|
|
|
31
33
|
image: string;
|
|
32
34
|
sshKey?: string;
|
|
33
35
|
autoscaler?: AutoscalerConfig;
|
|
36
|
+
floatingIPSelector?: {
|
|
37
|
+
[x: string]: string;
|
|
38
|
+
};
|
|
34
39
|
}
|
|
35
40
|
export interface HetznerProviderStatus {
|
|
36
41
|
[x: string]: any;
|
|
@@ -1,18 +1,21 @@
|
|
|
1
|
-
import { Labels, Taints, UnmanagedPool } from './mk8sCommon';
|
|
1
|
+
import { Labels, Taints, UnmanagedPool, AutoscalerConfig, PreInstallScript } from './mk8sCommon';
|
|
2
2
|
export interface LambdalabsPool {
|
|
3
3
|
name: string;
|
|
4
4
|
labels?: Labels;
|
|
5
5
|
taints?: Taints;
|
|
6
6
|
minSize: number;
|
|
7
7
|
maxSize: number;
|
|
8
|
-
instanceType: 'gpu_1x_a10' | 'gpu_1x_a100' | 'gpu_1x_a100_sxm4' | 'gpu_1x_a6000' | 'gpu_1x_h100_pcie' | 'gpu_1x_rtx6000' | 'gpu_2x_a100' | 'gpu_2x_a6000' | 'gpu_4x_a100' | 'gpu_4x_a6000' | '
|
|
8
|
+
instanceType: 'cpu_4x_general' | 'gpu_1x_a10' | 'gpu_1x_a100' | 'gpu_1x_a100_sxm4' | 'gpu_1x_a6000' | 'gpu_1x_h100_pcie' | 'gpu_1x_rtx6000' | 'gpu_2x_a100' | 'gpu_2x_a6000' | 'gpu_4x_a100' | 'gpu_4x_a6000' | 'gpu_8x_a100' | 'gpu_8x_a100_80gb_sxm4' | 'gpu_8x_h100_sxm5' | 'gpu_8x_v100';
|
|
9
9
|
}
|
|
10
10
|
export interface LambdalabsProvider {
|
|
11
|
-
region: '
|
|
11
|
+
region: 'asia-northeast-1' | 'asia-northeast-2' | 'asia-south-1' | 'australia-southeast-1' | 'europe-central-1' | 'europe-south-1' | 'me-west-1' | 'us-east-1' | 'us-midwest-1' | 'us-south-1' | 'us-west-1' | 'us-west-2' | 'us-west-3';
|
|
12
12
|
tokenSecretLink: string;
|
|
13
13
|
nodePools?: LambdalabsPool[];
|
|
14
|
-
|
|
14
|
+
sshKey: string;
|
|
15
15
|
unmanagedNodePools?: UnmanagedPool[];
|
|
16
|
+
autoscaler?: AutoscalerConfig;
|
|
17
|
+
fileSystems?: string[];
|
|
18
|
+
preInstallScript?: PreInstallScript;
|
|
16
19
|
}
|
|
17
20
|
export interface LambdalabsProviderStatus {
|
|
18
21
|
[x: string]: any;
|
|
@@ -1,21 +1,29 @@
|
|
|
1
|
-
import { Labels, Taints, AutoscalerConfig } from './mk8sCommon';
|
|
1
|
+
import { Labels, Taints, PreInstallScript, AutoscalerConfig } from './mk8sCommon';
|
|
2
2
|
export interface LinodePool {
|
|
3
3
|
name: string;
|
|
4
4
|
labels?: Labels;
|
|
5
5
|
taints?: Taints;
|
|
6
|
-
serverType:
|
|
6
|
+
serverType: string;
|
|
7
7
|
overrideImage?: string;
|
|
8
|
+
subnetId: string;
|
|
8
9
|
minSize: number;
|
|
9
10
|
maxSize: number;
|
|
10
11
|
}
|
|
11
12
|
export interface LinodeProvider {
|
|
12
|
-
region:
|
|
13
|
+
region: string;
|
|
13
14
|
tokenSecretLink: string;
|
|
14
|
-
|
|
15
|
-
firewall?: string;
|
|
15
|
+
firewallId?: string;
|
|
16
16
|
nodePools?: LinodePool[];
|
|
17
17
|
image: string;
|
|
18
18
|
authorizedUsers?: string[];
|
|
19
|
+
authorizedKeys?: string[];
|
|
20
|
+
vpcId: string;
|
|
21
|
+
preInstallScript?: PreInstallScript;
|
|
22
|
+
networking?: {
|
|
23
|
+
serviceNetwork?: '10.43.0.0/16' | '192.168.0.0/16';
|
|
24
|
+
podNetwork?: '10.42.0.0/16' | '172.16.0.0/15' | '172.18.0.0/15' | '172.20.0.0/15' | '172.22.0.0/15' | '172.24.0.0/15' | '172.26.0.0/15' | '172.28.0.0/15' | '172.30.0.0/15';
|
|
25
|
+
dnsForwarder?: string;
|
|
26
|
+
};
|
|
19
27
|
autoscaler?: AutoscalerConfig;
|
|
20
28
|
}
|
|
21
29
|
export interface LinodeProviderStatus {
|
|
@@ -1,8 +1,20 @@
|
|
|
1
|
-
import { UnmanagedPool } from './mk8sCommon';
|
|
1
|
+
import { Labels, Taints, UnmanagedPool, AutoscalerConfig, PreInstallScript } from './mk8sCommon';
|
|
2
|
+
export interface OblivusPool {
|
|
3
|
+
name: string;
|
|
4
|
+
labels?: Labels;
|
|
5
|
+
taints?: Taints;
|
|
6
|
+
minSize: number;
|
|
7
|
+
maxSize: number;
|
|
8
|
+
flavor: 'A100_NVLINK_80GB_x8' | 'A100_PCIE_80GB_x1' | 'A100_PCIE_80GB_x2' | 'A100_PCIE_80GB_x4' | 'A100_PCIE_80GB_x8' | 'H100_NVLINK_80GB_x8' | 'H100_PCIE_80GB_x1' | 'H100_PCIE_80GB_x2' | 'H100_PCIE_80GB_x4' | 'H100_PCIE_80GB_x8' | 'INTEL_XEON_V3_x16' | 'INTEL_XEON_V3_x4' | 'INTEL_XEON_V3_x8' | 'L40_x1' | 'L40_x2' | 'L40_x4' | 'L40_x8' | 'RTX_A4000_x1' | 'RTX_A4000_x2' | 'RTX_A4000_x4' | 'RTX_A4000_x8' | 'RTX_A5000_x1' | 'RTX_A5000_x2' | 'RTX_A5000_x4' | 'RTX_A5000_x8' | 'RTX_A6000_x1' | 'RTX_A6000_x2' | 'RTX_A6000_x4' | 'RTX_A6000_x8';
|
|
9
|
+
}
|
|
2
10
|
export interface OblivusProvider {
|
|
3
|
-
datacenter: '
|
|
11
|
+
datacenter: 'MON1' | 'OSL1';
|
|
4
12
|
tokenSecretLink: string;
|
|
13
|
+
nodePools?: OblivusPool[];
|
|
14
|
+
sshKeys?: string[];
|
|
5
15
|
unmanagedNodePools?: UnmanagedPool[];
|
|
16
|
+
autoscaler?: AutoscalerConfig;
|
|
17
|
+
preInstallScript?: PreInstallScript;
|
|
6
18
|
}
|
|
7
19
|
export interface OblivusProviderStatus {
|
|
8
20
|
[x: string]: any;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { Labels, Taints, AutoscalerConfig, UnmanagedPool } from './mk8sCommon';
|
|
1
|
+
import { Labels, Taints, AutoscalerConfig, UnmanagedPool, PreInstallScript } from './mk8sCommon';
|
|
2
2
|
export interface PaperspacePool {
|
|
3
3
|
name: string;
|
|
4
4
|
labels?: Labels;
|
|
5
5
|
taints?: Taints;
|
|
6
6
|
minSize: number;
|
|
7
7
|
maxSize: number;
|
|
8
|
+
publicIpType: 'none' | 'dynamic' | 'static';
|
|
9
|
+
bootDiskSize?: number;
|
|
8
10
|
machineType: 'A100' | 'A100-80G' | 'A100-80Gx2' | 'A100-80Gx4' | 'A100-80Gx8' | 'A100x2' | 'A100x4' | 'A100x8' | 'A4000' | 'A4000x2' | 'A4000x4' | 'A5000' | 'A5000x2' | 'A5000x4' | 'A6000' | 'A6000x2' | 'A6000x4' | 'C10' | 'C2' | 'C3' | 'C4' | 'C5' | 'C6' | 'C7' | 'C8' | 'C9' | 'GPU+' | 'P4000' | 'P4000x2' | 'P4000x4' | 'P5000' | 'P5000x2' | 'P6000' | 'P6000x2' | 'RTX4000' | 'RTX5000' | 'RTX5000x2' | 'V100' | 'V100-32G' | 'V100-32Gx2' | 'V100-32Gx4';
|
|
9
11
|
}
|
|
10
12
|
export interface PaperspaceProvider {
|
|
@@ -14,6 +16,9 @@ export interface PaperspaceProvider {
|
|
|
14
16
|
nodePools?: PaperspacePool[];
|
|
15
17
|
autoscaler?: AutoscalerConfig;
|
|
16
18
|
unmanagedNodePools?: UnmanagedPool[];
|
|
19
|
+
preInstallScript?: PreInstallScript;
|
|
20
|
+
userIds?: string[];
|
|
21
|
+
networkId: string;
|
|
17
22
|
}
|
|
18
23
|
export interface PaperspaceProviderStatus {
|
|
19
24
|
[x: string]: any;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { Labels, Taints, PreInstallScript, SshPublicKey, AutoscalerConfig } from './mk8sCommon';
|
|
2
|
+
export interface TritonPool {
|
|
3
|
+
name: string;
|
|
4
|
+
labels?: Labels;
|
|
5
|
+
taints?: Taints;
|
|
6
|
+
packageId: string;
|
|
7
|
+
overrideImageId?: string;
|
|
8
|
+
publicNetworkId?: string;
|
|
9
|
+
privateNetworkIds?: string[];
|
|
10
|
+
tritonTags?: {
|
|
11
|
+
[x: string]: string;
|
|
12
|
+
};
|
|
13
|
+
minSize: number;
|
|
14
|
+
maxSize: number;
|
|
15
|
+
}
|
|
16
|
+
export interface Manual {
|
|
17
|
+
packageId: string;
|
|
18
|
+
imageId: string;
|
|
19
|
+
publicNetworkId: string;
|
|
20
|
+
privateNetworkIds?: string[];
|
|
21
|
+
metadata?: {
|
|
22
|
+
[x: string]: string;
|
|
23
|
+
};
|
|
24
|
+
tags?: {
|
|
25
|
+
[x: string]: string;
|
|
26
|
+
};
|
|
27
|
+
logging?: {
|
|
28
|
+
nodePort?: number;
|
|
29
|
+
externalSyslog?: string;
|
|
30
|
+
};
|
|
31
|
+
count: number;
|
|
32
|
+
cnsInternalDomain: string;
|
|
33
|
+
cnsPublicDomain: string;
|
|
34
|
+
}
|
|
35
|
+
export interface LoadBalancerConfig {
|
|
36
|
+
manual?: Manual;
|
|
37
|
+
gateway?: {};
|
|
38
|
+
}
|
|
39
|
+
export interface SdcConnection {
|
|
40
|
+
url: string;
|
|
41
|
+
account: string;
|
|
42
|
+
user?: string;
|
|
43
|
+
privateKeySecretLink: string;
|
|
44
|
+
}
|
|
45
|
+
export interface TritonProvider {
|
|
46
|
+
connection: {
|
|
47
|
+
url: string;
|
|
48
|
+
account: string;
|
|
49
|
+
user?: string;
|
|
50
|
+
privateKeySecretLink: string;
|
|
51
|
+
};
|
|
52
|
+
networking?: {
|
|
53
|
+
serviceNetwork?: '10.43.0.0/16' | '192.168.0.0/16';
|
|
54
|
+
podNetwork?: '10.42.0.0/16' | '172.16.0.0/15' | '172.18.0.0/15' | '172.20.0.0/15' | '172.22.0.0/15' | '172.24.0.0/15' | '172.26.0.0/15' | '172.28.0.0/15' | '172.30.0.0/15';
|
|
55
|
+
dnsForwarder?: string;
|
|
56
|
+
};
|
|
57
|
+
preInstallScript?: PreInstallScript;
|
|
58
|
+
location: 'aws-eu-central-1' | 'aws-us-east-2' | 'aws-us-west-2' | 'gcp-me-west1' | 'gcp-us-east1';
|
|
59
|
+
loadBalancer?: LoadBalancerConfig;
|
|
60
|
+
privateNetworkId: string;
|
|
61
|
+
firewallEnabled?: boolean;
|
|
62
|
+
nodePools?: TritonPool[];
|
|
63
|
+
imageId: string;
|
|
64
|
+
sshKeys?: SshPublicKey[];
|
|
65
|
+
autoscaler?: AutoscalerConfig;
|
|
66
|
+
}
|
|
67
|
+
export interface TritonProviderStatus {
|
|
68
|
+
[x: string]: any;
|
|
69
|
+
}
|
|
70
|
+
export interface TritonJoinParams {
|
|
71
|
+
nodePoolName: string;
|
|
72
|
+
[x: string]: any;
|
|
73
|
+
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { S3Logging, CoralogixLogging, DatadogLogging, LogzioLogging, ElasticLogging, CloudWatchLogging, FluentdLogging, StackdriverLogging, SyslogLogging } from './orgLogging';
|
|
2
2
|
import { Tracing } from './tracing';
|
|
3
|
-
import {
|
|
3
|
+
import { Kind, Tags, Links } from './base';
|
|
4
4
|
export interface OrgStatus {
|
|
5
5
|
accountLink?: string;
|
|
6
6
|
active?: boolean;
|
|
7
|
+
endpointPrefix?: string;
|
|
7
8
|
}
|
|
8
9
|
export interface AuthConfig {
|
|
9
10
|
domainAutoMembers?: string[];
|
|
@@ -13,6 +14,7 @@ export interface ObservabilityConfig {
|
|
|
13
14
|
logsRetentionDays?: number;
|
|
14
15
|
metricsRetentionDays?: number;
|
|
15
16
|
tracesRetentionDays?: number;
|
|
17
|
+
defaultAlertEmails?: string[];
|
|
16
18
|
}
|
|
17
19
|
export interface ThreatDetection {
|
|
18
20
|
enabled: boolean;
|
|
@@ -49,14 +51,18 @@ export interface OrgSpec {
|
|
|
49
51
|
tracing?: Tracing;
|
|
50
52
|
sessionTimeoutSeconds?: number;
|
|
51
53
|
authConfig?: AuthConfig;
|
|
52
|
-
observability?:
|
|
54
|
+
observability?: {
|
|
55
|
+
logsRetentionDays?: number;
|
|
56
|
+
metricsRetentionDays?: number;
|
|
57
|
+
tracesRetentionDays?: number;
|
|
58
|
+
defaultAlertEmails?: string[];
|
|
59
|
+
};
|
|
53
60
|
security?: {
|
|
54
61
|
threatDetection?: ThreatDetection;
|
|
55
62
|
};
|
|
56
63
|
}
|
|
57
64
|
export interface Org {
|
|
58
65
|
id?: string;
|
|
59
|
-
name?: Name;
|
|
60
66
|
kind?: Kind;
|
|
61
67
|
version?: number;
|
|
62
68
|
description?: string;
|
|
@@ -64,6 +70,7 @@ export interface Org {
|
|
|
64
70
|
created?: Date;
|
|
65
71
|
lastModified?: Date;
|
|
66
72
|
links?: Links;
|
|
73
|
+
name?: string;
|
|
67
74
|
spec?: OrgSpec;
|
|
68
75
|
status?: OrgStatus;
|
|
69
76
|
}
|
|
@@ -29,6 +29,9 @@ export interface CloudWatchLogging {
|
|
|
29
29
|
retentionDays?: number;
|
|
30
30
|
groupName: string;
|
|
31
31
|
streamName: string;
|
|
32
|
+
extractFields?: {
|
|
33
|
+
[x: string]: string;
|
|
34
|
+
};
|
|
32
35
|
}
|
|
33
36
|
export interface CoralogixLogging {
|
|
34
37
|
cluster: 'coralogix.com' | 'coralogix.us' | 'app.coralogix.in' | 'app.eu2.coralogix.com' | 'app.coralogixsg.com';
|
|
@@ -6,7 +6,7 @@ export interface Permission {
|
|
|
6
6
|
export interface Permissions {
|
|
7
7
|
links?: Links;
|
|
8
8
|
kind: 'permissions';
|
|
9
|
-
targetKind: 'org' | 'cloudaccount' | 'policy' | 'user' | 'group' | 'resource' | 'task' | 'permissions' | 'serviceaccount' | 'secret' | 'location' | 'gvc' | 'workload' | 'quota' | 'identity' | 'deployment' | 'event' | 'domain' | 'image' | 'resourcepolicy' | 'agent' | 'accessreport' | 'policymembership' | 'dbcluster' | 'auditctx' | 'memcachecluster' | 'spicedbcluster' | 'tenant' | 'mk8s' | 'command' | 'imagesummary' | 'volumeset';
|
|
9
|
+
targetKind: 'org' | 'cloudaccount' | 'policy' | 'user' | 'group' | 'resource' | 'task' | 'permissions' | 'serviceaccount' | 'secret' | 'location' | 'gvc' | 'workload' | 'quota' | 'identity' | 'deployment' | 'event' | 'domain' | 'image' | 'ipset' | 'resourcepolicy' | 'agent' | 'accessreport' | 'policymembership' | 'dbcluster' | 'auditctx' | 'memcachecluster' | 'spicedbcluster' | 'tenant' | 'mk8s' | 'command' | 'imagesummary' | 'volumeset';
|
|
10
10
|
items: Permission[];
|
|
11
11
|
implied?: {
|
|
12
12
|
[x: string]: any;
|
|
File without changes
|
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
import { Name, Kind, Tags, Links } from './base';
|
|
2
|
+
export interface FileSystem {
|
|
3
|
+
name: string;
|
|
4
|
+
accessMode: string;
|
|
5
|
+
commandsSupported?: string[];
|
|
6
|
+
}
|
|
7
|
+
export interface PerformanceClass {
|
|
8
|
+
name: string;
|
|
9
|
+
minCapacity: number;
|
|
10
|
+
maxCapacity: number;
|
|
11
|
+
featuresSupported?: ('automatic-expansion' | 'snapshots')[];
|
|
12
|
+
}
|
|
2
13
|
export interface VolumeSnapshot {
|
|
3
14
|
name: string;
|
|
4
15
|
id?: string;
|
|
@@ -12,6 +23,8 @@ export interface VolumeSnapshot {
|
|
|
12
23
|
export interface PersistentVolumeStatus {
|
|
13
24
|
lifecycle?: 'creating' | 'unused' | 'unbound' | 'bound' | 'deleted' | 'repairing';
|
|
14
25
|
storageDeviceId?: string;
|
|
26
|
+
oldStorageDeviceIds?: string[];
|
|
27
|
+
resourceName?: string;
|
|
15
28
|
index: number;
|
|
16
29
|
currentSize: number;
|
|
17
30
|
currentBytesUsed?: number;
|
|
@@ -22,6 +35,7 @@ export interface PersistentVolumeStatus {
|
|
|
22
35
|
attributes?: {
|
|
23
36
|
[x: string]: string;
|
|
24
37
|
};
|
|
38
|
+
zone?: string;
|
|
25
39
|
}
|
|
26
40
|
export interface VolumeSetStatusLocation {
|
|
27
41
|
name: string;
|
|
@@ -32,6 +46,7 @@ export interface VolumeSetStatusLocation {
|
|
|
32
46
|
export interface VolumeSetStatus {
|
|
33
47
|
parentId?: string;
|
|
34
48
|
usedByWorkload?: string;
|
|
49
|
+
workloadLinks?: string[];
|
|
35
50
|
bindingId?: string;
|
|
36
51
|
locations?: VolumeSetStatusLocation[];
|
|
37
52
|
}
|
|
@@ -40,17 +55,33 @@ export interface SnapshotSpec {
|
|
|
40
55
|
retentionDuration?: string;
|
|
41
56
|
schedule?: string;
|
|
42
57
|
}
|
|
58
|
+
export type PerformanceClassName = 'general-purpose-ssd' | 'high-throughput-ssd' | 'shared';
|
|
59
|
+
export type FileSystemType = 'ext4' | 'xfs' | 'shared';
|
|
60
|
+
export interface MountResources {
|
|
61
|
+
maxCpu?: string;
|
|
62
|
+
minCpu?: string;
|
|
63
|
+
minMemory?: string;
|
|
64
|
+
maxMemory?: string;
|
|
65
|
+
}
|
|
43
66
|
export interface VolumeSetSpec {
|
|
44
67
|
initialCapacity: number;
|
|
45
|
-
performanceClass
|
|
68
|
+
performanceClass?: PerformanceClassName;
|
|
46
69
|
storageClassSuffix?: string;
|
|
47
|
-
fileSystemType?:
|
|
70
|
+
fileSystemType?: FileSystemType;
|
|
48
71
|
snapshots?: SnapshotSpec;
|
|
49
72
|
autoscaling?: {
|
|
50
73
|
maxCapacity?: number;
|
|
51
74
|
minFreePercentage?: number;
|
|
52
75
|
scalingFactor?: number;
|
|
53
76
|
};
|
|
77
|
+
mountOptions?: {
|
|
78
|
+
resources?: {
|
|
79
|
+
maxCpu?: string;
|
|
80
|
+
minCpu?: string;
|
|
81
|
+
minMemory?: string;
|
|
82
|
+
maxMemory?: string;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
54
85
|
}
|
|
55
86
|
export interface VolumeSet {
|
|
56
87
|
id?: string;
|
|
@@ -62,18 +93,7 @@ export interface VolumeSet {
|
|
|
62
93
|
created?: Date;
|
|
63
94
|
lastModified?: Date;
|
|
64
95
|
links?: Links;
|
|
65
|
-
spec:
|
|
66
|
-
initialCapacity: number;
|
|
67
|
-
performanceClass: 'general-purpose-ssd' | 'high-throughput-ssd';
|
|
68
|
-
storageClassSuffix?: string;
|
|
69
|
-
fileSystemType?: 'xfs' | 'ext4';
|
|
70
|
-
snapshots?: SnapshotSpec;
|
|
71
|
-
autoscaling?: {
|
|
72
|
-
maxCapacity?: number;
|
|
73
|
-
minFreePercentage?: number;
|
|
74
|
-
scalingFactor?: number;
|
|
75
|
-
};
|
|
76
|
-
};
|
|
96
|
+
spec: VolumeSetSpec;
|
|
77
97
|
status?: VolumeSetStatus;
|
|
78
98
|
gvc?: any;
|
|
79
99
|
}
|