Skip to content

Commit 881d61b

Browse files
author
ControlPlane CI
committed
Sync changes from upstream
1 parent 25f7399 commit 881d61b

7 files changed

Lines changed: 96 additions & 31 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@controlplane/schema",
3-
"version": "1.0.9",
3+
"version": "1.0.10",
44
"description": "Control Plane Corporation Schema",
55
"scripts": {
66
"build": "tsc",

src/interfaces/agent.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,18 @@ export interface AgentInfo {
4444
}
4545

4646
export interface AgentStatus {
47-
bootstrapConfig?: BootstrapConfig;
47+
bootstrapConfig?: {
48+
registrationToken: string;
49+
50+
agentId: string;
51+
52+
agentLink: string;
53+
54+
hubEndpoint: string;
55+
56+
protocolVersion?: 'v1' | 'v2';
57+
58+
};
4859

4960
protocolVersion?: 'v1' | 'v2';
5061

src/interfaces/command.ts

Lines changed: 32 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/* auto-generated */
22

3-
import { Kind, Links, Tags, ImageLink, Name } from './base.js';
4-
import { EnvVar } from './env.js';
5-
import { Memory, Cpu } from './workload.js';
3+
import { Kind, Links, Tags, Name } from './base.js';
4+
import { Term } from './query.js';
65
import { VolumeSnapshot, VolumeSetSpec, VolumeSetStatus } from './volumeSet.js';
6+
import { ContainerOverride } from './workload.js';
77

88
export interface Cluster {
99
clusterId?: string;
@@ -46,6 +46,32 @@ export interface Command {
4646
status?: {
4747
[x: string]: any;
4848

49+
};
50+
51+
conflictQuery?: {
52+
kind?: Kind;
53+
54+
context?: {
55+
[x: string]: any;
56+
57+
};
58+
59+
fetch?: 'links' | 'items';
60+
61+
spec?: {
62+
match?: 'all' | 'any' | 'none';
63+
64+
terms?: Term[];
65+
66+
sort?: {
67+
by: string;
68+
69+
order?: 'asc' | 'desc';
70+
71+
};
72+
73+
};
74+
4975
};
5076

5177
}
@@ -88,23 +114,6 @@ export interface CreateVolumeSnapshotStatus {
88114

89115
}
90116

91-
export interface CronWorkloadContainerOverrides {
92-
name: string;
93-
94-
env?: EnvVar[];
95-
96-
command?: string;
97-
98-
args?: string[];
99-
100-
memory?: Memory;
101-
102-
cpu?: Cpu;
103-
104-
image?: ImageLink;
105-
106-
}
107-
108117
export interface DeleteCloudDevicesStatus {
109118
clusterId?: string;
110119

@@ -407,7 +416,9 @@ export interface RestoreVolumeSpec {
407416
export interface RunCronWorkloadSpec {
408417
location: string;
409418

410-
containerOverrides?: CronWorkloadContainerOverrides[];
419+
scheduleName?: string;
420+
421+
containerOverrides?: ContainerOverride[];
411422

412423
}
413424

src/interfaces/domain.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,5 +177,12 @@ export interface Route {
177177

178178
replica?: number;
179179

180+
mirror?: {
181+
workloadLink: string;
182+
183+
percent: number;
184+
185+
}[];
186+
180187
}
181188

src/interfaces/query.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export interface Spec {
5656
}
5757

5858
export interface Term {
59-
op?: '=' | '>' | '>=' | '<' | '<=' | '!=' | '~' | 'exists' | '!exists';
59+
op?: '=' | '>' | '>=' | '<' | '<=' | '!=' | '~' | 'exists' | '!exists' | 'contains';
6060

6161
property?: string;
6262

src/interfaces/workload.ts

Lines changed: 40 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,31 @@
11
/* auto-generated */
22

3-
import { Regex, Kind, Tags, Links } from './base.js';
43
import { EnvVar } from './env.js';
4+
import { Regex, Kind, Tags, Links } from './base.js';
55
import { VolumeSpec } from './volumeSpec.js';
66
import { DefaultOptions, LocalOptions } from './workloadOptions.js';
77
import { AccessLog } from './envoyAccessLog.js';
88
import { Cluster } from './envoyCluster.js';
99
import { ExcExtAuth, ExcludedRateLimit } from './envoyExcExtAuth.js';
1010
import { HttpFilter } from './envoyHttp.js';
1111

12+
export interface ContainerOverride {
13+
name: string;
14+
15+
env?: EnvVar[];
16+
17+
command?: string;
18+
19+
args?: string[];
20+
21+
memory?: string;
22+
23+
cpu?: string;
24+
25+
image?: string;
26+
27+
}
28+
1229
export interface ContainerSpec {
1330
name?: string;
1431

@@ -316,7 +333,9 @@ export interface HealthCheckStatus {
316333
}
317334

318335
export interface JobSpec {
319-
schedule: ScheduleType;
336+
schedule?: string;
337+
338+
schedules?: ScheduleEntry[];
320339

321340
concurrencyPolicy?: 'Forbid' | 'Replace' | 'Allow';
322341

@@ -448,6 +467,15 @@ export interface RolloutOptionsStateful {
448467

449468
}
450469

470+
export interface ScheduleEntry {
471+
name: string;
472+
473+
schedule: string;
474+
475+
containerOverrides?: ContainerOverride[];
476+
477+
}
478+
451479
export type ScheduleType = string;
452480

453481
export interface SecurityOptions {
@@ -525,7 +553,9 @@ export interface Workload {
525553
localOptions?: LocalOptions;
526554

527555
job?: {
528-
schedule: ScheduleType;
556+
schedule?: string;
557+
558+
schedules?: ScheduleEntry[];
529559

530560
concurrencyPolicy?: 'Forbid' | 'Replace' | 'Allow';
531561

@@ -661,6 +691,8 @@ export interface Workload {
661691

662692
loadBalancer?: LoadBalancerStatus[];
663693

694+
suspendedStatus?: string;
695+
664696
[x: string]: any;
665697

666698
};
@@ -714,7 +746,9 @@ export interface WorkloadSpec {
714746
localOptions?: LocalOptions;
715747

716748
job?: {
717-
schedule: ScheduleType;
749+
schedule?: string;
750+
751+
schedules?: ScheduleEntry[];
718752

719753
concurrencyPolicy?: 'Forbid' | 'Replace' | 'Allow';
720754

@@ -850,6 +884,8 @@ export interface WorkloadStatus {
850884

851885
loadBalancer?: LoadBalancerStatus[];
852886

887+
suspendedStatus?: string;
888+
853889
[x: string]: any;
854890

855891
}

src/interfaces/workloadOptions.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export interface DefaultOptions {
2525
maxConcurrency?: number;
2626

2727
keda?: {
28-
triggers?: KedaTrigger[];
28+
triggers: KedaTrigger[];
2929

3030
advanced?: {
3131
scalingModifiers?: {
@@ -126,7 +126,7 @@ export interface LocalOptionsItem {
126126
maxConcurrency?: number;
127127

128128
keda?: {
129-
triggers?: KedaTrigger[];
129+
triggers: KedaTrigger[];
130130

131131
advanced?: {
132132
scalingModifiers?: {
@@ -205,7 +205,7 @@ export interface OptionsAutoscaling {
205205
maxConcurrency?: number;
206206

207207
keda?: {
208-
triggers?: KedaTrigger[];
208+
triggers: KedaTrigger[];
209209

210210
advanced?: {
211211
scalingModifiers?: {

0 commit comments

Comments
 (0)