@flyteorg/flyteidl 1.14.3 → 1.15.1

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.
@@ -4598,6 +4598,9 @@ export namespace flyteidl {
4598
4598
 
4599
4599
  /** ArrayNode dataMode */
4600
4600
  dataMode?: (flyteidl.core.ArrayNode.DataMode|null);
4601
+
4602
+ /** ArrayNode boundInputs */
4603
+ boundInputs?: (string[]|null);
4601
4604
  }
4602
4605
 
4603
4606
  /** Represents an ArrayNode. */
@@ -4630,6 +4633,9 @@ export namespace flyteidl {
4630
4633
  /** ArrayNode dataMode. */
4631
4634
  public dataMode: flyteidl.core.ArrayNode.DataMode;
4632
4635
 
4636
+ /** ArrayNode boundInputs. */
4637
+ public boundInputs: string[];
4638
+
4633
4639
  /** ArrayNode parallelismOption. */
4634
4640
  public parallelismOption?: "parallelism";
4635
4641
 
@@ -6274,11 +6280,78 @@ export namespace flyteidl {
6274
6280
  public static verify(message: { [k: string]: any }): (string|null);
6275
6281
  }
6276
6282
 
6283
+ /** Properties of a SharedMemory. */
6284
+ interface ISharedMemory {
6285
+
6286
+ /** SharedMemory mountPath */
6287
+ mountPath?: (string|null);
6288
+
6289
+ /** SharedMemory mountName */
6290
+ mountName?: (string|null);
6291
+
6292
+ /** SharedMemory sizeLimit */
6293
+ sizeLimit?: (string|null);
6294
+ }
6295
+
6296
+ /** Represents a SharedMemory. */
6297
+ class SharedMemory implements ISharedMemory {
6298
+
6299
+ /**
6300
+ * Constructs a new SharedMemory.
6301
+ * @param [properties] Properties to set
6302
+ */
6303
+ constructor(properties?: flyteidl.core.ISharedMemory);
6304
+
6305
+ /** SharedMemory mountPath. */
6306
+ public mountPath: string;
6307
+
6308
+ /** SharedMemory mountName. */
6309
+ public mountName: string;
6310
+
6311
+ /** SharedMemory sizeLimit. */
6312
+ public sizeLimit: string;
6313
+
6314
+ /**
6315
+ * Creates a new SharedMemory instance using the specified properties.
6316
+ * @param [properties] Properties to set
6317
+ * @returns SharedMemory instance
6318
+ */
6319
+ public static create(properties?: flyteidl.core.ISharedMemory): flyteidl.core.SharedMemory;
6320
+
6321
+ /**
6322
+ * Encodes the specified SharedMemory message. Does not implicitly {@link flyteidl.core.SharedMemory.verify|verify} messages.
6323
+ * @param message SharedMemory message or plain object to encode
6324
+ * @param [writer] Writer to encode to
6325
+ * @returns Writer
6326
+ */
6327
+ public static encode(message: flyteidl.core.ISharedMemory, writer?: $protobuf.Writer): $protobuf.Writer;
6328
+
6329
+ /**
6330
+ * Decodes a SharedMemory message from the specified reader or buffer.
6331
+ * @param reader Reader or buffer to decode from
6332
+ * @param [length] Message length if known beforehand
6333
+ * @returns SharedMemory
6334
+ * @throws {Error} If the payload is not a reader or valid buffer
6335
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
6336
+ */
6337
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.SharedMemory;
6338
+
6339
+ /**
6340
+ * Verifies a SharedMemory message.
6341
+ * @param message Plain object to verify
6342
+ * @returns `null` if valid, otherwise the reason why it is not
6343
+ */
6344
+ public static verify(message: { [k: string]: any }): (string|null);
6345
+ }
6346
+
6277
6347
  /** Properties of an ExtendedResources. */
6278
6348
  interface IExtendedResources {
6279
6349
 
6280
6350
  /** ExtendedResources gpuAccelerator */
6281
6351
  gpuAccelerator?: (flyteidl.core.IGPUAccelerator|null);
6352
+
6353
+ /** ExtendedResources sharedMemory */
6354
+ sharedMemory?: (flyteidl.core.ISharedMemory|null);
6282
6355
  }
6283
6356
 
6284
6357
  /** Represents an ExtendedResources. */
@@ -6293,6 +6366,9 @@ export namespace flyteidl {
6293
6366
  /** ExtendedResources gpuAccelerator. */
6294
6367
  public gpuAccelerator?: (flyteidl.core.IGPUAccelerator|null);
6295
6368
 
6369
+ /** ExtendedResources sharedMemory. */
6370
+ public sharedMemory?: (flyteidl.core.ISharedMemory|null);
6371
+
6296
6372
  /**
6297
6373
  * Creates a new ExtendedResources instance using the specified properties.
6298
6374
  * @param [properties] Properties to set
@@ -11008,6 +11008,7 @@
11008
11008
  * @property {flyteidl.core.ArrayNode.ExecutionMode|null} [executionMode] ArrayNode executionMode
11009
11009
  * @property {google.protobuf.IBoolValue|null} [isOriginalSubNodeInterface] ArrayNode isOriginalSubNodeInterface
11010
11010
  * @property {flyteidl.core.ArrayNode.DataMode|null} [dataMode] ArrayNode dataMode
11011
+ * @property {Array.<string>|null} [boundInputs] ArrayNode boundInputs
11011
11012
  */
11012
11013
 
11013
11014
  /**
@@ -11019,6 +11020,7 @@
11019
11020
  * @param {flyteidl.core.IArrayNode=} [properties] Properties to set
11020
11021
  */
11021
11022
  function ArrayNode(properties) {
11023
+ this.boundInputs = [];
11022
11024
  if (properties)
11023
11025
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
11024
11026
  if (properties[keys[i]] != null)
@@ -11081,6 +11083,14 @@
11081
11083
  */
11082
11084
  ArrayNode.prototype.dataMode = 0;
11083
11085
 
11086
+ /**
11087
+ * ArrayNode boundInputs.
11088
+ * @member {Array.<string>} boundInputs
11089
+ * @memberof flyteidl.core.ArrayNode
11090
+ * @instance
11091
+ */
11092
+ ArrayNode.prototype.boundInputs = $util.emptyArray;
11093
+
11084
11094
  // OneOf field names bound to virtual getters and setters
11085
11095
  var $oneOfFields;
11086
11096
 
@@ -11144,6 +11154,9 @@
11144
11154
  $root.google.protobuf.BoolValue.encode(message.isOriginalSubNodeInterface, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
11145
11155
  if (message.dataMode != null && message.hasOwnProperty("dataMode"))
11146
11156
  writer.uint32(/* id 7, wireType 0 =*/56).int32(message.dataMode);
11157
+ if (message.boundInputs != null && message.boundInputs.length)
11158
+ for (var i = 0; i < message.boundInputs.length; ++i)
11159
+ writer.uint32(/* id 8, wireType 2 =*/66).string(message.boundInputs[i]);
11147
11160
  return writer;
11148
11161
  };
11149
11162
 
@@ -11186,6 +11199,11 @@
11186
11199
  case 7:
11187
11200
  message.dataMode = reader.int32();
11188
11201
  break;
11202
+ case 8:
11203
+ if (!(message.boundInputs && message.boundInputs.length))
11204
+ message.boundInputs = [];
11205
+ message.boundInputs.push(reader.string());
11206
+ break;
11189
11207
  default:
11190
11208
  reader.skipType(tag & 7);
11191
11209
  break;
@@ -11249,6 +11267,13 @@
11249
11267
  case 1:
11250
11268
  break;
11251
11269
  }
11270
+ if (message.boundInputs != null && message.hasOwnProperty("boundInputs")) {
11271
+ if (!Array.isArray(message.boundInputs))
11272
+ return "boundInputs: array expected";
11273
+ for (var i = 0; i < message.boundInputs.length; ++i)
11274
+ if (!$util.isString(message.boundInputs[i]))
11275
+ return "boundInputs: string[] expected";
11276
+ }
11252
11277
  return null;
11253
11278
  };
11254
11279
 
@@ -15136,6 +15161,150 @@
15136
15161
  return GPUAccelerator;
15137
15162
  })();
