@flyteorg/flyteidl 1.14.3 → 1.15.0

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.
@@ -6274,11 +6274,78 @@ export namespace flyteidl {
6274
6274
  public static verify(message: { [k: string]: any }): (string|null);
6275
6275
  }
6276
6276
 
6277
+ /** Properties of a SharedMemory. */
6278
+ interface ISharedMemory {
6279
+
6280
+ /** SharedMemory mountPath */
6281
+ mountPath?: (string|null);
6282
+
6283
+ /** SharedMemory mountName */
6284
+ mountName?: (string|null);
6285
+
6286
+ /** SharedMemory sizeLimit */
6287
+ sizeLimit?: (string|null);
6288
+ }
6289
+
6290
+ /** Represents a SharedMemory. */
6291
+ class SharedMemory implements ISharedMemory {
6292
+
6293
+ /**
6294
+ * Constructs a new SharedMemory.
6295
+ * @param [properties] Properties to set
6296
+ */
6297
+ constructor(properties?: flyteidl.core.ISharedMemory);
6298
+
6299
+ /** SharedMemory mountPath. */
6300
+ public mountPath: string;
6301
+
6302
+ /** SharedMemory mountName. */
6303
+ public mountName: string;
6304
+
6305
+ /** SharedMemory sizeLimit. */
6306
+ public sizeLimit: string;
6307
+
6308
+ /**
6309
+ * Creates a new SharedMemory instance using the specified properties.
6310
+ * @param [properties] Properties to set
6311
+ * @returns SharedMemory instance
6312
+ */
6313
+ public static create(properties?: flyteidl.core.ISharedMemory): flyteidl.core.SharedMemory;
6314
+
6315
+ /**
6316
+ * Encodes the specified SharedMemory message. Does not implicitly {@link flyteidl.core.SharedMemory.verify|verify} messages.
6317
+ * @param message SharedMemory message or plain object to encode
6318
+ * @param [writer] Writer to encode to
6319
+ * @returns Writer
6320
+ */
6321
+ public static encode(message: flyteidl.core.ISharedMemory, writer?: $protobuf.Writer): $protobuf.Writer;
6322
+
6323
+ /**
6324
+ * Decodes a SharedMemory message from the specified reader or buffer.
6325
+ * @param reader Reader or buffer to decode from
6326
+ * @param [length] Message length if known beforehand
6327
+ * @returns SharedMemory
6328
+ * @throws {Error} If the payload is not a reader or valid buffer
6329
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
6330
+ */
6331
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.SharedMemory;
6332
+
6333
+ /**
6334
+ * Verifies a SharedMemory message.
6335
+ * @param message Plain object to verify
6336
+ * @returns `null` if valid, otherwise the reason why it is not
6337
+ */
6338
+ public static verify(message: { [k: string]: any }): (string|null);
6339
+ }
6340
+
6277
6341
  /** Properties of an ExtendedResources. */
6278
6342
  interface IExtendedResources {
6279
6343
 
6280
6344
  /** ExtendedResources gpuAccelerator */
6281
6345
  gpuAccelerator?: (flyteidl.core.IGPUAccelerator|null);
6346
+
6347
+ /** ExtendedResources sharedMemory */
6348
+ sharedMemory?: (flyteidl.core.ISharedMemory|null);
6282
6349
  }
6283
6350
 
6284
6351
  /** Represents an ExtendedResources. */
