@controlplane/schema 1.0.1 → 1.0.3
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/accessreport.d.ts +18 -0
- package/build/src/interfaces/agent.d.ts +30 -0
- package/build/src/interfaces/auditctx.d.ts +17 -0
- package/build/src/interfaces/base.d.ts +37 -0
- package/build/src/interfaces/cloudaccount.d.ts +37 -0
- package/build/src/interfaces/command.d.ts +203 -0
- package/build/src/interfaces/config.d.ts +11 -0
- package/build/src/interfaces/containerstatus.d.ts +13 -0
- package/build/src/interfaces/cronjob.d.ts +20 -0
- package/build/src/interfaces/dbcluster.d.ts +42 -0
- package/build/src/interfaces/deployment.d.ts +33 -0
- package/build/src/interfaces/discovery.d.ts +22 -0
- package/build/src/interfaces/domain.d.ts +83 -0
- package/build/src/interfaces/env.d.ts +7 -0
- package/build/src/interfaces/envoy.d.ts +14 -0
- package/build/src/interfaces/envoy.js +3 -0
- package/build/src/interfaces/envoyAccessLog.d.ts +21 -0
- package/build/src/interfaces/envoyAccessLog.js +3 -0
- package/build/src/interfaces/envoyCluster.d.ts +64 -0
- package/build/src/interfaces/envoyCluster.js +3 -0
- package/build/src/interfaces/envoyCommon.d.ts +437 -0
- package/build/src/interfaces/envoyCommon.js +3 -0
- package/build/src/interfaces/envoyExcExtAuth.d.ts +12 -0
- package/build/src/interfaces/envoyExcExtAuth.js +3 -0
- package/build/src/interfaces/envoyHttp.d.ts +273 -0
- package/build/src/interfaces/envoyHttp.js +3 -0
- package/build/src/interfaces/envoyRateLimit.d.ts +45 -0
- package/build/src/interfaces/envoyRateLimit.js +3 -0
- package/build/src/interfaces/event.d.ts +25 -0
- package/build/src/interfaces/group.d.ts +20 -0
- package/build/src/interfaces/gvc.d.ts +57 -0
- package/build/src/interfaces/identity.d.ts +102 -0
- package/build/src/interfaces/image.d.ts +25 -0
- package/build/src/interfaces/links.d.ts +0 -0
- package/build/src/interfaces/location.d.ts +31 -0
- package/build/src/interfaces/memcache.d.ts +46 -0
- package/build/src/interfaces/mk8s.d.ts +99 -0
- package/build/src/interfaces/mk8sAddons.d.ts +69 -0
- package/build/src/interfaces/mk8sAws.d.ts +46 -0
- package/build/src/interfaces/mk8sCommon.d.ts +24 -0
- package/build/src/interfaces/mk8sEphemeral.d.ts +18 -0
- package/build/src/interfaces/mk8sEphemeral.js +3 -0
- package/build/src/interfaces/mk8sGeneric.d.ts +21 -0
- package/build/src/interfaces/mk8sHetzner.d.ts +42 -0
- package/build/src/interfaces/mk8sLambdalabs.d.ts +23 -0
- package/build/src/interfaces/mk8sLinode.d.ts +28 -0
- package/build/src/interfaces/mk8sOblivus.d.ts +13 -0
- package/build/src/interfaces/mk8sPaperspace.d.ts +24 -0
- package/build/src/interfaces/org.d.ts +78 -0
- package/build/src/interfaces/orgLogging.d.ts +68 -0
- package/build/src/interfaces/orgTracing.d.ts +4 -0
- package/build/src/interfaces/permissions.d.ts +14 -0
- package/build/src/interfaces/policy.d.ts +23 -0
- package/build/src/interfaces/policyMembership.d.ts +11 -0
- package/build/src/interfaces/port.d.ts +1 -0
- package/build/src/interfaces/port.js +3 -0
- package/build/src/interfaces/query.d.ts +27 -0
- package/build/src/interfaces/quota.d.ts +18 -0
- package/build/src/interfaces/resourcePolicy.d.ts +13 -0
- package/build/src/interfaces/secret.d.ts +58 -0
- package/build/src/interfaces/serviceaccount.d.ts +20 -0
- package/build/src/interfaces/spicedb.d.ts +26 -0
- package/build/src/interfaces/statefulSet.d.ts +5 -0
- package/build/src/interfaces/task.d.ts +19 -0
- package/build/src/interfaces/tenant.d.ts +20 -0
- package/build/src/interfaces/tracing.d.ts +24 -0
- package/build/src/interfaces/user.d.ts +24 -0
- package/build/src/interfaces/util.d.ts +0 -0
- package/build/src/interfaces/util.js +2 -0
- package/build/src/interfaces/volumeSet.d.ts +79 -0
- package/build/src/interfaces/volumeSpec.d.ts +5 -0
- package/build/src/interfaces/volumeSpec.js +3 -0
- package/build/src/interfaces/workload.d.ts +260 -0
- package/build/src/interfaces/workloadOptions.d.ts +18 -0
- package/build/src/interfaces/workloadOptions.js +3 -0
- package/package.json +2 -2
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Kind, Name, Links } from './base';
|
|
2
|
+
export interface Quota {
|
|
3
|
+
id?: string;
|
|
4
|
+
kind?: Kind;
|
|
5
|
+
version?: number;
|
|
6
|
+
description?: string;
|
|
7
|
+
name?: Name;
|
|
8
|
+
unit?: string;
|
|
9
|
+
dimensions?: {
|
|
10
|
+
[x: string]: any;
|
|
11
|
+
};
|
|
12
|
+
max?: number;
|
|
13
|
+
created?: Date;
|
|
14
|
+
lastModified?: Date;
|
|
15
|
+
current?: number;
|
|
16
|
+
origin?: 'default' | 'builtin';
|
|
17
|
+
links?: Links;
|
|
18
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Kind, Links } from './base';
|
|
2
|
+
export interface ResourcePolicy {
|
|
3
|
+
id?: string;
|
|
4
|
+
kind?: Kind;
|
|
5
|
+
version?: number;
|
|
6
|
+
created?: Date;
|
|
7
|
+
lastModified?: Date;
|
|
8
|
+
links?: Links;
|
|
9
|
+
bindings?: {
|
|
10
|
+
permissions: string[];
|
|
11
|
+
principalLinks?: string[];
|
|
12
|
+
}[];
|
|
13
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { Name, Kind, Tags, Links } from './base';
|
|
2
|
+
export interface Opaque {
|
|
3
|
+
payload?: string | string;
|
|
4
|
+
encoding?: 'plain' | 'base64';
|
|
5
|
+
}
|
|
6
|
+
export interface AwsKey {
|
|
7
|
+
accessKey: string;
|
|
8
|
+
secretKey: string;
|
|
9
|
+
roleArn?: string;
|
|
10
|
+
externalId?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface EcrPull {
|
|
13
|
+
accessKey: string;
|
|
14
|
+
secretKey: string;
|
|
15
|
+
roleArn?: string;
|
|
16
|
+
externalId?: string;
|
|
17
|
+
repos?: string[];
|
|
18
|
+
}
|
|
19
|
+
export interface UsernamePassword {
|
|
20
|
+
username: string;
|
|
21
|
+
password: string;
|
|
22
|
+
encoding?: 'plain' | 'base64';
|
|
23
|
+
}
|
|
24
|
+
export interface AzureConnector {
|
|
25
|
+
url: string;
|
|
26
|
+
code: string;
|
|
27
|
+
}
|
|
28
|
+
export interface Tls {
|
|
29
|
+
key?: string;
|
|
30
|
+
cert: string;
|
|
31
|
+
chain?: string;
|
|
32
|
+
}
|
|
33
|
+
export interface KeyPair {
|
|
34
|
+
secretKey: string;
|
|
35
|
+
publicKey?: string;
|
|
36
|
+
passphrase?: string;
|
|
37
|
+
}
|
|
38
|
+
export interface Dictionary {
|
|
39
|
+
[x: string]: string;
|
|
40
|
+
}
|
|
41
|
+
export interface NatsAccount {
|
|
42
|
+
accountId: string;
|
|
43
|
+
privateKey: string;
|
|
44
|
+
}
|
|
45
|
+
export type SecretData = Opaque | Tls | string | AwsKey | EcrPull | string | UsernamePassword | KeyPair | Dictionary | string | AzureConnector | NatsAccount;
|
|
46
|
+
export interface Secret {
|
|
47
|
+
id?: string;
|
|
48
|
+
name?: Name;
|
|
49
|
+
kind?: Kind;
|
|
50
|
+
version?: number;
|
|
51
|
+
description?: string;
|
|
52
|
+
tags?: Tags;
|
|
53
|
+
created?: Date;
|
|
54
|
+
lastModified?: Date;
|
|
55
|
+
links?: Links;
|
|
56
|
+
type?: 'opaque' | 'tls' | 'gcp' | 'aws' | 'ecr' | 'userpass' | 'keypair' | 'azure-sdk' | 'azure-connector' | 'docker' | 'dictionary' | 'nats-account';
|
|
57
|
+
data?: SecretData;
|
|
58
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Name, Kind, Tags, Links } from './base';
|
|
2
|
+
export interface ServiceAccountKey {
|
|
3
|
+
name?: string;
|
|
4
|
+
created?: Date;
|
|
5
|
+
key?: string;
|
|
6
|
+
description: string;
|
|
7
|
+
}
|
|
8
|
+
export interface ServiceAccount {
|
|
9
|
+
id?: string;
|
|
10
|
+
name?: Name;
|
|
11
|
+
kind?: Kind;
|
|
12
|
+
version?: number;
|
|
13
|
+
description?: string;
|
|
14
|
+
tags?: Tags;
|
|
15
|
+
created?: Date;
|
|
16
|
+
lastModified?: Date;
|
|
17
|
+
links?: Links;
|
|
18
|
+
keys?: ServiceAccountKey[];
|
|
19
|
+
origin?: 'default' | 'builtin';
|
|
20
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Name, Kind, Tags, Links } from './base';
|
|
2
|
+
export interface ClusterSpec {
|
|
3
|
+
version?: '1.14.1';
|
|
4
|
+
locations?: string[];
|
|
5
|
+
}
|
|
6
|
+
export interface ClusterStatus {
|
|
7
|
+
externalEndpoint?: string;
|
|
8
|
+
[x: string]: any;
|
|
9
|
+
}
|
|
10
|
+
export interface SpicedbCluster {
|
|
11
|
+
id?: string;
|
|
12
|
+
name?: Name;
|
|
13
|
+
kind?: Kind;
|
|
14
|
+
version?: number;
|
|
15
|
+
description?: string;
|
|
16
|
+
tags?: Tags;
|
|
17
|
+
created?: Date;
|
|
18
|
+
lastModified?: Date;
|
|
19
|
+
links?: Links;
|
|
20
|
+
spec: {
|
|
21
|
+
version?: '1.14.1';
|
|
22
|
+
locations?: string[];
|
|
23
|
+
};
|
|
24
|
+
alias?: string;
|
|
25
|
+
status?: ClusterStatus;
|
|
26
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Link } from './base';
|
|
2
|
+
export interface Task {
|
|
3
|
+
id?: string;
|
|
4
|
+
kind?: 'task';
|
|
5
|
+
description?: string;
|
|
6
|
+
created?: Date;
|
|
7
|
+
lastModified?: Date;
|
|
8
|
+
targetEmail?: string;
|
|
9
|
+
creatorLink?: string;
|
|
10
|
+
type?: string;
|
|
11
|
+
context?: {
|
|
12
|
+
[x: string]: any;
|
|
13
|
+
};
|
|
14
|
+
status?: 'pending' | 'complete' | 'canceled';
|
|
15
|
+
response?: {
|
|
16
|
+
[x: string]: any;
|
|
17
|
+
};
|
|
18
|
+
links?: Link[];
|
|
19
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Name, Kind, Tags, Links } from './base';
|
|
2
|
+
export interface TenantSpec {
|
|
3
|
+
orgs?: Name[];
|
|
4
|
+
clusters?: Name[];
|
|
5
|
+
}
|
|
6
|
+
export interface Tenant {
|
|
7
|
+
id?: string;
|
|
8
|
+
name?: Name;
|
|
9
|
+
kind?: Kind;
|
|
10
|
+
version?: number;
|
|
11
|
+
description?: string;
|
|
12
|
+
tags?: Tags;
|
|
13
|
+
created?: Date;
|
|
14
|
+
lastModified?: Date;
|
|
15
|
+
links?: Links;
|
|
16
|
+
spec: {
|
|
17
|
+
orgs?: Name[];
|
|
18
|
+
clusters?: Name[];
|
|
19
|
+
};
|
|
20
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface LightstepTracing {
|
|
2
|
+
endpoint: string;
|
|
3
|
+
credentials?: string;
|
|
4
|
+
}
|
|
5
|
+
export interface OpenTelemetry {
|
|
6
|
+
endpoint: string;
|
|
7
|
+
}
|
|
8
|
+
export interface TracingCustomTag {
|
|
9
|
+
literal?: {
|
|
10
|
+
value?: string;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export interface Tracing {
|
|
14
|
+
sampling: number;
|
|
15
|
+
lightstep?: LightstepTracing;
|
|
16
|
+
customTags?: {
|
|
17
|
+
[x: string]: TracingCustomTag;
|
|
18
|
+
};
|
|
19
|
+
provider?: {
|
|
20
|
+
otel?: OpenTelemetry;
|
|
21
|
+
lightstep?: LightstepTracing;
|
|
22
|
+
controlplane?: {};
|
|
23
|
+
};
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Tags, Links, ApiError } from './base';
|
|
2
|
+
export interface User {
|
|
3
|
+
id?: string;
|
|
4
|
+
name?: string;
|
|
5
|
+
kind?: 'user';
|
|
6
|
+
version?: number;
|
|
7
|
+
tags?: Tags;
|
|
8
|
+
created?: Date;
|
|
9
|
+
lastModified?: Date;
|
|
10
|
+
links?: Links;
|
|
11
|
+
idp?: string;
|
|
12
|
+
email?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface InviteRequest {
|
|
15
|
+
emails?: string[];
|
|
16
|
+
}
|
|
17
|
+
export interface InviteResponse {
|
|
18
|
+
errors?: {
|
|
19
|
+
[x: string]: ApiError;
|
|
20
|
+
};
|
|
21
|
+
invitations?: {
|
|
22
|
+
[x: string]: string;
|
|
23
|
+
};
|
|
24
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { Name, Kind, Tags, Links } from './base';
|
|
2
|
+
export interface VolumeSnapshot {
|
|
3
|
+
name: string;
|
|
4
|
+
id?: string;
|
|
5
|
+
created: Date;
|
|
6
|
+
expires?: Date;
|
|
7
|
+
size?: number;
|
|
8
|
+
tags?: {
|
|
9
|
+
[x: string]: string;
|
|
10
|
+
}[];
|
|
11
|
+
}
|
|
12
|
+
export interface PersistentVolumeStatus {
|
|
13
|
+
lifecycle?: 'creating' | 'unused' | 'unbound' | 'bound' | 'deleted' | 'repairing';
|
|
14
|
+
storageDeviceId?: string;
|
|
15
|
+
index: number;
|
|
16
|
+
currentSize: number;
|
|
17
|
+
currentBytesUsed?: number;
|
|
18
|
+
iops?: number;
|
|
19
|
+
throughput?: number;
|
|
20
|
+
driver: string;
|
|
21
|
+
volumeSnapshots?: VolumeSnapshot[];
|
|
22
|
+
attributes?: {
|
|
23
|
+
[x: string]: string;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export interface VolumeSetStatusLocation {
|
|
27
|
+
name: string;
|
|
28
|
+
volumes?: PersistentVolumeStatus[];
|
|
29
|
+
desiredVolumeCount?: number;
|
|
30
|
+
clusterId?: string;
|
|
31
|
+
}
|
|
32
|
+
export interface VolumeSetStatus {
|
|
33
|
+
parentId?: string;
|
|
34
|
+
usedByWorkload?: string;
|
|
35
|
+
bindingId?: string;
|
|
36
|
+
locations?: VolumeSetStatusLocation[];
|
|
37
|
+
}
|
|
38
|
+
export interface SnapshotSpec {
|
|
39
|
+
createFinalSnapshot?: boolean;
|
|
40
|
+
retentionDuration?: string;
|
|
41
|
+
schedule?: string;
|
|
42
|
+
}
|
|
43
|
+
export interface VolumeSetSpec {
|
|
44
|
+
initialCapacity: number;
|
|
45
|
+
performanceClass: 'general-purpose-ssd' | 'high-throughput-ssd';
|
|
46
|
+
storageClassSuffix?: string;
|
|
47
|
+
fileSystemType?: 'xfs' | 'ext4';
|
|
48
|
+
snapshots?: SnapshotSpec;
|
|
49
|
+
autoscaling?: {
|
|
50
|
+
maxCapacity?: number;
|
|
51
|
+
minFreePercentage?: number;
|
|
52
|
+
scalingFactor?: number;
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
export interface VolumeSet {
|
|
56
|
+
id?: string;
|
|
57
|
+
name?: Name;
|
|
58
|
+
kind?: Kind;
|
|
59
|
+
version?: number;
|
|
60
|
+
description?: string;
|
|
61
|
+
tags?: Tags;
|
|
62
|
+
created?: Date;
|
|
63
|
+
lastModified?: Date;
|
|
64
|
+
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
|
+
};
|
|
77
|
+
status?: VolumeSetStatus;
|
|
78
|
+
gvc?: any;
|
|
79
|
+
}
|
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
import { Port } from './port';
|
|
2
|
+
import { EnvVar } from './env';
|
|
3
|
+
import { VolumeSpec } from './volumeSpec';
|
|
4
|
+
import { DefaultOptions, LocalOptions } from './workloadOptions';
|
|
5
|
+
import { EnvoyFilters } from './envoy';
|
|
6
|
+
import { Kind, Tags, Links } from './base';
|
|
7
|
+
export type Memory = string;
|
|
8
|
+
export type Cpu = string;
|
|
9
|
+
export interface HealthCheckSpec {
|
|
10
|
+
exec?: {
|
|
11
|
+
command?: string[];
|
|
12
|
+
};
|
|
13
|
+
grpc?: {
|
|
14
|
+
port?: Port;
|
|
15
|
+
};
|
|
16
|
+
tcpSocket?: {
|
|
17
|
+
port?: number;
|
|
18
|
+
};
|
|
19
|
+
httpGet?: {
|
|
20
|
+
path?: string;
|
|
21
|
+
port?: number;
|
|
22
|
+
httpHeaders?: {
|
|
23
|
+
name: string;
|
|
24
|
+
value: string;
|
|
25
|
+
}[];
|
|
26
|
+
scheme?: 'HTTP' | 'HTTPS';
|
|
27
|
+
};
|
|
28
|
+
initialDelaySeconds?: number;
|
|
29
|
+
periodSeconds?: number;
|
|
30
|
+
timeoutSeconds?: number;
|
|
31
|
+
successThreshold?: number;
|
|
32
|
+
failureThreshold?: number;
|
|
33
|
+
}
|
|
34
|
+
export interface RolloutOptions {
|
|
35
|
+
minReadySeconds?: number;
|
|
36
|
+
maxUnavailableReplicas?: string;
|
|
37
|
+
maxSurgeReplicas?: string;
|
|
38
|
+
scalingPolicy?: 'OrderedReady' | 'Parallel';
|
|
39
|
+
}
|
|
40
|
+
export interface SecurityOptions {
|
|
41
|
+
filesystemGroupId?: number;
|
|
42
|
+
}
|
|
43
|
+
export interface GpuResource {
|
|
44
|
+
nvidia: {
|
|
45
|
+
model?: any;
|
|
46
|
+
quantity?: number;
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
export interface ContainerSpec {
|
|
50
|
+
name?: string;
|
|
51
|
+
image: string;
|
|
52
|
+
workingDir?: string;
|
|
53
|
+
metrics?: {
|
|
54
|
+
port: number;
|
|
55
|
+
path: string;
|
|
56
|
+
};
|
|
57
|
+
port?: number;
|
|
58
|
+
ports?: ({
|
|
59
|
+
protocol?: 'http' | 'http2' | 'grpc' | 'tcp';
|
|
60
|
+
number: number;
|
|
61
|
+
})[];
|
|
62
|
+
memory?: string;
|
|
63
|
+
readinessProbe?: {
|
|
64
|
+
exec?: {
|
|
65
|
+
command?: string[];
|
|
66
|
+
};
|
|
67
|
+
grpc?: {
|
|
68
|
+
port?: Port;
|
|
69
|
+
};
|
|
70
|
+
tcpSocket?: {
|
|
71
|
+
port?: number;
|
|
72
|
+
};
|
|
73
|
+
httpGet?: {
|
|
74
|
+
path?: string;
|
|
75
|
+
port?: number;
|
|
76
|
+
httpHeaders?: {
|
|
77
|
+
name: string;
|
|
78
|
+
value: string;
|
|
79
|
+
}[];
|
|
80
|
+
scheme?: 'HTTP' | 'HTTPS';
|
|
81
|
+
};
|
|
82
|
+
initialDelaySeconds?: number;
|
|
83
|
+
periodSeconds?: number;
|
|
84
|
+
timeoutSeconds?: number;
|
|
85
|
+
successThreshold?: number;
|
|
86
|
+
failureThreshold?: number;
|
|
87
|
+
};
|
|
88
|
+
livenessProbe?: {
|
|
89
|
+
exec?: {
|
|
90
|
+
command?: string[];
|
|
91
|
+
};
|
|
92
|
+
grpc?: {
|
|
93
|
+
port?: Port;
|
|
94
|
+
};
|
|
95
|
+
tcpSocket?: {
|
|
96
|
+
port?: number;
|
|
97
|
+
};
|
|
98
|
+
httpGet?: {
|
|
99
|
+
path?: string;
|
|
100
|
+
port?: number;
|
|
101
|
+
httpHeaders?: {
|
|
102
|
+
name: string;
|
|
103
|
+
value: string;
|
|
104
|
+
}[];
|
|
105
|
+
scheme?: 'HTTP' | 'HTTPS';
|
|
106
|
+
};
|
|
107
|
+
initialDelaySeconds?: number;
|
|
108
|
+
periodSeconds?: number;
|
|
109
|
+
timeoutSeconds?: number;
|
|
110
|
+
successThreshold?: number;
|
|
111
|
+
failureThreshold?: number;
|
|
112
|
+
};
|
|
113
|
+
cpu?: string;
|
|
114
|
+
minCpu?: string;
|
|
115
|
+
minMemory?: string;
|
|
116
|
+
env?: EnvVar[];
|
|
117
|
+
gpu?: {
|
|
118
|
+
nvidia: {
|
|
119
|
+
model?: any;
|
|
120
|
+
quantity?: number;
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
inheritEnv?: boolean;
|
|
124
|
+
command?: string;
|
|
125
|
+
args?: string[];
|
|
126
|
+
lifecycle?: {
|
|
127
|
+
postStart?: {
|
|
128
|
+
exec?: {
|
|
129
|
+
command?: string[];
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
preStop?: {
|
|
133
|
+
exec?: {
|
|
134
|
+
command?: string[];
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
volumes?: VolumeSpec[];
|
|
139
|
+
}
|
|
140
|
+
export interface HealthCheckStatus {
|
|
141
|
+
active: boolean;
|
|
142
|
+
success?: boolean;
|
|
143
|
+
code?: number;
|
|
144
|
+
message?: string;
|
|
145
|
+
failures?: number;
|
|
146
|
+
successes?: number;
|
|
147
|
+
lastChecked?: Date;
|
|
148
|
+
}
|
|
149
|
+
export interface ResolvedImage {
|
|
150
|
+
digest?: string;
|
|
151
|
+
manifests?: {
|
|
152
|
+
image: string;
|
|
153
|
+
mediaType: string;
|
|
154
|
+
digest: string;
|
|
155
|
+
platform?: {
|
|
156
|
+
[x: string]: string;
|
|
157
|
+
};
|
|
158
|
+
}[];
|
|
159
|
+
}
|
|
160
|
+
export interface ResolvedImages {
|
|
161
|
+
resolvedForVersion?: number;
|
|
162
|
+
resolvedAt?: Date;
|
|
163
|
+
errorMessages?: string[];
|
|
164
|
+
images?: ResolvedImage[];
|
|
165
|
+
}
|
|
166
|
+
export interface WorkloadStatus {
|
|
167
|
+
parentId?: string;
|
|
168
|
+
canonicalEndpoint?: string;
|
|
169
|
+
endpoint?: string;
|
|
170
|
+
internalName?: string;
|
|
171
|
+
healthCheck?: HealthCheckStatus;
|
|
172
|
+
currentReplicaCount?: number;
|
|
173
|
+
resolvedImages?: ResolvedImages;
|
|
174
|
+
[x: string]: any;
|
|
175
|
+
}
|
|
176
|
+
export interface FirewallSpec {
|
|
177
|
+
external?: {
|
|
178
|
+
inboundAllowCIDR?: string[];
|
|
179
|
+
outboundAllowHostname?: string[];
|
|
180
|
+
outboundAllowPort?: ({
|
|
181
|
+
protocol: 'http' | 'https' | 'tcp';
|
|
182
|
+
number: number;
|
|
183
|
+
})[];
|
|
184
|
+
outboundAllowCIDR?: string[];
|
|
185
|
+
};
|
|
186
|
+
internal?: {
|
|
187
|
+
inboundAllowType?: 'none' | 'same-gvc' | 'same-org' | 'workload-list';
|
|
188
|
+
inboundAllowWorkload?: string[];
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
export type ScheduleType = string;
|
|
192
|
+
export interface JobSpec {
|
|
193
|
+
schedule: ScheduleType;
|
|
194
|
+
concurrencyPolicy?: 'Forbid' | 'Replace';
|
|
195
|
+
historyLimit?: number;
|
|
196
|
+
restartPolicy?: 'OnFailure' | 'Never';
|
|
197
|
+
activeDeadlineSeconds?: number;
|
|
198
|
+
}
|
|
199
|
+
export interface WorkloadSpec {
|
|
200
|
+
type?: 'serverless' | 'standard' | 'cron' | 'stateful';
|
|
201
|
+
identityLink?: string;
|
|
202
|
+
containers?: ContainerSpec[];
|
|
203
|
+
firewallConfig?: {
|
|
204
|
+
external?: {
|
|
205
|
+
inboundAllowCIDR?: string[];
|
|
206
|
+
outboundAllowHostname?: string[];
|
|
207
|
+
outboundAllowPort?: ({
|
|
208
|
+
protocol: 'http' | 'https' | 'tcp';
|
|
209
|
+
number: number;
|
|
210
|
+
})[];
|
|
211
|
+
outboundAllowCIDR?: string[];
|
|
212
|
+
};
|
|
213
|
+
internal?: {
|
|
214
|
+
inboundAllowType?: 'none' | 'same-gvc' | 'same-org' | 'workload-list';
|
|
215
|
+
inboundAllowWorkload?: string[];
|
|
216
|
+
};
|
|
217
|
+
};
|
|
218
|
+
defaultOptions?: DefaultOptions;
|
|
219
|
+
localOptions?: LocalOptions;
|
|
220
|
+
job?: {
|
|
221
|
+
schedule: ScheduleType;
|
|
222
|
+
concurrencyPolicy?: 'Forbid' | 'Replace';
|
|
223
|
+
historyLimit?: number;
|
|
224
|
+
restartPolicy?: 'OnFailure' | 'Never';
|
|
225
|
+
activeDeadlineSeconds?: number;
|
|
226
|
+
};
|
|
227
|
+
sidecar?: {
|
|
228
|
+
envoy?: EnvoyFilters;
|
|
229
|
+
};
|
|
230
|
+
supportDynamicTags?: boolean;
|
|
231
|
+
rolloutOptions?: {
|
|
232
|
+
minReadySeconds?: number;
|
|
233
|
+
maxUnavailableReplicas?: string;
|
|
234
|
+
maxSurgeReplicas?: string;
|
|
235
|
+
scalingPolicy?: 'OrderedReady' | 'Parallel';
|
|
236
|
+
};
|
|
237
|
+
securityOptions?: {
|
|
238
|
+
filesystemGroupId?: number;
|
|
239
|
+
};
|
|
240
|
+
}
|
|
241
|
+
export interface Workload {
|
|
242
|
+
id?: string;
|
|
243
|
+
kind?: Kind;
|
|
244
|
+
version?: number;
|
|
245
|
+
description?: string;
|
|
246
|
+
tags?: Tags;
|
|
247
|
+
created?: Date;
|
|
248
|
+
lastModified?: Date;
|
|
249
|
+
links?: Links;
|
|
250
|
+
name?: string;
|
|
251
|
+
gvc?: any;
|
|
252
|
+
spec?: WorkloadSpec;
|
|
253
|
+
status?: WorkloadStatus;
|
|
254
|
+
}
|
|
255
|
+
export interface WorkloadConfig {
|
|
256
|
+
scheduling?: {
|
|
257
|
+
fingerprint?: string;
|
|
258
|
+
version?: number;
|
|
259
|
+
};
|
|
260
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface Options {
|
|
2
|
+
autoscaling?: {
|
|
3
|
+
metric?: 'concurrency' | 'cpu' | 'rps' | 'latency' | 'disabled';
|
|
4
|
+
metricPercentile?: any;
|
|
5
|
+
target?: number;
|
|
6
|
+
maxScale?: number;
|
|
7
|
+
minScale?: number;
|
|
8
|
+
scaleToZeroDelay?: number;
|
|
9
|
+
maxConcurrency?: number;
|
|
10
|
+
};
|
|
11
|
+
timeoutSeconds?: number;
|
|
12
|
+
capacityAI?: boolean;
|
|
13
|
+
spot?: boolean;
|
|
14
|
+
debug?: boolean;
|
|
15
|
+
suspend?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export type DefaultOptions = any;
|
|
18
|
+
export type LocalOptions = any[];
|
package/package.json
CHANGED