15138
15163
 
15164
+ core.SharedMemory = (function() {
15165
+
15166
+ /**
15167
+ * Properties of a SharedMemory.
15168
+ * @memberof flyteidl.core
15169
+ * @interface ISharedMemory
15170
+ * @property {string|null} [mountPath] SharedMemory mountPath
15171
+ * @property {string|null} [mountName] SharedMemory mountName
15172
+ * @property {string|null} [sizeLimit] SharedMemory sizeLimit
15173
+ */
15174
+
15175
+ /**
15176
+ * Constructs a new SharedMemory.
15177
+ * @memberof flyteidl.core
15178
+ * @classdesc Represents a SharedMemory.
15179
+ * @implements ISharedMemory
15180
+ * @constructor
15181
+ * @param {flyteidl.core.ISharedMemory=} [properties] Properties to set
15182
+ */
15183
+ function SharedMemory(properties) {
15184
+ if (properties)
15185
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
15186
+ if (properties[keys[i]] != null)
15187
+ this[keys[i]] = properties[keys[i]];
15188
+ }
15189
+
15190
+ /**
15191
+ * SharedMemory mountPath.
15192
+ * @member {string} mountPath
15193
+ * @memberof flyteidl.core.SharedMemory
15194
+ * @instance
15195
+ */
15196
+ SharedMemory.prototype.mountPath = "";
15197
+
15198
+ /**
15199
+ * SharedMemory mountName.
15200
+ * @member {string} mountName
15201
+ * @memberof flyteidl.core.SharedMemory
15202
+ * @instance
15203
+ */
15204
+ SharedMemory.prototype.mountName = "";
15205
+
15206
+ /**
15207
+ * SharedMemory sizeLimit.
15208
+ * @member {string} sizeLimit
15209
+ * @memberof flyteidl.core.SharedMemory
15210
+ * @instance
15211
+ */
15212
+ SharedMemory.prototype.sizeLimit = "";
15213
+
15214
+ /**
15215
+ * Creates a new SharedMemory instance using the specified properties.
15216
+ * @function create
15217
+ * @memberof flyteidl.core.SharedMemory
15218
+ * @static
15219
+ * @param {flyteidl.core.ISharedMemory=} [properties] Properties to set
15220
+ * @returns {flyteidl.core.SharedMemory} SharedMemory instance
15221
+ */
15222
+ SharedMemory.create = function create(properties) {
15223
+ return new SharedMemory(properties);
15224
+ };
15225
+
15226
+ /**
15227
+ * Encodes the specified SharedMemory message. Does not implicitly {@link flyteidl.core.SharedMemory.verify|verify} messages.
15228
+ * @function encode
15229
+ * @memberof flyteidl.core.SharedMemory
15230
+ * @static
15231
+ * @param {flyteidl.core.ISharedMemory} message SharedMemory message or plain object to encode
15232
+ * @param {$protobuf.Writer} [writer] Writer to encode to
15233
+ * @returns {$protobuf.Writer} Writer
15234
+ */
15235
+ SharedMemory.encode = function encode(message, writer) {
15236
+ if (!writer)
15237
+ writer = $Writer.create();
15238
+ if (message.mountPath != null && message.hasOwnProperty("mountPath"))
15239
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.mountPath);
15240
+ if (message.mountName != null && message.hasOwnProperty("mountName"))
15241
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.mountName);
15242
+ if (message.sizeLimit != null && message.hasOwnProperty("sizeLimit"))
15243
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.sizeLimit);
15244
+ return writer;
15245
+ };
15246
+
15247
+ /**
15248
+ * Decodes a SharedMemory message from the specified reader or buffer.
15249
+ * @function decode
15250
+ * @memberof flyteidl.core.SharedMemory
15251
+ * @static
15252
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
15253
+ * @param {number} [length] Message length if known beforehand
15254
+ * @returns {flyteidl.core.SharedMemory} SharedMemory
15255
+ * @throws {Error} If the payload is not a reader or valid buffer
15256
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
15257
+ */
15258
+ SharedMemory.decode = function decode(reader, length) {
15259
+ if (!(reader instanceof $Reader))
15260
+ reader = $Reader.create(reader);
15261
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.SharedMemory();
15262
+ while (reader.pos < end) {
15263
+ var tag = reader.uint32();
15264
+ switch (tag >>> 3) {
15265
+ case 1:
15266
+ message.mountPath = reader.string();
15267
+ break;
15268
+ case 2:
15269
+ message.mountName = reader.string();
15270
+ break;
15271
+ case 3:
15272
+ message.sizeLimit = reader.string();
15273
+ break;
15274
+ default:
15275
+ reader.skipType(tag & 7);
15276
+ break;
15277
+ }
15278
+ }
15279
+ return message;
15280
+ };
15281
+
15282
+ /**
15283
+ * Verifies a SharedMemory message.
15284
+ * @function verify
15285
+ * @memberof flyteidl.core.SharedMemory
15286
+ * @static
15287
+ * @param {Object.<string,*>} message Plain object to verify
15288
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
15289
+ */
15290
+ SharedMemory.verify = function verify(message) {
15291
+ if (typeof message !== "object" || message === null)
15292
+ return "object expected";
15293
+ if (message.mountPath != null && message.hasOwnProperty("mountPath"))
15294
+ if (!$util.isString(message.mountPath))
15295
+ return "mountPath: string expected";
15296
+ if (message.mountName != null && message.hasOwnProperty("mountName"))
15297
+ if (!$util.isString(message.mountName))
15298
+ return "mountName: string expected";
15299
+ if (message.sizeLimit != null && message.hasOwnProperty("sizeLimit"))
15300
+ if (!$util.isString(message.sizeLimit))
15301
+ return "sizeLimit: string expected";
15302
+ return null;
15303
+ };
15304
+
15305
+ return SharedMemory;
15306
+ })();
15307
+
15139
15308
  core.ExtendedResources = (function() {
15140
15309
 
15141
15310
  /**
@@ -15143,6 +15312,7 @@
15143
15312
  * @memberof flyteidl.core
15144
15313
  * @interface IExtendedResources
15145
15314
  * @property {flyteidl.core.IGPUAccelerator|null} [gpuAccelerator] ExtendedResources gpuAccelerator
15315
+ * @property {flyteidl.core.ISharedMemory|null} [sharedMemory] ExtendedResources sharedMemory
15146
15316
  */
15147
15317
 
15148
15318
  /**
@@ -15168,6 +15338,14 @@
15168
15338
  */
15169
15339
  ExtendedResources.prototype.gpuAccelerator = null;
15170
15340
 
15341
+ /**
15342
+ * ExtendedResources sharedMemory.
15343
+ * @member {flyteidl.core.ISharedMemory|null|undefined} sharedMemory
15344
+ * @memberof flyteidl.core.ExtendedResources
15345
+ * @instance
15346
+ */
15347
+ ExtendedResources.prototype.sharedMemory = null;
15348
+
15171
15349
  /**
15172
15350
  * Creates a new ExtendedResources instance using the specified properties.
15173
15351
  * @function create
@@ -15194,6 +15372,8 @@
15194
15372
  writer = $Writer.create();
15195
15373
  if (message.gpuAccelerator != null && message.hasOwnProperty("gpuAccelerator"))
15196
15374
  $root.flyteidl.core.GPUAccelerator.encode(message.gpuAccelerator, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
15375
+ if (message.sharedMemory != null && message.hasOwnProperty("sharedMemory"))
15376
+ $root.flyteidl.core.SharedMemory.encode(message.sharedMemory, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
15197
15377
  return writer;
15198
15378
  };
15199
15379
 
@@ -15218,6 +15398,9 @@
15218
15398
  case 1:
15219
15399
  message.gpuAccelerator = $root.flyteidl.core.GPUAccelerator.decode(reader, reader.uint32());
15220
15400
  break;
15401
+ case 2:
15402
+ message.sharedMemory = $root.flyteidl.core.SharedMemory.decode(reader, reader.uint32());
15403
+ break;
15221
15404
  default:
15222
15405
  reader.skipType(tag & 7);
15223
15406
  break;
@@ -15242,6 +15425,11 @@
15242
15425
  if (error)
15243
15426
  return "gpuAccelerator." + error;
15244
15427
  }
15428
+ if (message.sharedMemory != null && message.hasOwnProperty("sharedMemory")) {
15429
+ var error = $root.flyteidl.core.SharedMemory.verify(message.sharedMemory);
15430
+ if (error)
15431
+ return "sharedMemory." + error;
15432
+ }
15245
15433
  return null;
15246
15434
  };
15247
15435
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flyteorg/flyteidl",
3
- "version": "1.14.3",
3
+ "version": "1.15.1",
4
4
  "description": "Compiled protocol buffers and gRPC service clients/servers for Flyte IDLs",
5
5
  "repository": {
6
6
  "type": "git",
@@ -61,12 +61,25 @@ message GPUAccelerator {
61
61
  }
62
62
  }
63
63
 
64
+ // Metadata associated with configuring a shared memory volume for a task.
65
+ message SharedMemory {
66
+ // Mount path to place in container
67
+ string mount_path = 1;
68
+ // Name for volume
69
+ string mount_name = 2;
70
+ // Size limit for shared memory. If not set, then the shared memory is equal
71
+ // to the allocated memory.
72
+ // +optional
73
+ string size_limit = 3;
74
+ }
75
+
64
76
  // Encapsulates all non-standard resources, not captured by v1.ResourceRequirements, to
65
77
  // allocate to a task.
66
78
  message ExtendedResources {
67
79
  // GPU accelerator to select for task. Contains information about device type, and
68
80
  // for multi-instance GPUs, the partition size to use.
69
81
  GPUAccelerator gpu_accelerator = 1;
82
+ SharedMemory shared_memory = 2;
70
83
  }
71
84
 
72
85
  // Runtime information. This is loosely defined to allow for extensibility.
@@ -167,6 +167,9 @@ message ArrayNode {
167
167
 
168
168
  // data_mode determines how input data is passed to the sub-nodes
169
169
  DataMode data_mode = 7;
170
+
171
+ //+optional. Specifies input bindings that are not mapped over for the node.
172
+ repeated string bound_inputs = 8;
170
173
  }
171
174
 
172
175
  // Defines extra information about the Node.
@@ -1,10 +1,12 @@
1
1
  syntax = "proto3";
2
2
 
3
3
  package flyteidl.plugins;
4
- import "google/protobuf/struct.proto";
5
4
 
6
5
  option go_package = "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins";
7
6
 
7
+ import "google/protobuf/struct.proto";
8
+ import "flyteidl/core/tasks.proto";
9
+
8
10
  message SparkApplication {
9
11
  enum Type {
10
12
  PYTHON = 0;
@@ -31,4 +33,10 @@ message SparkJob {
31
33
  // Domain name of your deployment. Use the form <account>.cloud.databricks.com.
32
34
  // This instance name can be set in either flytepropeller or flytekit.
33
35
  string databricksInstance = 9;
36
+
37
+ // Pod Spec for the Spark driver pod
38
+ core.K8sPod driverPod = 10;
39
+
40
+ // Pod Spec for the Spark executor pod
41
+ core.K8sPod executorPod = 11;
34
42
  }