@flyteorg/flyteidl 1.14.2 → 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.
package/gen/pb-js/flyteidl.d.ts
CHANGED
|
@@ -5181,6 +5181,9 @@ export namespace flyteidl {
|
|
|
5181
5181
|
|
|
5182
5182
|
/** TaskNodeOverrides containerImage */
|
|
5183
5183
|
containerImage?: (string|null);
|
|
5184
|
+
|
|
5185
|
+
/** TaskNodeOverrides podTemplate */
|
|
5186
|
+
podTemplate?: (flyteidl.core.IK8sPod|null);
|
|
5184
5187
|
}
|
|
5185
5188
|
|
|
5186
5189
|
/** Represents a TaskNodeOverrides. */
|
|
@@ -5201,6 +5204,9 @@ export namespace flyteidl {
|
|
|
5201
5204
|
/** TaskNodeOverrides containerImage. */
|
|
5202
5205
|
public containerImage: string;
|
|
5203
5206
|
|
|
5207
|
+
/** TaskNodeOverrides podTemplate. */
|
|
5208
|
+
public podTemplate?: (flyteidl.core.IK8sPod|null);
|
|
5209
|
+
|
|
5204
5210
|
/**
|
|
5205
5211
|
* Creates a new TaskNodeOverrides instance using the specified properties.
|
|
5206
5212
|
* @param [properties] Properties to set
|
|
@@ -6268,11 +6274,78 @@ export namespace flyteidl {
|
|
|
6268
6274
|
public static verify(message: { [k: string]: any }): (string|null);
|
|
6269
6275
|
}
|
|
6270
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
|
+
|
|
6271
6341
|
/** Properties of an ExtendedResources. */
|
|
6272
6342
|
interface IExtendedResources {
|
|
6273
6343
|
|
|
6274
6344
|
/** ExtendedResources gpuAccelerator */
|
|
6275
6345
|
gpuAccelerator?: (flyteidl.core.IGPUAccelerator|null);
|
|
6346
|
+
|
|
6347
|
+
/** ExtendedResources sharedMemory */
|
|
6348
|
+
sharedMemory?: (flyteidl.core.ISharedMemory|null);
|
|
6276
6349
|
}
|
|
6277
6350
|
|
|
6278
6351
|
/** Represents an ExtendedResources. */
|
|
@@ -6287,6 +6360,9 @@ export namespace flyteidl {
|
|
|
6287
6360
|
/** ExtendedResources gpuAccelerator. */
|
|
6288
6361
|
public gpuAccelerator?: (flyteidl.core.IGPUAccelerator|null);
|
|
6289
6362
|
|
|
6363
|
+
/** ExtendedResources sharedMemory. */
|
|
6364
|
+
public sharedMemory?: (flyteidl.core.ISharedMemory|null);
|
|
6365
|
+
|
|
6290
6366
|
/**
|
|
6291
6367
|
* Creates a new ExtendedResources instance using the specified properties.
|
|
6292
6368
|
* @param [properties] Properties to set
|
|
@@ -6983,6 +7059,9 @@ export namespace flyteidl {
|
|
|
6983
7059
|
|
|
6984
7060
|
/** K8sPod dataConfig */
|
|
6985
7061
|
dataConfig?: (flyteidl.core.IDataLoadingConfig|null);
|
|
7062
|
+
|
|
7063
|
+
/** K8sPod primaryContainerName */
|
|
7064
|
+
primaryContainerName?: (string|null);
|
|
6986
7065
|
}
|
|
6987
7066
|
|
|
6988
7067
|
/** Represents a K8sPod. */
|
|
@@ -7003,6 +7082,9 @@ export namespace flyteidl {
|
|
|
7003
7082
|
/** K8sPod dataConfig. */
|
|
7004
7083
|
public dataConfig?: (flyteidl.core.IDataLoadingConfig|null);
|
|
7005
7084
|
|
|
7085
|
+
/** K8sPod primaryContainerName. */
|
|
7086
|
+
public primaryContainerName: string;
|
|
7087
|
+
|
|
7006
7088
|
/**
|
|
7007
7089
|
* Creates a new K8sPod instance using the specified properties.
|
|
7008
7090
|
* @param [properties] Properties to set
|
package/gen/pb-js/flyteidl.js
CHANGED
|
@@ -12590,6 +12590,7 @@
|
|
|
12590
12590
|
* @property {flyteidl.core.IResources|null} [resources] TaskNodeOverrides resources
|
|
12591
12591
|
* @property {flyteidl.core.IExtendedResources|null} [extendedResources] TaskNodeOverrides extendedResources
|
|
12592
12592
|
* @property {string|null} [containerImage] TaskNodeOverrides containerImage
|
|
12593
|
+
* @property {flyteidl.core.IK8sPod|null} [podTemplate] TaskNodeOverrides podTemplate
|
|
12593
12594
|
*/
|
|
12594
12595
|
|
|
12595
12596
|
/**
|
|
@@ -12631,6 +12632,14 @@
|
|
|
12631
12632
|
*/
|
|
12632
12633
|
TaskNodeOverrides.prototype.containerImage = "";
|
|
12633
12634
|
|
|
12635
|
+
/**
|
|
12636
|
+
* TaskNodeOverrides podTemplate.
|
|
12637
|
+
* @member {flyteidl.core.IK8sPod|null|undefined} podTemplate
|
|
12638
|
+
* @memberof flyteidl.core.TaskNodeOverrides
|
|
12639
|
+
* @instance
|
|
12640
|
+
*/
|
|
12641
|
+
TaskNodeOverrides.prototype.podTemplate = null;
|
|
12642
|
+
|
|
12634
12643
|
/**
|
|
12635
12644
|
* Creates a new TaskNodeOverrides instance using the specified properties.
|
|
12636
12645
|
* @function create
|
|
@@ -12661,6 +12670,8 @@
|
|
|
12661
12670
|
$root.flyteidl.core.ExtendedResources.encode(message.extendedResources, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
12662
12671
|
if (message.containerImage != null && message.hasOwnProperty("containerImage"))
|
|
12663
12672
|
writer.uint32(/* id 3, wireType 2 =*/26).string(message.containerImage);
|
|
12673
|
+
if (message.podTemplate != null && message.hasOwnProperty("podTemplate"))
|
|
12674
|
+
$root.flyteidl.core.K8sPod.encode(message.podTemplate, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
12664
12675
|
return writer;
|
|
12665
12676
|
};
|
|
12666
12677
|
|
|
@@ -12691,6 +12702,9 @@
|
|
|
12691
12702
|
case 3:
|
|
12692
12703
|
message.containerImage = reader.string();
|
|
12693
12704
|
break;
|
|
12705
|
+
case 4:
|
|
12706
|
+
message.podTemplate = $root.flyteidl.core.K8sPod.decode(reader, reader.uint32());
|
|
12707
|
+
break;
|
|
12694
12708
|
default:
|
|
12695
12709
|
reader.skipType(tag & 7);
|
|
12696
12710
|
break;
|
|
@@ -12723,6 +12737,11 @@
|
|
|
12723
12737
|
if (message.containerImage != null && message.hasOwnProperty("containerImage"))
|
|
12724
12738
|
if (!$util.isString(message.containerImage))
|
|
12725
12739
|
return "containerImage: string expected";
|
|
12740
|
+
if (message.podTemplate != null && message.hasOwnProperty("podTemplate")) {
|
|
12741
|
+
var error = $root.flyteidl.core.K8sPod.verify(message.podTemplate);
|
|
12742
|
+
if (error)
|
|
12743
|
+
return "podTemplate." + error;
|
|
12744
|
+
}
|
|
12726
12745
|
return null;
|
|
12727
12746
|
};
|
|
12728
12747
|
|
|
@@ -15117,6 +15136,150 @@
|
|
|
15117
15136
|
return GPUAccelerator;
|
|
15118
15137
|
})();
|
|
15119
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
|
+
|
|
15120
15283
|
core.ExtendedResources = (function() {
|
|
15121
15284
|
|
|
15122
15285
|
/**
|
|
@@ -15124,6 +15287,7 @@
|
|
|
15124
15287
|
* @memberof flyteidl.core
|
|
15125
15288
|
* @interface IExtendedResources
|
|
15126
15289
|
* @property {flyteidl.core.IGPUAccelerator|null} [gpuAccelerator] ExtendedResources gpuAccelerator
|
|
15290
|
+
* @property {flyteidl.core.ISharedMemory|null} [sharedMemory] ExtendedResources sharedMemory
|
|
15127
15291
|
*/
|
|
15128
15292
|
|
|
15129
15293
|
/**
|
|
@@ -15149,6 +15313,14 @@
|
|
|
15149
15313
|
*/
|
|
15150
15314
|
ExtendedResources.prototype.gpuAccelerator = null;
|
|
15151
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
|
+
|
|
15152
15324
|
/**
|
|
15153
15325
|
* Creates a new ExtendedResources instance using the specified properties.
|
|
15154
15326
|
* @function create
|
|
@@ -15175,6 +15347,8 @@
|
|
|
15175
15347
|
writer = $Writer.create();
|
|
15176
15348
|
if (message.gpuAccelerator != null && message.hasOwnProperty("gpuAccelerator"))
|
|
15177
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();
|
|
15178
15352
|
return writer;
|
|
15179
15353
|
};
|
|
15180
15354
|
|
|
@@ -15199,6 +15373,9 @@
|
|
|
15199
15373
|
case 1:
|
|
15200
15374
|
message.gpuAccelerator = $root.flyteidl.core.GPUAccelerator.decode(reader, reader.uint32());
|
|
15201
15375
|
break;
|
|
15376
|
+
case 2:
|
|
15377
|
+
message.sharedMemory = $root.flyteidl.core.SharedMemory.decode(reader, reader.uint32());
|
|
15378
|
+
break;
|
|
15202
15379
|
default:
|
|
15203
15380
|
reader.skipType(tag & 7);
|
|
15204
15381
|
break;
|
|
@@ -15223,6 +15400,11 @@
|
|
|
15223
15400
|
if (error)
|
|
15224
15401
|
return "gpuAccelerator." + error;
|
|
15225
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
|
+
}
|
|
15226
15408
|
return null;
|
|
15227
15409
|
};
|
|
15228
15410
|
|
|
@@ -16939,6 +17121,7 @@
|
|
|
16939
17121
|
* @property {flyteidl.core.IK8sObjectMetadata|null} [metadata] K8sPod metadata
|
|
16940
17122
|
* @property {google.protobuf.IStruct|null} [podSpec] K8sPod podSpec
|
|
16941
17123
|
* @property {flyteidl.core.IDataLoadingConfig|null} [dataConfig] K8sPod dataConfig
|
|
17124
|
+
* @property {string|null} [primaryContainerName] K8sPod primaryContainerName
|
|
16942
17125
|
*/
|
|
16943
17126
|
|
|
16944
17127
|
/**
|
|
@@ -16980,6 +17163,14 @@
|
|
|
16980
17163
|
*/
|
|
16981
17164
|
K8sPod.prototype.dataConfig = null;
|
|
16982
17165
|
|
|
17166
|
+
/**
|
|
17167
|
+
* K8sPod primaryContainerName.
|
|
17168
|
+
* @member {string} primaryContainerName
|
|
17169
|
+
* @memberof flyteidl.core.K8sPod
|
|
17170
|
+
* @instance
|
|
17171
|
+
*/
|
|
17172
|
+
K8sPod.prototype.primaryContainerName = "";
|
|
17173
|
+
|
|
16983
17174
|
/**
|
|
16984
17175
|
* Creates a new K8sPod instance using the specified properties.
|
|
16985
17176
|
* @function create
|
|
@@ -17010,6 +17201,8 @@
|
|
|
17010
17201
|
$root.google.protobuf.Struct.encode(message.podSpec, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
17011
17202
|
if (message.dataConfig != null && message.hasOwnProperty("dataConfig"))
|
|
17012
17203
|
$root.flyteidl.core.DataLoadingConfig.encode(message.dataConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
17204
|
+
if (message.primaryContainerName != null && message.hasOwnProperty("primaryContainerName"))
|
|
17205
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.primaryContainerName);
|
|
17013
17206
|
return writer;
|
|
17014
17207
|
};
|
|
17015
17208
|
|
|
@@ -17040,6 +17233,9 @@
|
|
|
17040
17233
|
case 3:
|
|
17041
17234
|
message.dataConfig = $root.flyteidl.core.DataLoadingConfig.decode(reader, reader.uint32());
|
|
17042
17235
|
break;
|
|
17236
|
+
case 4:
|
|
17237
|
+
message.primaryContainerName = reader.string();
|
|
17238
|
+
break;
|
|
17043
17239
|
default:
|
|
17044
17240
|
reader.skipType(tag & 7);
|
|
17045
17241
|
break;
|
|
@@ -17074,6 +17270,9 @@
|
|
|
17074
17270
|
if (error)
|
|
17075
17271
|
return "dataConfig." + error;
|
|
17076
17272
|
}
|
|
17273
|
+
if (message.primaryContainerName != null && message.hasOwnProperty("primaryContainerName"))
|
|
17274
|
+
if (!$util.isString(message.primaryContainerName))
|
|
17275
|
+
return "primaryContainerName: string expected";
|
|
17077
17276
|
return null;
|
|
17078
17277
|
};
|
|
17079
17278
|
|
package/package.json
CHANGED
|
@@ -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.
|
|
@@ -331,6 +344,10 @@ message K8sPod {
|
|
|
331
344
|
// to understand the default paths.
|
|
332
345
|
// Only K8s
|
|
333
346
|
DataLoadingConfig data_config = 3;
|
|
347
|
+
|
|
348
|
+
|
|
349
|
+
// Defines the primary container name when pod template override is executed.
|
|
350
|
+
string primary_container_name = 4;
|
|
334
351
|
}
|
|
335
352
|
|
|
336
353
|
// Metadata for building a kubernetes object when a task is executed.
|
|
@@ -339,6 +339,10 @@ message TaskNodeOverrides {
|
|
|
339
339
|
|
|
340
340
|
// Override for the image used by task pods.
|
|
341
341
|
string container_image = 3;
|
|
342
|
+
|
|
343
|
+
// Override for the pod template used by task pods
|
|
344
|
+
//+optional
|
|
345
|
+
K8sPod pod_template = 4;
|
|
342
346
|
}
|
|
343
347
|
|
|
344
348
|
// A structure that uniquely identifies a launch plan in the system.
|
|
@@ -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
|
}
|