@flyteorg/flyteidl2 2.0.0-alpha10
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/flyteidl2/common/authorization_pb.ts +323 -0
- package/flyteidl2/common/identifier_pb.ts +423 -0
- package/flyteidl2/common/identity_pb.ts +205 -0
- package/flyteidl2/common/list_pb.ts +232 -0
- package/flyteidl2/common/policy_pb.ts +76 -0
- package/flyteidl2/common/role_pb.ts +161 -0
- package/flyteidl2/common/runtime_version_pb.ts +76 -0
- package/flyteidl2/core/artifact_id_pb.ts +400 -0
- package/flyteidl2/core/catalog_pb.ts +215 -0
- package/flyteidl2/core/execution_pb.ts +641 -0
- package/flyteidl2/core/identifier_pb.ts +237 -0
- package/flyteidl2/core/interface_pb.ts +187 -0
- package/flyteidl2/core/literals_pb.ts +673 -0
- package/flyteidl2/core/security_pb.ts +310 -0
- package/flyteidl2/core/tasks_pb.ts +1088 -0
- package/flyteidl2/core/types_pb.ts +592 -0
- package/flyteidl2/imagebuilder/definition_pb.ts +535 -0
- package/flyteidl2/imagebuilder/payload_pb.ts +62 -0
- package/flyteidl2/imagebuilder/service_pb.ts +30 -0
- package/flyteidl2/logs/dataplane/payload_pb.ts +396 -0
- package/flyteidl2/plugins/dask_pb.ts +109 -0
- package/flyteidl2/plugins/ray_pb.ts +189 -0
- package/flyteidl2/plugins/spark_pb.ts +145 -0
- package/flyteidl2/secret/definition_pb.ts +310 -0
- package/flyteidl2/secret/payload_pb.ts +266 -0
- package/flyteidl2/secret/secret_pb.ts +63 -0
- package/flyteidl2/task/common_pb.ts +319 -0
- package/flyteidl2/task/environment_pb.ts +36 -0
- package/flyteidl2/task/run_pb.ts +177 -0
- package/flyteidl2/task/task_definition_pb.ts +417 -0
- package/flyteidl2/task/task_service_pb.ts +248 -0
- package/flyteidl2/trigger/trigger_definition_pb.ts +283 -0
- package/flyteidl2/trigger/trigger_service_pb.ts +451 -0
- package/flyteidl2/workflow/queue_service_pb.ts +245 -0
- package/flyteidl2/workflow/run_definition_pb.ts +1192 -0
- package/flyteidl2/workflow/run_logs_service_pb.ts +106 -0
- package/flyteidl2/workflow/run_service_pb.ts +870 -0
- package/flyteidl2/workflow/state_service_pb.ts +310 -0
- package/flyteidl2/workflow/translator_service_pb.ts +174 -0
- package/package.json +18 -0
|
@@ -0,0 +1,396 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.2.5 with parameter "target=ts,import_extension=.ts"
|
|
2
|
+
// @generated from file flyteidl2/logs/dataplane/payload.proto (package flyteidl2.logs.dataplane, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
|
|
6
|
+
import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
|
|
7
|
+
import { file_buf_validate_validate } from "../../../buf/validate/validate_pb.ts";
|
|
8
|
+
import type { Timestamp } from "@bufbuild/protobuf/wkt";
|
|
9
|
+
import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
|
10
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Describes the file flyteidl2/logs/dataplane/payload.proto.
|
|
14
|
+
*/
|
|
15
|
+
export const file_flyteidl2_logs_dataplane_payload: GenFile = /*@__PURE__*/
|
|
16
|
+
fileDesc("CiZmbHl0ZWlkbDIvbG9ncy9kYXRhcGxhbmUvcGF5bG9hZC5wcm90bxIYZmx5dGVpZGwyLmxvZ3MuZGF0YXBsYW5lIlMKC1BvZFJlc291cmNlEhoKCW5hbWVzcGFjZRgBIAEoCUIHukgEcgIQARIVCgRuYW1lGAIgASgJQge6SARyAhABEhEKCWNvbnRhaW5lchgDIAEoCSLUAwoOTG9nZ2luZ0NvbnRleHQSHQoMY2x1c3Rlcl9uYW1lGAMgASgJQge6SARyAhABEiUKFGt1YmVybmV0ZXNfbmFtZXNwYWNlGAQgASg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ZWlkbDJcTG9nc1xEYXRhcGxhbmVcR1BCTWV0YWRhdGHqAhpGbHl0ZWlkbDI6OkxvZ3M6OkRhdGFwbGFuZWIGcHJvdG8z", [file_buf_validate_validate, file_google_protobuf_timestamp]);
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* @generated from message flyteidl2.logs.dataplane.PodResource
|
|
20
|
+
*/
|
|
21
|
+
export type PodResource = Message<"flyteidl2.logs.dataplane.PodResource"> & {
|
|
22
|
+
/**
|
|
23
|
+
* The namespace of the pod.
|
|
24
|
+
*
|
|
25
|
+
* @generated from field: string namespace = 1;
|
|
26
|
+
*/
|
|
27
|
+
namespace: string;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* The pod name.
|
|
31
|
+
*
|
|
32
|
+
* @generated from field: string name = 2;
|
|
33
|
+
*/
|
|
34
|
+
name: string;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* The container name. If not provided, attempt to find the primary container, else assume the first container.
|
|
38
|
+
* +optional
|
|
39
|
+
*
|
|
40
|
+
* @generated from field: string container = 3;
|
|
41
|
+
*/
|
|
42
|
+
container: string;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Describes the message flyteidl2.logs.dataplane.PodResource.
|
|
47
|
+
* Use `create(PodResourceSchema)` to create a new message.
|
|
48
|
+
*/
|
|
49
|
+
export const PodResourceSchema: GenMessage<PodResource> = /*@__PURE__*/
|
|
50
|
+
messageDesc(file_flyteidl2_logs_dataplane_payload, 0);
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Parameters of environment in which logs were collected. Should contain everything
|
|
54
|
+
* necessary to identify location of task execution logs in cloud providers.
|
|
55
|
+
*
|
|
56
|
+
* @generated from message flyteidl2.logs.dataplane.LoggingContext
|
|
57
|
+
*/
|
|
58
|
+
export type LoggingContext = Message<"flyteidl2.logs.dataplane.LoggingContext"> & {
|
|
59
|
+
/**
|
|
60
|
+
* @generated from field: string cluster_name = 3;
|
|
61
|
+
*/
|
|
62
|
+
clusterName: string;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* @generated from field: string kubernetes_namespace = 4;
|
|
66
|
+
*/
|
|
67
|
+
kubernetesNamespace: string;
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* @generated from field: string kubernetes_pod_name = 5;
|
|
71
|
+
*/
|
|
72
|
+
kubernetesPodName: string;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* @generated from field: string kubernetes_container_name = 6;
|
|
76
|
+
*/
|
|
77
|
+
kubernetesContainerName: string;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* @generated from field: google.protobuf.Timestamp execution_attempt_start_time = 7;
|
|
81
|
+
*/
|
|
82
|
+
executionAttemptStartTime?: Timestamp;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* @generated from field: google.protobuf.Timestamp execution_attempt_end_time = 8;
|
|
86
|
+
*/
|
|
87
|
+
executionAttemptEndTime?: Timestamp;
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* @generated from field: map<string, string> kubernetes_pod_labels = 9;
|
|
91
|
+
*/
|
|
92
|
+
kubernetesPodLabels: { [key: string]: string };
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Describes the message flyteidl2.logs.dataplane.LoggingContext.
|
|
97
|
+
* Use `create(LoggingContextSchema)` to create a new message.
|
|
98
|
+
*/
|
|
99
|
+
export const LoggingContextSchema: GenMessage<LoggingContext> = /*@__PURE__*/
|
|
100
|
+
messageDesc(file_flyteidl2_logs_dataplane_payload, 1);
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Parameters of environment in which logs were collected. Should contain everything
|
|
104
|
+
* necessary to identify location of task execution logs in cloud providers.
|
|
105
|
+
*
|
|
106
|
+
* @generated from message flyteidl2.logs.dataplane.ContainerIdentifier
|
|
107
|
+
*/
|
|
108
|
+
export type ContainerIdentifier = Message<"flyteidl2.logs.dataplane.ContainerIdentifier"> & {
|
|
109
|
+
/**
|
|
110
|
+
* The name of the cluster.
|
|
111
|
+
*
|
|
112
|
+
* @generated from field: string cluster_name = 1;
|
|
113
|
+
*/
|
|
114
|
+
clusterName: string;
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* The namespace in Kubernetes.
|
|
118
|
+
*
|
|
119
|
+
* @generated from field: string kubernetes_namespace = 2;
|
|
120
|
+
*/
|
|
121
|
+
kubernetesNamespace: string;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* The name of the pod in Kubernetes.
|
|
125
|
+
*
|
|
126
|
+
* @generated from field: string kubernetes_pod_name = 3;
|
|
127
|
+
*/
|
|
128
|
+
kubernetesPodName: string;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* The name of the container in Kubernetes.
|
|
132
|
+
*
|
|
133
|
+
* @generated from field: string kubernetes_container_name = 4;
|
|
134
|
+
*/
|
|
135
|
+
kubernetesContainerName: string;
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Describes the message flyteidl2.logs.dataplane.ContainerIdentifier.
|
|
140
|
+
* Use `create(ContainerIdentifierSchema)` to create a new message.
|
|
141
|
+
*/
|
|
142
|
+
export const ContainerIdentifierSchema: GenMessage<ContainerIdentifier> = /*@__PURE__*/
|
|
143
|
+
messageDesc(file_flyteidl2_logs_dataplane_payload, 2);
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* @generated from message flyteidl2.logs.dataplane.ContainerSelector
|
|
147
|
+
*/
|
|
148
|
+
export type ContainerSelector = Message<"flyteidl2.logs.dataplane.ContainerSelector"> & {
|
|
149
|
+
/**
|
|
150
|
+
* The name of the cluster.
|
|
151
|
+
*
|
|
152
|
+
* @generated from field: string cluster_name = 1;
|
|
153
|
+
*/
|
|
154
|
+
clusterName: string;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* The namespace in Kubernetes.
|
|
158
|
+
*
|
|
159
|
+
* @generated from field: string kubernetes_namespace = 2;
|
|
160
|
+
*/
|
|
161
|
+
kubernetesNamespace: string;
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* The prefix of the name of the pod in Kubernetes. This will only apply to persisted pods' logs because listing by
|
|
165
|
+
* prefix is the supported way to filter pods.
|
|
166
|
+
*
|
|
167
|
+
* @generated from field: string kubernetes_pod_name_prefix = 3;
|
|
168
|
+
*/
|
|
169
|
+
kubernetesPodNamePrefix: string;
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* The name of the container in Kubernetes. If not specified, logs for all containers
|
|
173
|
+
* will be streamed.
|
|
174
|
+
*
|
|
175
|
+
* @generated from field: string kubernetes_container_name = 4;
|
|
176
|
+
*/
|
|
177
|
+
kubernetesContainerName: string;
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* The label selector to filter pods. This will only apply to live pods' logs because Listing by prefix
|
|
181
|
+
* isn't supported.
|
|
182
|
+
*
|
|
183
|
+
* @generated from field: string kubernetes_pod_label_selector = 5;
|
|
184
|
+
*/
|
|
185
|
+
kubernetesPodLabelSelector: string;
|
|
186
|
+
};
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* Describes the message flyteidl2.logs.dataplane.ContainerSelector.
|
|
190
|
+
* Use `create(ContainerSelectorSchema)` to create a new message.
|
|
191
|
+
*/
|
|
192
|
+
export const ContainerSelectorSchema: GenMessage<ContainerSelector> = /*@__PURE__*/
|
|
193
|
+
messageDesc(file_flyteidl2_logs_dataplane_payload, 3);
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* @generated from message flyteidl2.logs.dataplane.LiveLogsOptions
|
|
197
|
+
*/
|
|
198
|
+
export type LiveLogsOptions = Message<"flyteidl2.logs.dataplane.LiveLogsOptions"> & {
|
|
199
|
+
/**
|
|
200
|
+
* LogPodStatus indicates whether to log the pod status along with the logs.
|
|
201
|
+
*
|
|
202
|
+
* @generated from field: bool log_pod_status = 1;
|
|
203
|
+
*/
|
|
204
|
+
logPodStatus: boolean;
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* LogTimestamps indicates whether to log the timestamps along with the logs. It prepends RFC3339 or RFC3339Nano
|
|
208
|
+
* format in the beginning of each log line.
|
|
209
|
+
*
|
|
210
|
+
* @generated from field: bool log_timestamps = 2;
|
|
211
|
+
*/
|
|
212
|
+
logTimestamps: boolean;
|
|
213
|
+
};
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* Describes the message flyteidl2.logs.dataplane.LiveLogsOptions.
|
|
217
|
+
* Use `create(LiveLogsOptionsSchema)` to create a new message.
|
|
218
|
+
*/
|
|
219
|
+
export const LiveLogsOptionsSchema: GenMessage<LiveLogsOptions> = /*@__PURE__*/
|
|
220
|
+
messageDesc(file_flyteidl2_logs_dataplane_payload, 4);
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* @generated from message flyteidl2.logs.dataplane.LogLine
|
|
224
|
+
*/
|
|
225
|
+
export type LogLine = Message<"flyteidl2.logs.dataplane.LogLine"> & {
|
|
226
|
+
/**
|
|
227
|
+
* @generated from field: google.protobuf.Timestamp timestamp = 1;
|
|
228
|
+
*/
|
|
229
|
+
timestamp?: Timestamp;
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* Each line is separated by either CRLF, CR or LF, which are included
|
|
233
|
+
* at the ends of the lines. This lets clients know whether log emitter
|
|
234
|
+
* wanted to overwrite the previous line (LF) or append a new line (CRLF).
|
|
235
|
+
*
|
|
236
|
+
* @generated from field: string message = 2;
|
|
237
|
+
*/
|
|
238
|
+
message: string;
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* @generated from field: flyteidl2.logs.dataplane.LogLineOriginator originator = 3;
|
|
242
|
+
*/
|
|
243
|
+
originator: LogLineOriginator;
|
|
244
|
+
};
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* Describes the message flyteidl2.logs.dataplane.LogLine.
|
|
248
|
+
* Use `create(LogLineSchema)` to create a new message.
|
|
249
|
+
*/
|
|
250
|
+
export const LogLineSchema: GenMessage<LogLine> = /*@__PURE__*/
|
|
251
|
+
messageDesc(file_flyteidl2_logs_dataplane_payload, 5);
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* @generated from message flyteidl2.logs.dataplane.LogLines
|
|
255
|
+
*/
|
|
256
|
+
export type LogLines = Message<"flyteidl2.logs.dataplane.LogLines"> & {
|
|
257
|
+
/**
|
|
258
|
+
* Each line is separated by either CRLF, CR or LF, which are included
|
|
259
|
+
* at the ends of the lines. This lets clients know whether log emitter
|
|
260
|
+
* wanted to overwrite the previous line (LF) or append a new line (CRLF).
|
|
261
|
+
*
|
|
262
|
+
* @generated from field: repeated string lines = 1 [deprecated = true];
|
|
263
|
+
* @deprecated
|
|
264
|
+
*/
|
|
265
|
+
lines: string[];
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* The index of the container in the list of containers. If the request was made with a single container identifier,
|
|
269
|
+
* this value will always be 0. Otherwise, it'll be an index into the last list of containers sent in the stream.
|
|
270
|
+
*
|
|
271
|
+
* @generated from field: uint32 container_index = 2;
|
|
272
|
+
*/
|
|
273
|
+
containerIndex: number;
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* The container identifier.
|
|
277
|
+
*
|
|
278
|
+
* @generated from field: flyteidl2.logs.dataplane.ContainerIdentifier container = 3;
|
|
279
|
+
*/
|
|
280
|
+
container?: ContainerIdentifier;
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* Each line is separated by either CRLF, CR or LF, which are included
|
|
284
|
+
* at the ends of the lines. This lets clients know whether log emitter
|
|
285
|
+
* wanted to overwrite the previous line (LF) or append a new line (CRLF).
|
|
286
|
+
*
|
|
287
|
+
* @generated from field: repeated flyteidl2.logs.dataplane.LogLine structured_lines = 4;
|
|
288
|
+
*/
|
|
289
|
+
structuredLines: LogLine[];
|
|
290
|
+
};
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* Describes the message flyteidl2.logs.dataplane.LogLines.
|
|
294
|
+
* Use `create(LogLinesSchema)` to create a new message.
|
|
295
|
+
*/
|
|
296
|
+
export const LogLinesSchema: GenMessage<LogLines> = /*@__PURE__*/
|
|
297
|
+
messageDesc(file_flyteidl2_logs_dataplane_payload, 6);
|
|
298
|
+
|
|
299
|
+
/**
|
|
300
|
+
* @generated from message flyteidl2.logs.dataplane.LogContainersList
|
|
301
|
+
*/
|
|
302
|
+
export type LogContainersList = Message<"flyteidl2.logs.dataplane.LogContainersList"> & {
|
|
303
|
+
/**
|
|
304
|
+
* @generated from field: repeated flyteidl2.logs.dataplane.ContainerIdentifier containers = 1;
|
|
305
|
+
*/
|
|
306
|
+
containers: ContainerIdentifier[];
|
|
307
|
+
};
|
|
308
|
+
|
|
309
|
+
/**
|
|
310
|
+
* Describes the message flyteidl2.logs.dataplane.LogContainersList.
|
|
311
|
+
* Use `create(LogContainersListSchema)` to create a new message.
|
|
312
|
+
*/
|
|
313
|
+
export const LogContainersListSchema: GenMessage<LogContainersList> = /*@__PURE__*/
|
|
314
|
+
messageDesc(file_flyteidl2_logs_dataplane_payload, 7);
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* @generated from message flyteidl2.logs.dataplane.LogLinesBatch
|
|
318
|
+
*/
|
|
319
|
+
export type LogLinesBatch = Message<"flyteidl2.logs.dataplane.LogLinesBatch"> & {
|
|
320
|
+
/**
|
|
321
|
+
* @generated from field: repeated flyteidl2.logs.dataplane.LogLines logs = 1;
|
|
322
|
+
*/
|
|
323
|
+
logs: LogLines[];
|
|
324
|
+
};
|
|
325
|
+
|
|
326
|
+
/**
|
|
327
|
+
* Describes the message flyteidl2.logs.dataplane.LogLinesBatch.
|
|
328
|
+
* Use `create(LogLinesBatchSchema)` to create a new message.
|
|
329
|
+
*/
|
|
330
|
+
export const LogLinesBatchSchema: GenMessage<LogLinesBatch> = /*@__PURE__*/
|
|
331
|
+
messageDesc(file_flyteidl2_logs_dataplane_payload, 8);
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* @generated from enum flyteidl2.logs.dataplane.LogLineOriginator
|
|
335
|
+
*/
|
|
336
|
+
export enum LogLineOriginator {
|
|
337
|
+
/**
|
|
338
|
+
* The originator of the log line is unknown.
|
|
339
|
+
*
|
|
340
|
+
* @generated from enum value: UNKNOWN = 0;
|
|
341
|
+
*/
|
|
342
|
+
UNKNOWN = 0,
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* The originator of the log line is the user application.
|
|
346
|
+
*
|
|
347
|
+
* @generated from enum value: USER = 1;
|
|
348
|
+
*/
|
|
349
|
+
USER = 1,
|
|
350
|
+
|
|
351
|
+
/**
|
|
352
|
+
* The originator of the log line is the system.
|
|
353
|
+
*
|
|
354
|
+
* @generated from enum value: SYSTEM = 2;
|
|
355
|
+
*/
|
|
356
|
+
SYSTEM = 2,
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
/**
|
|
360
|
+
* Describes the enum flyteidl2.logs.dataplane.LogLineOriginator.
|
|
361
|
+
*/
|
|
362
|
+
export const LogLineOriginatorSchema: GenEnum<LogLineOriginator> = /*@__PURE__*/
|
|
363
|
+
enumDesc(file_flyteidl2_logs_dataplane_payload, 0);
|
|
364
|
+
|
|
365
|
+
/**
|
|
366
|
+
* @generated from enum flyteidl2.logs.dataplane.LogsSource
|
|
367
|
+
*/
|
|
368
|
+
export enum LogsSource {
|
|
369
|
+
/**
|
|
370
|
+
* Return live logs and fall back to persisted if not available.
|
|
371
|
+
*
|
|
372
|
+
* @generated from enum value: LIVE_OR_PERSISTED = 0;
|
|
373
|
+
*/
|
|
374
|
+
LIVE_OR_PERSISTED = 0,
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* Return live logs only or error if pod is no longer around.
|
|
378
|
+
*
|
|
379
|
+
* @generated from enum value: LIVE_ONLY = 1;
|
|
380
|
+
*/
|
|
381
|
+
LIVE_ONLY = 1,
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* Return persisted logs only.
|
|
385
|
+
*
|
|
386
|
+
* @generated from enum value: PERSISTED_ONLY = 2;
|
|
387
|
+
*/
|
|
388
|
+
PERSISTED_ONLY = 2,
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
/**
|
|
392
|
+
* Describes the enum flyteidl2.logs.dataplane.LogsSource.
|
|
393
|
+
*/
|
|
394
|
+
export const LogsSourceSchema: GenEnum<LogsSource> = /*@__PURE__*/
|
|
395
|
+
enumDesc(file_flyteidl2_logs_dataplane_payload, 1);
|
|
396
|
+
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.2.5 with parameter "target=ts,import_extension=.ts"
|
|
2
|
+
// @generated from file flyteidl2/plugins/dask.proto (package flyteidl2.plugins, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
|
|
6
|
+
import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
|
|
7
|
+
import type { Resources } from "../core/tasks_pb.ts";
|
|
8
|
+
import { file_flyteidl2_core_tasks } from "../core/tasks_pb.ts";
|
|
9
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Describes the file flyteidl2/plugins/dask.proto.
|
|
13
|
+
*/
|
|
14
|
+
export const file_flyteidl2_plugins_dask: GenFile = /*@__PURE__*/
|
|
15
|
+
fileDesc("ChxmbHl0ZWlkbDIvcGx1Z2lucy9kYXNrLnByb3RvEhFmbHl0ZWlkbDIucGx1Z2lucyJzCgdEYXNrSm9iEjMKCXNjaGVkdWxlchgBIAEoCzIgLmZseXRlaWRsMi5wbHVnaW5zLkRhc2tTY2hlZHVsZXISMwoHd29ya2VycxgCIAEoCzIiLmZseXRlaWRsMi5wbHVnaW5zLkRhc2tXb3JrZXJHcm91cCJMCg1EYXNrU2NoZWR1bGVyEg0KBWltYWdlGAEgASgJEiwKCXJlc291cmNlcxgCIAEoCzIZLmZseXRlaWRsMi5jb3JlLlJlc291cmNlcyJpCg9EYXNrV29ya2VyR3JvdXASGQoRbnVtYmVyX29mX3dvcmtlcnMYASABKA0SDQoFaW1hZ2UYAiABKAkSLAoJcmVzb3VyY2VzGAMgASgLMhkuZmx5dGVpZGwyLmNvcmUuUmVzb3VyY2VzQsABChVjb20uZmx5dGVpZGwyLnBsdWdpbnNCCURhc2tQcm90b0gCUAFaNWdpdGh1Yi5jb20vZmx5dGVvcmcvZmx5dGUvdjIvZ2VuL2dvL2ZseXRlaWRsMi9wbHVnaW5zogIDRlBYqgIRRmx5dGVpZGwyLlBsdWdpbnPKAhFGbHl0ZWlkbDJcUGx1Z2luc+ICHUZseXRlaWRsMlxQbHVnaW5zXEdQQk1ldGFkYXRh6gISRmx5dGVpZGwyOjpQbHVnaW5zYgZwcm90bzM", [file_flyteidl2_core_tasks]);
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Custom Proto for Dask Plugin.
|
|
19
|
+
*
|
|
20
|
+
* @generated from message flyteidl2.plugins.DaskJob
|
|
21
|
+
*/
|
|
22
|
+
export type DaskJob = Message<"flyteidl2.plugins.DaskJob"> & {
|
|
23
|
+
/**
|
|
24
|
+
* Spec for the scheduler pod.
|
|
25
|
+
*
|
|
26
|
+
* @generated from field: flyteidl2.plugins.DaskScheduler scheduler = 1;
|
|
27
|
+
*/
|
|
28
|
+
scheduler?: DaskScheduler;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Spec of the default worker group.
|
|
32
|
+
*
|
|
33
|
+
* @generated from field: flyteidl2.plugins.DaskWorkerGroup workers = 2;
|
|
34
|
+
*/
|
|
35
|
+
workers?: DaskWorkerGroup;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Describes the message flyteidl2.plugins.DaskJob.
|
|
40
|
+
* Use `create(DaskJobSchema)` to create a new message.
|
|
41
|
+
*/
|
|
42
|
+
export const DaskJobSchema: GenMessage<DaskJob> = /*@__PURE__*/
|
|
43
|
+
messageDesc(file_flyteidl2_plugins_dask, 0);
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Specification for the scheduler pod.
|
|
47
|
+
*
|
|
48
|
+
* @generated from message flyteidl2.plugins.DaskScheduler
|
|
49
|
+
*/
|
|
50
|
+
export type DaskScheduler = Message<"flyteidl2.plugins.DaskScheduler"> & {
|
|
51
|
+
/**
|
|
52
|
+
* Optional image to use. If unset, will use the default image.
|
|
53
|
+
*
|
|
54
|
+
* @generated from field: string image = 1;
|
|
55
|
+
*/
|
|
56
|
+
image: string;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Resources assigned to the scheduler pod.
|
|
60
|
+
*
|
|
61
|
+
* @generated from field: flyteidl2.core.Resources resources = 2;
|
|
62
|
+
*/
|
|
63
|
+
resources?: Resources;
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Describes the message flyteidl2.plugins.DaskScheduler.
|
|
68
|
+
* Use `create(DaskSchedulerSchema)` to create a new message.
|
|
69
|
+
*/
|
|
70
|
+
export const DaskSchedulerSchema: GenMessage<DaskScheduler> = /*@__PURE__*/
|
|
71
|
+
messageDesc(file_flyteidl2_plugins_dask, 1);
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* @generated from message flyteidl2.plugins.DaskWorkerGroup
|
|
75
|
+
*/
|
|
76
|
+
export type DaskWorkerGroup = Message<"flyteidl2.plugins.DaskWorkerGroup"> & {
|
|
77
|
+
/**
|
|
78
|
+
* Number of workers in the group.
|
|
79
|
+
*
|
|
80
|
+
* @generated from field: uint32 number_of_workers = 1;
|
|
81
|
+
*/
|
|
82
|
+
numberOfWorkers: number;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Optional image to use for the pods of the worker group. If unset, will use the default image.
|
|
86
|
+
*
|
|
87
|
+
* @generated from field: string image = 2;
|
|
88
|
+
*/
|
|
89
|
+
image: string;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Resources assigned to the all pods of the worker group.
|
|
93
|
+
* As per https://kubernetes.dask.org/en/latest/kubecluster.html?highlight=limit#best-practices
|
|
94
|
+
* it is advised to only set limits. If requests are not explicitly set, the plugin will make
|
|
95
|
+
* sure to set requests==limits.
|
|
96
|
+
* The plugin sets ` --memory-limit` as well as `--nthreads` for the workers according to the limit.
|
|
97
|
+
*
|
|
98
|
+
* @generated from field: flyteidl2.core.Resources resources = 3;
|
|
99
|
+
*/
|
|
100
|
+
resources?: Resources;
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Describes the message flyteidl2.plugins.DaskWorkerGroup.
|
|
105
|
+
* Use `create(DaskWorkerGroupSchema)` to create a new message.
|
|
106
|
+
*/
|
|
107
|
+
export const DaskWorkerGroupSchema: GenMessage<DaskWorkerGroup> = /*@__PURE__*/
|
|
108
|
+
messageDesc(file_flyteidl2_plugins_dask, 2);
|
|
109
|
+
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.2.5 with parameter "target=ts,import_extension=.ts"
|
|
2
|
+
// @generated from file flyteidl2/plugins/ray.proto (package flyteidl2.plugins, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
|
|
6
|
+
import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
|
|
7
|
+
import type { K8sPod } from "../core/tasks_pb.ts";
|
|
8
|
+
import { file_flyteidl2_core_tasks } from "../core/tasks_pb.ts";
|
|
9
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Describes the file flyteidl2/plugins/ray.proto.
|
|
13
|
+
*/
|
|
14
|
+
export const file_flyteidl2_plugins_ray: GenFile = /*@__PURE__*/
|
|
15
|
+
fileDesc("ChtmbHl0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VpZGwyLmNvcmUuSzhzUG9kGjUKE1JheVN0YXJ0UGFyYW1zRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4AUK/AQoVY29tLmZseXRlaWRsMi5wbHVnaW5zQghSYXlQcm90b0gCUAFaNWdpdGh1Yi5jb20vZmx5dGVvcmcvZmx5dGUvdjIvZ2VuL2dvL2ZseXRlaWRsMi9wbHVnaW5zogIDRlBYqgIRRmx5dGVpZGwyLlBsdWdpbnPKAhFGbHl0ZWlkbDJcUGx1Z2luc+ICHUZseXRlaWRsMlxQbHVnaW5zXEdQQk1ldGFkYXRh6gISRmx5dGVpZGwyOjpQbHVnaW5zYgZwcm90bzM", [file_flyteidl2_core_tasks]);
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* RayJobSpec defines the desired state of RayJob
|
|
19
|
+
*
|
|
20
|
+
* @generated from message flyteidl2.plugins.RayJob
|
|
21
|
+
*/
|
|
22
|
+
export type RayJob = Message<"flyteidl2.plugins.RayJob"> & {
|
|
23
|
+
/**
|
|
24
|
+
* RayClusterSpec is the cluster template to run the job
|
|
25
|
+
*
|
|
26
|
+
* @generated from field: flyteidl2.plugins.RayCluster ray_cluster = 1;
|
|
27
|
+
*/
|
|
28
|
+
rayCluster?: RayCluster;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* runtime_env is base64 encoded.
|
|
32
|
+
* Ray runtime environments: https://docs.ray.io/en/latest/ray-core/handling-dependencies.html#runtime-environments
|
|
33
|
+
*
|
|
34
|
+
* @generated from field: string runtime_env = 2 [deprecated = true];
|
|
35
|
+
* @deprecated
|
|
36
|
+
*/
|
|
37
|
+
runtimeEnv: string;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* shutdown_after_job_finishes specifies whether the RayCluster should be deleted after the RayJob finishes.
|
|
41
|
+
*
|
|
42
|
+
* @generated from field: bool shutdown_after_job_finishes = 3;
|
|
43
|
+
*/
|
|
44
|
+
shutdownAfterJobFinishes: boolean;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* ttl_seconds_after_finished specifies the number of seconds after which the RayCluster will be deleted after the RayJob finishes.
|
|
48
|
+
*
|
|
49
|
+
* @generated from field: int32 ttl_seconds_after_finished = 4;
|
|
50
|
+
*/
|
|
51
|
+
ttlSecondsAfterFinished: number;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* RuntimeEnvYAML represents the runtime environment configuration
|
|
55
|
+
* provided as a multi-line YAML string.
|
|
56
|
+
*
|
|
57
|
+
* @generated from field: string runtime_env_yaml = 5;
|
|
58
|
+
*/
|
|
59
|
+
runtimeEnvYaml: string;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Describes the message flyteidl2.plugins.RayJob.
|
|
64
|
+
* Use `create(RayJobSchema)` to create a new message.
|
|
65
|
+
*/
|
|
66
|
+
export const RayJobSchema: GenMessage<RayJob> = /*@__PURE__*/
|
|
67
|
+
messageDesc(file_flyteidl2_plugins_ray, 0);
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Define Ray cluster defines the desired state of RayCluster
|
|
71
|
+
*
|
|
72
|
+
* @generated from message flyteidl2.plugins.RayCluster
|
|
73
|
+
*/
|
|
74
|
+
export type RayCluster = Message<"flyteidl2.plugins.RayCluster"> & {
|
|
75
|
+
/**
|
|
76
|
+
* HeadGroupSpecs are the spec for the head pod
|
|
77
|
+
*
|
|
78
|
+
* @generated from field: flyteidl2.plugins.HeadGroupSpec head_group_spec = 1;
|
|
79
|
+
*/
|
|
80
|
+
headGroupSpec?: HeadGroupSpec;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* WorkerGroupSpecs are the specs for the worker pods
|
|
84
|
+
*
|
|
85
|
+
* @generated from field: repeated flyteidl2.plugins.WorkerGroupSpec worker_group_spec = 2;
|
|
86
|
+
*/
|
|
87
|
+
workerGroupSpec: WorkerGroupSpec[];
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Whether to enable autoscaling.
|
|
91
|
+
*
|
|
92
|
+
* @generated from field: bool enable_autoscaling = 3;
|
|
93
|
+
*/
|
|
94
|
+
enableAutoscaling: boolean;
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Describes the message flyteidl2.plugins.RayCluster.
|
|
99
|
+
* Use `create(RayClusterSchema)` to create a new message.
|
|
100
|
+
*/
|
|
101
|
+
export const RayClusterSchema: GenMessage<RayCluster> = /*@__PURE__*/
|
|
102
|
+
messageDesc(file_flyteidl2_plugins_ray, 1);
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* HeadGroupSpec are the spec for the head pod
|
|
106
|
+
*
|
|
107
|
+
* @generated from message flyteidl2.plugins.HeadGroupSpec
|
|
108
|
+
*/
|
|
109
|
+
export type HeadGroupSpec = Message<"flyteidl2.plugins.HeadGroupSpec"> & {
|
|
110
|
+
/**
|
|
111
|
+
* Optional. RayStartParams are the params of the start command: address, object-store-memory.
|
|
112
|
+
* Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start
|
|
113
|
+
*
|
|
114
|
+
* @generated from field: map<string, string> ray_start_params = 1;
|
|
115
|
+
*/
|
|
116
|
+
rayStartParams: { [key: string]: string };
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Pod Spec for the ray head pod
|
|
120
|
+
*
|
|
121
|
+
* @generated from field: flyteidl2.core.K8sPod k8s_pod = 2;
|
|
122
|
+
*/
|
|
123
|
+
k8sPod?: K8sPod;
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Describes the message flyteidl2.plugins.HeadGroupSpec.
|
|
128
|
+
* Use `create(HeadGroupSpecSchema)` to create a new message.
|
|
129
|
+
*/
|
|
130
|
+
export const HeadGroupSpecSchema: GenMessage<HeadGroupSpec> = /*@__PURE__*/
|
|
131
|
+
messageDesc(file_flyteidl2_plugins_ray, 2);
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* WorkerGroupSpec are the specs for the worker pods
|
|
135
|
+
*
|
|
136
|
+
* @generated from message flyteidl2.plugins.WorkerGroupSpec
|
|
137
|
+
*/
|
|
138
|
+
export type WorkerGroupSpec = Message<"flyteidl2.plugins.WorkerGroupSpec"> & {
|
|
139
|
+
/**
|
|
140
|
+
* Required. RayCluster can have multiple worker groups, and it distinguishes them by name
|
|
141
|
+
*
|
|
142
|
+
* @generated from field: string group_name = 1;
|
|
143
|
+
*/
|
|
144
|
+
groupName: string;
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Required. Desired replicas of the worker group. Defaults to 1.
|
|
148
|
+
*
|
|
149
|
+
* @generated from field: int32 replicas = 2;
|
|
150
|
+
*/
|
|
151
|
+
replicas: number;
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Optional. Min replicas of the worker group. MinReplicas defaults to 1.
|
|
155
|
+
*
|
|
156
|
+
* @generated from field: int32 min_replicas = 3;
|
|
157
|
+
*/
|
|
158
|
+
minReplicas: number;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Optional. Max replicas of the worker group. MaxReplicas defaults to maxInt32
|
|
162
|
+
*
|
|
163
|
+
* @generated from field: int32 max_replicas = 4;
|
|
164
|
+
*/
|
|
165
|
+
maxReplicas: number;
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* Optional. RayStartParams are the params of the start command: address, object-store-memory.
|
|
169
|
+
* Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start
|
|
170
|
+
*
|
|
171
|
+
* @generated from field: map<string, string> ray_start_params = 5;
|
|
172
|
+
*/
|
|
173
|
+
rayStartParams: { [key: string]: string };
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Pod Spec for ray worker pods
|
|
177
|
+
*
|
|
178
|
+
* @generated from field: flyteidl2.core.K8sPod k8s_pod = 6;
|
|
179
|
+
*/
|
|
180
|
+
k8sPod?: K8sPod;
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* Describes the message flyteidl2.plugins.WorkerGroupSpec.
|
|
185
|
+
* Use `create(WorkerGroupSpecSchema)` to create a new message.
|
|
186
|
+
*/
|
|
187
|
+
export const WorkerGroupSpecSchema: GenMessage<WorkerGroupSpec> = /*@__PURE__*/
|
|
188
|
+
messageDesc(file_flyteidl2_plugins_ray, 3);
|
|
189
|
+
|