@@ -6293,6 +6360,9 @@ export namespace flyteidl {
6293
6360
  /** ExtendedResources gpuAccelerator. */
6294
6361
  public gpuAccelerator?: (flyteidl.core.IGPUAccelerator|null);
6295
6362
 
6363
+ /** ExtendedResources sharedMemory. */
6364
+ public sharedMemory?: (flyteidl.core.ISharedMemory|null);
6365
+
6296
6366
  /**
6297
6367
  * Creates a new ExtendedResources instance using the specified properties.
6298
6368
  * @param [properties] Properties to set
@@ -15136,6 +15136,150 @@
15136
15136
  return GPUAccelerator;
15137
15137
  })();
15138
15138
 
15139
+ core.SharedMemory = (function() {
15140
+
15141
+ /**
15142
+ * Properties of a SharedMemory.
15143
+ * @memberof flyteidl.core
15144
+ * @interface ISharedMemory
15145
+ * @property {string|null} [mountPath] SharedMemory mountPath
15146
+ * @property {string|null} [mountName] SharedMemory mountName
15147
+ * @property {string|null} [sizeLimit] SharedMemory sizeLimit
15148
+ */
15149
+
15150
+ /**
15151
+ * Constructs a new SharedMemory.
15152
+ * @memberof flyteidl.core
15153
+ * @classdesc Represents a SharedMemory.
15154
+ * @implements ISharedMemory
15155
+ * @constructor
15156
+ * @param {flyteidl.core.ISharedMemory=} [properties] Properties to set
15157
+ */
15158
+ function SharedMemory(properties) {
15159
+ if (properties)
15160
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
15161
+ if (properties[keys[i]] != null)
15162
+ this[keys[i]] = properties[keys[i]];
15163
+ }
15164
+
15165
+ /**
15166
+ * SharedMemory mountPath.
15167
+ * @member {string} mountPath
15168
+ * @memberof flyteidl.core.SharedMemory
15169
+ * @instance
15170
+ */
15171
+ SharedMemory.prototype.mountPath = "";
15172
+
15173
+ /**
15174
+ * SharedMemory mountName.
15175
+ * @member {string} mountName
15176
+ * @memberof flyteidl.core.SharedMemory
15177
+ * @instance
15178
+ */
15179
+ SharedMemory.prototype.mountName = "";
15180
+
15181
+ /**
15182
+ * SharedMemory sizeLimit.
15183
+ * @member {string} sizeLimit
15184
+ * @memberof flyteidl.core.SharedMemory
15185
+ * @instance
15186
+ */
15187
+ SharedMemory.prototype.sizeLimit = "";
15188
+
15189
+ /**
15190
+ * Creates a new SharedMemory instance using the specified properties.
15191
+ * @function create
15192
+ * @memberof flyteidl.core.SharedMemory
15193
+ * @static
15194
+ * @param {flyteidl.core.ISharedMemory=} [properties] Properties to set
15195
+ * @returns {flyteidl.core.SharedMemory} SharedMemory instance
15196
+ */
15197
+ SharedMemory.create = function create(properties) {
15198
+ return new SharedMemory(properties);
15199
+ };
15200
+
15201
+ /**
15202
+ * Encodes the specified SharedMemory message. Does not implicitly {@link flyteidl.core.SharedMemory.verify|verify} messages.
15203
+ * @function encode
15204
+ * @memberof flyteidl.core.SharedMemory
15205
+ * @static
15206
+ * @param {flyteidl.core.ISharedMemory} message SharedMemory message or plain object to encode
15207
+ * @param {$protobuf.Writer} [writer] Writer to encode to
15208
+ * @returns {$protobuf.Writer} Writer
15209
+ */
15210
+ SharedMemory.encode = function encode(message, writer) {
15211
+ if (!writer)
15212
+ writer = $Writer.create();
15213
+ if (message.mountPath != null && message.hasOwnProperty("mountPath"))
15214
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.mountPath);
15215
+ if (message.mountName != null && message.hasOwnProperty("mountName"))
15216
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.mountName);
15217
+ if (message.sizeLimit != null && message.hasOwnProperty("sizeLimit"))
15218
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.sizeLimit);
15219
+ return writer;
15220
+ };
15221
+
15222
+ /**
15223
+ * Decodes a SharedMemory message from the specified reader or buffer.
15224
+ * @function decode
15225
+ * @memberof flyteidl.core.SharedMemory
15226
+ * @static
15227
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
15228
+ * @param {number} [length] Message length if known beforehand
15229
+ * @returns {flyteidl.core.SharedMemory} SharedMemory
15230
+ * @throws {Error} If the payload is not a reader or valid buffer
15231
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
15232
+ */
15233
+ SharedMemory.decode = function decode(reader, length) {
15234
+ if (!(reader instanceof $Reader))
15235
+ reader = $Reader.create(reader);
15236
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.SharedMemory();
15237
+ while (reader.pos < end) {
15238
+ var tag = reader.uint32();
15239
+ switch (tag >>> 3) {
15240
+ case 1:
15241
+ message.mountPath = reader.string();
15242
+ break;
15243
+ case 2:
15244
+ message.mountName = reader.string();
15245
+ break;
15246
+ case 3:
15247
+ message.sizeLimit = reader.string();
15248
+ break;
15249
+ default:
15250
+ reader.skipType(tag & 7);
15251
+ break;
15252
+ }
15253
+ }
15254
+ return message;
15255
+ };
15256
+
15257
+ /**
15258
+ * Verifies a SharedMemory message.
15259
+ * @function verify
15260
+ * @memberof flyteidl.core.SharedMemory
15261
+ * @static
15262
+ * @param {Object.<string,*>} message Plain object to verify
15263
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
15264
+ */
15265
+ SharedMemory.verify = function verify(message) {
15266
+ if (typeof message !== "object" || message === null)
15267
+ return "object expected";
15268
+ if (message.mountPath != null && message.hasOwnProperty("mountPath"))
15269
+ if (!$util.isString(message.mountPath))
15270
+ return "mountPath: string expected";
15271
+ if (message.mountName != null && message.hasOwnProperty("mountName"))
15272
+ if (!$util.isString(message.mountName))
15273
+ return "mountName: string expected";
15274
+ if (message.sizeLimit != null && message.hasOwnProperty("sizeLimit"))
15275
+ if (!$util.isString(message.sizeLimit))
15276
+ return "sizeLimit: string expected";
15277
+ return null;
15278
+ };
15279
+
15280
+ return SharedMemory;
15281
+ })();
15282
+
15139
15283
  core.ExtendedResources = (function() {
15140
15284
 
15141
15285
  /**
@@ -15143,6 +15287,7 @@
15143
15287
  * @memberof flyteidl.core
15144
15288
  * @interface IExtendedResources
15145
15289
  * @property {flyteidl.core.IGPUAccelerator|null} [gpuAccelerator] ExtendedResources gpuAccelerator
15290
+ * @property {flyteidl.core.ISharedMemory|null} [sharedMemory] ExtendedResources sharedMemory
15146
15291
  */
15147
15292
 
15148
15293
  /**
@@ -15168,6 +15313,14 @@
15168
15313
  */
15169
15314
  ExtendedResources.prototype.gpuAccelerator = null;
15170
15315
 
15316
+ /**
15317
+ * ExtendedResources sharedMemory.
15318
+ * @member {flyteidl.core.ISharedMemory|null|undefined} sharedMemory
15319
+ * @memberof flyteidl.core.ExtendedResources
15320
+ * @instance
15321
+ */
15322
+ ExtendedResources.prototype.sharedMemory = null;
15323
+
15171
15324
  /**
15172
15325
  * Creates a new ExtendedResources instance using the specified properties.
15173
15326
  * @function create
@@ -15194,6 +15347,8 @@
15194
15347
  writer = $Writer.create();
15195
15348
  if (message.gpuAccelerator != null && message.hasOwnProperty("gpuAccelerator"))
15196
15349
  $root.flyteidl.core.GPUAccelerator.encode(message.gpuAccelerator, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
15350
+ if (message.sharedMemory != null && message.hasOwnProperty("sharedMemory"))
15351
+ $root.flyteidl.core.SharedMemory.encode(message.sharedMemory, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
15197
15352
  return writer;
15198
15353
  };
15199
15354
 
@@ -15218,6 +15373,9 @@
15218
15373
  case 1:
15219
15374
  message.gpuAccelerator = $root.flyteidl.core.GPUAccelerator.decode(reader, reader.uint32());
15220
15375
  break;
15376
+ case 2:
15377
+ message.sharedMemory = $root.flyteidl.core.SharedMemory.decode(reader, reader.uint32());
15378
+ break;
15221
15379
  default:
15222
15380
  reader.skipType(tag & 7);
15223
15381
  break;
@@ -15242,6 +15400,11 @@
15242
15400
  if (error)
15243
15401
  return "gpuAccelerator." + error;
15244
15402
  }
15403
+ if (message.sharedMemory != null && message.hasOwnProperty("sharedMemory")) {
15404
+ var error = $root.flyteidl.core.SharedMemory.verify(message.sharedMemory);
15405
+ if (error)
15406
+ return "sharedMemory." + error;
15407
+ }
15245
15408
  return null;
15246
15409
  };
15247
15410
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flyteorg/flyteidl",
3
- "version": "1.14.3",
3
+ "version": "1.15.0",
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.
@@ -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
  }