@controlplane/schema 1.0.9 → 1.0.10
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/agent.d.ts +7 -1
- package/build/src/interfaces/command.d.ts +20 -13
- package/build/src/interfaces/domain.d.ts +4 -0
- package/build/src/interfaces/query.d.ts +1 -1
- package/build/src/interfaces/workload.d.ts +23 -4
- package/build/src/interfaces/workloadOptions.d.ts +3 -3
- package/package.json +1 -1
|
@@ -22,7 +22,13 @@ export interface AgentInfo {
|
|
|
22
22
|
serviceCount?: number;
|
|
23
23
|
}
|
|
24
24
|
export interface AgentStatus {
|
|
25
|
-
bootstrapConfig?:
|
|
25
|
+
bootstrapConfig?: {
|
|
26
|
+
registrationToken: string;
|
|
27
|
+
agentId: string;
|
|
28
|
+
agentLink: string;
|
|
29
|
+
hubEndpoint: string;
|
|
30
|
+
protocolVersion?: 'v1' | 'v2';
|
|
31
|
+
};
|
|
26
32
|
protocolVersion?: 'v1' | 'v2';
|
|
27
33
|
}
|
|
28
34
|
export interface BootstrapConfig {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Kind, Links, Tags,
|
|
2
|
-
import {
|
|
3
|
-
import { Memory, Cpu } from './workload.js';
|
|
1
|
+
import { Kind, Links, Tags, Name } from './base.js';
|
|
2
|
+
import { Term } from './query.js';
|
|
4
3
|
import { VolumeSnapshot, VolumeSetSpec, VolumeSetStatus } from './volumeSet.js';
|
|
4
|
+
import { ContainerOverride } from './workload.js';
|
|
5
5
|
export interface Cluster {
|
|
6
6
|
clusterId?: string;
|
|
7
7
|
since?: Date;
|
|
@@ -26,6 +26,21 @@ export interface Command {
|
|
|
26
26
|
status?: {
|
|
27
27
|
[x: string]: any;
|
|
28
28
|
};
|
|
29
|
+
conflictQuery?: {
|
|
30
|
+
kind?: Kind;
|
|
31
|
+
context?: {
|
|
32
|
+
[x: string]: any;
|
|
33
|
+
};
|
|
34
|
+
fetch?: 'links' | 'items';
|
|
35
|
+
spec?: {
|
|
36
|
+
match?: 'all' | 'any' | 'none';
|
|
37
|
+
terms?: Term[];
|
|
38
|
+
sort?: {
|
|
39
|
+
by: string;
|
|
40
|
+
order?: 'asc' | 'desc';
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
};
|
|
29
44
|
}
|
|
30
45
|
export type CommandLifecycleStage = 'pending' | 'running' | 'cancelled' | 'completed' | 'failed';
|
|
31
46
|
export interface CreateVolumeSnapshotSpec {
|
|
@@ -48,15 +63,6 @@ export interface CreateVolumeSnapshotStatus {
|
|
|
48
63
|
newSnapshotSize?: number;
|
|
49
64
|
creationStartTime?: Date;
|
|
50
65
|
}
|
|
51
|
-
export interface CronWorkloadContainerOverrides {
|
|
52
|
-
name: string;
|
|
53
|
-
env?: EnvVar[];
|
|
54
|
-
command?: string;
|
|
55
|
-
args?: string[];
|
|
56
|
-
memory?: Memory;
|
|
57
|
-
cpu?: Cpu;
|
|
58
|
-
image?: ImageLink;
|
|
59
|
-
}
|
|
60
66
|
export interface DeleteCloudDevicesStatus {
|
|
61
67
|
clusterId?: string;
|
|
62
68
|
clusterIdByLocation?: {
|
|
@@ -225,7 +231,8 @@ export interface RestoreVolumeSpec {
|
|
|
225
231
|
}
|
|
226
232
|
export interface RunCronWorkloadSpec {
|
|
227
233
|
location: string;
|
|
228
|
-
|
|
234
|
+
scheduleName?: string;
|
|
235
|
+
containerOverrides?: ContainerOverride[];
|
|
229
236
|
}
|
|
230
237
|
export interface RunCronWorkloadStatus {
|
|
231
238
|
replica?: string;
|
|
@@ -30,7 +30,7 @@ export interface Spec {
|
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
32
|
export interface Term {
|
|
33
|
-
op?: '=' | '>' | '>=' | '<' | '<=' | '!=' | '~' | 'exists' | '!exists';
|
|
33
|
+
op?: '=' | '>' | '>=' | '<' | '<=' | '!=' | '~' | 'exists' | '!exists' | 'contains';
|
|
34
34
|
property?: string;
|
|
35
35
|
rel?: string;
|
|
36
36
|
tag?: string;
|
|
@@ -1,11 +1,20 @@
|
|
|
1
|
-
import { Regex, Kind, Tags, Links } from './base.js';
|
|
2
1
|
import { EnvVar } from './env.js';
|
|
2
|
+
import { Regex, Kind, Tags, Links } from './base.js';
|
|
3
3
|
import { VolumeSpec } from './volumeSpec.js';
|
|
4
4
|
import { DefaultOptions, LocalOptions } from './workloadOptions.js';
|
|
5
5
|
import { AccessLog } from './envoyAccessLog.js';
|
|
6
6
|
import { Cluster } from './envoyCluster.js';
|
|
7
7
|
import { ExcExtAuth, ExcludedRateLimit } from './envoyExcExtAuth.js';
|
|
8
8
|
import { HttpFilter } from './envoyHttp.js';
|
|
9
|
+
export interface ContainerOverride {
|
|
10
|
+
name: string;
|
|
11
|
+
env?: EnvVar[];
|
|
12
|
+
command?: string;
|
|
13
|
+
args?: string[];
|
|
14
|
+
memory?: string;
|
|
15
|
+
cpu?: string;
|
|
16
|
+
image?: string;
|
|
17
|
+
}
|
|
9
18
|
export interface ContainerSpec {
|
|
10
19
|
name?: string;
|
|
11
20
|
image: string;
|
|
@@ -180,7 +189,8 @@ export interface HealthCheckStatus {
|
|
|
180
189
|
lastChecked?: Date;
|
|
181
190
|
}
|
|
182
191
|
export interface JobSpec {
|
|
183
|
-
schedule
|
|
192
|
+
schedule?: string;
|
|
193
|
+
schedules?: ScheduleEntry[];
|
|
184
194
|
concurrencyPolicy?: 'Forbid' | 'Replace' | 'Allow';
|
|
185
195
|
historyLimit?: number;
|
|
186
196
|
restartPolicy?: 'OnFailure' | 'Never';
|
|
@@ -253,6 +263,11 @@ export interface RolloutOptionsStateful {
|
|
|
253
263
|
terminationGracePeriodSeconds?: number;
|
|
254
264
|
maxUnavailableReplicas?: string;
|
|
255
265
|
}
|
|
266
|
+
export interface ScheduleEntry {
|
|
267
|
+
name: string;
|
|
268
|
+
schedule: string;
|
|
269
|
+
containerOverrides?: ContainerOverride[];
|
|
270
|
+
}
|
|
256
271
|
export type ScheduleType = string;
|
|
257
272
|
export interface SecurityOptions {
|
|
258
273
|
filesystemGroupId?: number;
|
|
@@ -296,7 +311,8 @@ export interface Workload {
|
|
|
296
311
|
defaultOptions?: DefaultOptions;
|
|
297
312
|
localOptions?: LocalOptions;
|
|
298
313
|
job?: {
|
|
299
|
-
schedule
|
|
314
|
+
schedule?: string;
|
|
315
|
+
schedules?: ScheduleEntry[];
|
|
300
316
|
concurrencyPolicy?: 'Forbid' | 'Replace' | 'Allow';
|
|
301
317
|
historyLimit?: number;
|
|
302
318
|
restartPolicy?: 'OnFailure' | 'Never';
|
|
@@ -370,6 +386,7 @@ export interface Workload {
|
|
|
370
386
|
images?: ResolvedImage[];
|
|
371
387
|
};
|
|
372
388
|
loadBalancer?: LoadBalancerStatus[];
|
|
389
|
+
suspendedStatus?: string;
|
|
373
390
|
[x: string]: any;
|
|
374
391
|
};
|
|
375
392
|
}
|
|
@@ -400,7 +417,8 @@ export interface WorkloadSpec {
|
|
|
400
417
|
defaultOptions?: DefaultOptions;
|
|
401
418
|
localOptions?: LocalOptions;
|
|
402
419
|
job?: {
|
|
403
|
-
schedule
|
|
420
|
+
schedule?: string;
|
|
421
|
+
schedules?: ScheduleEntry[];
|
|
404
422
|
concurrencyPolicy?: 'Forbid' | 'Replace' | 'Allow';
|
|
405
423
|
historyLimit?: number;
|
|
406
424
|
restartPolicy?: 'OnFailure' | 'Never';
|
|
@@ -474,6 +492,7 @@ export interface WorkloadStatus {
|
|
|
474
492
|
images?: ResolvedImage[];
|
|
475
493
|
};
|
|
476
494
|
loadBalancer?: LoadBalancerStatus[];
|
|
495
|
+
suspendedStatus?: string;
|
|
477
496
|
[x: string]: any;
|
|
478
497
|
}
|
|
479
498
|
export type WorkloadType = 'serverless' | 'standard' | 'cron' | 'stateful';
|
|
@@ -12,7 +12,7 @@ export interface DefaultOptions {
|
|
|
12
12
|
scaleToZeroDelay?: number;
|
|
13
13
|
maxConcurrency?: number;
|
|
14
14
|
keda?: {
|
|
15
|
-
triggers
|
|
15
|
+
triggers: KedaTrigger[];
|
|
16
16
|
advanced?: {
|
|
17
17
|
scalingModifiers?: {
|
|
18
18
|
target?: string;
|
|
@@ -68,7 +68,7 @@ export interface LocalOptionsItem {
|
|
|
68
68
|
scaleToZeroDelay?: number;
|
|
69
69
|
maxConcurrency?: number;
|
|
70
70
|
keda?: {
|
|
71
|
-
triggers
|
|
71
|
+
triggers: KedaTrigger[];
|
|
72
72
|
advanced?: {
|
|
73
73
|
scalingModifiers?: {
|
|
74
74
|
target?: string;
|
|
@@ -111,7 +111,7 @@ export interface OptionsAutoscaling {
|
|
|
111
111
|
scaleToZeroDelay?: number;
|
|
112
112
|
maxConcurrency?: number;
|
|
113
113
|
keda?: {
|
|
114
|
-
triggers
|
|
114
|
+
triggers: KedaTrigger[];
|
|
115
115
|
advanced?: {
|
|
116
116
|
scalingModifiers?: {
|
|
117
117
|
target?: string;
|