@flyteorg/flyteidl 1.5.2 → 1.5.4
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 +70 -0
- package/gen/pb-js/flyteidl.js +177 -0
- package/package.json +1 -1
- package/protos/flyteidl/admin/common.proto +9 -0
- package/protos/flyteidl/admin/execution.proto +3 -0
- package/protos/flyteidl/admin/launch_plan.proto +3 -0
- package/protos/flyteidl/admin/matchable_resource.proto +3 -0
package/gen/pb-js/flyteidl.d.ts
CHANGED
|
@@ -8782,6 +8782,58 @@ export namespace flyteidl {
|
|
|
8782
8782
|
public static verify(message: { [k: string]: any }): (string|null);
|
|
8783
8783
|
}
|
|
8784
8784
|
|
|
8785
|
+
/** Properties of an Envs. */
|
|
8786
|
+
interface IEnvs {
|
|
8787
|
+
|
|
8788
|
+
/** Envs values */
|
|
8789
|
+
values?: (flyteidl.core.IKeyValuePair[]|null);
|
|
8790
|
+
}
|
|
8791
|
+
|
|
8792
|
+
/** Represents an Envs. */
|
|
8793
|
+
class Envs implements IEnvs {
|
|
8794
|
+
|
|
8795
|
+
/**
|
|
8796
|
+
* Constructs a new Envs.
|
|
8797
|
+
* @param [properties] Properties to set
|
|
8798
|
+
*/
|
|
8799
|
+
constructor(properties?: flyteidl.admin.IEnvs);
|
|
8800
|
+
|
|
8801
|
+
/** Envs values. */
|
|
8802
|
+
public values: flyteidl.core.IKeyValuePair[];
|
|
8803
|
+
|
|
8804
|
+
/**
|
|
8805
|
+
* Creates a new Envs instance using the specified properties.
|
|
8806
|
+
* @param [properties] Properties to set
|
|
8807
|
+
* @returns Envs instance
|
|
8808
|
+
*/
|
|
8809
|
+
public static create(properties?: flyteidl.admin.IEnvs): flyteidl.admin.Envs;
|
|
8810
|
+
|
|
8811
|
+
/**
|
|
8812
|
+
* Encodes the specified Envs message. Does not implicitly {@link flyteidl.admin.Envs.verify|verify} messages.
|
|
8813
|
+
* @param message Envs message or plain object to encode
|
|
8814
|
+
* @param [writer] Writer to encode to
|
|
8815
|
+
* @returns Writer
|
|
8816
|
+
*/
|
|
8817
|
+
public static encode(message: flyteidl.admin.IEnvs, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
8818
|
+
|
|
8819
|
+
/**
|
|
8820
|
+
* Decodes an Envs message from the specified reader or buffer.
|
|
8821
|
+
* @param reader Reader or buffer to decode from
|
|
8822
|
+
* @param [length] Message length if known beforehand
|
|
8823
|
+
* @returns Envs
|
|
8824
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
8825
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
8826
|
+
*/
|
|
8827
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Envs;
|
|
8828
|
+
|
|
8829
|
+
/**
|
|
8830
|
+
* Verifies an Envs message.
|
|
8831
|
+
* @param message Plain object to verify
|
|
8832
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
8833
|
+
*/
|
|
8834
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
8835
|
+
}
|
|
8836
|
+
|
|
8785
8837
|
/** Properties of an AuthRole. */
|
|
8786
8838
|
interface IAuthRole {
|
|
8787
8839
|
|
|
@@ -10716,6 +10768,9 @@ export namespace flyteidl {
|
|
|
10716
10768
|
|
|
10717
10769
|
/** ExecutionSpec overwriteCache */
|
|
10718
10770
|
overwriteCache?: (boolean|null);
|
|
10771
|
+
|
|
10772
|
+
/** ExecutionSpec envs */
|
|
10773
|
+
envs?: (flyteidl.admin.IEnvs|null);
|
|
10719
10774
|
}
|
|
10720
10775
|
|
|
10721
10776
|
/** Represents an ExecutionSpec. */
|
|
@@ -10772,6 +10827,9 @@ export namespace flyteidl {
|
|
|
10772
10827
|
/** ExecutionSpec overwriteCache. */
|
|
10773
10828
|
public overwriteCache: boolean;
|
|
10774
10829
|
|
|
10830
|
+
/** ExecutionSpec envs. */
|
|
10831
|
+
public envs?: (flyteidl.admin.IEnvs|null);
|
|
10832
|
+
|
|
10775
10833
|
/** ExecutionSpec notificationOverrides. */
|
|
10776
10834
|
public notificationOverrides?: ("notifications"|"disableAll");
|
|
10777
10835
|
|
|
@@ -11655,6 +11713,9 @@ export namespace flyteidl {
|
|
|
11655
11713
|
|
|
11656
11714
|
/** LaunchPlanSpec overwriteCache */
|
|
11657
11715
|
overwriteCache?: (boolean|null);
|
|
11716
|
+
|
|
11717
|
+
/** LaunchPlanSpec envs */
|
|
11718
|
+
envs?: (flyteidl.admin.IEnvs|null);
|
|
11658
11719
|
}
|
|
11659
11720
|
|
|
11660
11721
|
/** Represents a LaunchPlanSpec. */
|
|
@@ -11711,6 +11772,9 @@ export namespace flyteidl {
|
|
|
11711
11772
|
/** LaunchPlanSpec overwriteCache. */
|
|
11712
11773
|
public overwriteCache: boolean;
|
|
11713
11774
|
|
|
11775
|
+
/** LaunchPlanSpec envs. */
|
|
11776
|
+
public envs?: (flyteidl.admin.IEnvs|null);
|
|
11777
|
+
|
|
11714
11778
|
/**
|
|
11715
11779
|
* Creates a new LaunchPlanSpec instance using the specified properties.
|
|
11716
11780
|
* @param [properties] Properties to set
|
|
@@ -12756,6 +12820,9 @@ export namespace flyteidl {
|
|
|
12756
12820
|
|
|
12757
12821
|
/** WorkflowExecutionConfig overwriteCache */
|
|
12758
12822
|
overwriteCache?: (boolean|null);
|
|
12823
|
+
|
|
12824
|
+
/** WorkflowExecutionConfig envs */
|
|
12825
|
+
envs?: (flyteidl.admin.IEnvs|null);
|
|
12759
12826
|
}
|
|
12760
12827
|
|
|
12761
12828
|
/** Represents a WorkflowExecutionConfig. */
|
|
@@ -12788,6 +12855,9 @@ export namespace flyteidl {
|
|
|
12788
12855
|
/** WorkflowExecutionConfig overwriteCache. */
|
|
12789
12856
|
public overwriteCache: boolean;
|
|
12790
12857
|
|
|
12858
|
+
/** WorkflowExecutionConfig envs. */
|
|
12859
|
+
public envs?: (flyteidl.admin.IEnvs|null);
|
|
12860
|
+
|
|
12791
12861
|
/**
|
|
12792
12862
|
* Creates a new WorkflowExecutionConfig instance using the specified properties.
|
|
12793
12863
|
* @param [properties] Properties to set
|
package/gen/pb-js/flyteidl.js
CHANGED
|
@@ -21310,6 +21310,126 @@
|
|
|
21310
21310
|
return Annotations;
|
|
21311
21311
|
})();
|
|
21312
21312
|
|
|
21313
|
+
admin.Envs = (function() {
|
|
21314
|
+
|
|
21315
|
+
/**
|
|
21316
|
+
* Properties of an Envs.
|
|
21317
|
+
* @memberof flyteidl.admin
|
|
21318
|
+
* @interface IEnvs
|
|
21319
|
+
* @property {Array.<flyteidl.core.IKeyValuePair>|null} [values] Envs values
|
|
21320
|
+
*/
|
|
21321
|
+
|
|
21322
|
+
/**
|
|
21323
|
+
* Constructs a new Envs.
|
|
21324
|
+
* @memberof flyteidl.admin
|
|
21325
|
+
* @classdesc Represents an Envs.
|
|
21326
|
+
* @implements IEnvs
|
|
21327
|
+
* @constructor
|
|
21328
|
+
* @param {flyteidl.admin.IEnvs=} [properties] Properties to set
|
|
21329
|
+
*/
|
|
21330
|
+
function Envs(properties) {
|
|
21331
|
+
this.values = [];
|
|
21332
|
+
if (properties)
|
|
21333
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
21334
|
+
if (properties[keys[i]] != null)
|
|
21335
|
+
this[keys[i]] = properties[keys[i]];
|
|
21336
|
+
}
|
|
21337
|
+
|
|
21338
|
+
/**
|
|
21339
|
+
* Envs values.
|
|
21340
|
+
* @member {Array.<flyteidl.core.IKeyValuePair>} values
|
|
21341
|
+
* @memberof flyteidl.admin.Envs
|
|
21342
|
+
* @instance
|
|
21343
|
+
*/
|
|
21344
|
+
Envs.prototype.values = $util.emptyArray;
|
|
21345
|
+
|
|
21346
|
+
/**
|
|
21347
|
+
* Creates a new Envs instance using the specified properties.
|
|
21348
|
+
* @function create
|
|
21349
|
+
* @memberof flyteidl.admin.Envs
|
|
21350
|
+
* @static
|
|
21351
|
+
* @param {flyteidl.admin.IEnvs=} [properties] Properties to set
|
|
21352
|
+
* @returns {flyteidl.admin.Envs} Envs instance
|
|
21353
|
+
*/
|
|
21354
|
+
Envs.create = function create(properties) {
|
|
21355
|
+
return new Envs(properties);
|
|
21356
|
+
};
|
|
21357
|
+
|
|
21358
|
+
/**
|
|
21359
|
+
* Encodes the specified Envs message. Does not implicitly {@link flyteidl.admin.Envs.verify|verify} messages.
|
|
21360
|
+
* @function encode
|
|
21361
|
+
* @memberof flyteidl.admin.Envs
|
|
21362
|
+
* @static
|
|
21363
|
+
* @param {flyteidl.admin.IEnvs} message Envs message or plain object to encode
|
|
21364
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
21365
|
+
* @returns {$protobuf.Writer} Writer
|
|
21366
|
+
*/
|
|
21367
|
+
Envs.encode = function encode(message, writer) {
|
|
21368
|
+
if (!writer)
|
|
21369
|
+
writer = $Writer.create();
|
|
21370
|
+
if (message.values != null && message.values.length)
|
|
21371
|
+
for (var i = 0; i < message.values.length; ++i)
|
|
21372
|
+
$root.flyteidl.core.KeyValuePair.encode(message.values[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
21373
|
+
return writer;
|
|
21374
|
+
};
|
|
21375
|
+
|
|
21376
|
+
/**
|
|
21377
|
+
* Decodes an Envs message from the specified reader or buffer.
|
|
21378
|
+
* @function decode
|
|
21379
|
+
* @memberof flyteidl.admin.Envs
|
|
21380
|
+
* @static
|
|
21381
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
21382
|
+
* @param {number} [length] Message length if known beforehand
|
|
21383
|
+
* @returns {flyteidl.admin.Envs} Envs
|
|
21384
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
21385
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
21386
|
+
*/
|
|
21387
|
+
Envs.decode = function decode(reader, length) {
|
|
21388
|
+
if (!(reader instanceof $Reader))
|
|
21389
|
+
reader = $Reader.create(reader);
|
|
21390
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Envs();
|
|
21391
|
+
while (reader.pos < end) {
|
|
21392
|
+
var tag = reader.uint32();
|
|
21393
|
+
switch (tag >>> 3) {
|
|
21394
|
+
case 1:
|
|
21395
|
+
if (!(message.values && message.values.length))
|
|
21396
|
+
message.values = [];
|
|
21397
|
+
message.values.push($root.flyteidl.core.KeyValuePair.decode(reader, reader.uint32()));
|
|
21398
|
+
break;
|
|
21399
|
+
default:
|
|
21400
|
+
reader.skipType(tag & 7);
|
|
21401
|
+
break;
|
|
21402
|
+
}
|
|
21403
|
+
}
|
|
21404
|
+
return message;
|
|
21405
|
+
};
|
|
21406
|
+
|
|
21407
|
+
/**
|
|
21408
|
+
* Verifies an Envs message.
|
|
21409
|
+
* @function verify
|
|
21410
|
+
* @memberof flyteidl.admin.Envs
|
|
21411
|
+
* @static
|
|
21412
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
21413
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
21414
|
+
*/
|
|
21415
|
+
Envs.verify = function verify(message) {
|
|
21416
|
+
if (typeof message !== "object" || message === null)
|
|
21417
|
+
return "object expected";
|
|
21418
|
+
if (message.values != null && message.hasOwnProperty("values")) {
|
|
21419
|
+
if (!Array.isArray(message.values))
|
|
21420
|
+
return "values: array expected";
|
|
21421
|
+
for (var i = 0; i < message.values.length; ++i) {
|
|
21422
|
+
var error = $root.flyteidl.core.KeyValuePair.verify(message.values[i]);
|
|
21423
|
+
if (error)
|
|
21424
|
+
return "values." + error;
|
|
21425
|
+
}
|
|
21426
|
+
}
|
|
21427
|
+
return null;
|
|
21428
|
+
};
|
|
21429
|
+
|
|
21430
|
+
return Envs;
|
|
21431
|
+
})();
|
|
21432
|
+
|
|
21313
21433
|
admin.AuthRole = (function() {
|
|
21314
21434
|
|
|
21315
21435
|
/**
|
|
@@ -25764,6 +25884,7 @@
|
|
|
25764
25884
|
* @property {flyteidl.admin.IClusterAssignment|null} [clusterAssignment] ExecutionSpec clusterAssignment
|
|
25765
25885
|
* @property {google.protobuf.IBoolValue|null} [interruptible] ExecutionSpec interruptible
|
|
25766
25886
|
* @property {boolean|null} [overwriteCache] ExecutionSpec overwriteCache
|
|
25887
|
+
* @property {flyteidl.admin.IEnvs|null} [envs] ExecutionSpec envs
|
|
25767
25888
|
*/
|
|
25768
25889
|
|
|
25769
25890
|
/**
|
|
@@ -25901,6 +26022,14 @@
|
|
|
25901
26022
|
*/
|
|
25902
26023
|
ExecutionSpec.prototype.overwriteCache = false;
|
|
25903
26024
|
|
|
26025
|
+
/**
|
|
26026
|
+
* ExecutionSpec envs.
|
|
26027
|
+
* @member {flyteidl.admin.IEnvs|null|undefined} envs
|
|
26028
|
+
* @memberof flyteidl.admin.ExecutionSpec
|
|
26029
|
+
* @instance
|
|
26030
|
+
*/
|
|
26031
|
+
ExecutionSpec.prototype.envs = null;
|
|
26032
|
+
|
|
25904
26033
|
// OneOf field names bound to virtual getters and setters
|
|
25905
26034
|
var $oneOfFields;
|
|
25906
26035
|
|
|
@@ -25969,6 +26098,8 @@
|
|
|
25969
26098
|
$root.google.protobuf.BoolValue.encode(message.interruptible, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim();
|
|
25970
26099
|
if (message.overwriteCache != null && message.hasOwnProperty("overwriteCache"))
|
|
25971
26100
|
writer.uint32(/* id 22, wireType 0 =*/176).bool(message.overwriteCache);
|
|
26101
|
+
if (message.envs != null && message.hasOwnProperty("envs"))
|
|
26102
|
+
$root.flyteidl.admin.Envs.encode(message.envs, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim();
|
|
25972
26103
|
return writer;
|
|
25973
26104
|
};
|
|
25974
26105
|
|
|
@@ -26035,6 +26166,9 @@
|
|
|
26035
26166
|
case 22:
|
|
26036
26167
|
message.overwriteCache = reader.bool();
|
|
26037
26168
|
break;
|
|
26169
|
+
case 23:
|
|
26170
|
+
message.envs = $root.flyteidl.admin.Envs.decode(reader, reader.uint32());
|
|
26171
|
+
break;
|
|
26038
26172
|
default:
|
|
26039
26173
|
reader.skipType(tag & 7);
|
|
26040
26174
|
break;
|
|
@@ -26131,6 +26265,11 @@
|
|
|
26131
26265
|
if (message.overwriteCache != null && message.hasOwnProperty("overwriteCache"))
|
|
26132
26266
|
if (typeof message.overwriteCache !== "boolean")
|
|
26133
26267
|
return "overwriteCache: boolean expected";
|
|
26268
|
+
if (message.envs != null && message.hasOwnProperty("envs")) {
|
|
26269
|
+
var error = $root.flyteidl.admin.Envs.verify(message.envs);
|
|
26270
|
+
if (error)
|
|
26271
|
+
return "envs." + error;
|
|
26272
|
+
}
|
|
26134
26273
|
return null;
|
|
26135
26274
|
};
|
|
26136
26275
|
|
|
@@ -27946,6 +28085,7 @@
|
|
|
27946
28085
|
* @property {number|null} [maxParallelism] LaunchPlanSpec maxParallelism
|
|
27947
28086
|
* @property {google.protobuf.IBoolValue|null} [interruptible] LaunchPlanSpec interruptible
|
|
27948
28087
|
* @property {boolean|null} [overwriteCache] LaunchPlanSpec overwriteCache
|
|
28088
|
+
* @property {flyteidl.admin.IEnvs|null} [envs] LaunchPlanSpec envs
|
|
27949
28089
|
*/
|
|
27950
28090
|
|
|
27951
28091
|
/**
|
|
@@ -28083,6 +28223,14 @@
|
|
|
28083
28223
|
*/
|
|
28084
28224
|
LaunchPlanSpec.prototype.overwriteCache = false;
|
|
28085
28225
|
|
|
28226
|
+
/**
|
|
28227
|
+
* LaunchPlanSpec envs.
|
|
28228
|
+
* @member {flyteidl.admin.IEnvs|null|undefined} envs
|
|
28229
|
+
* @memberof flyteidl.admin.LaunchPlanSpec
|
|
28230
|
+
* @instance
|
|
28231
|
+
*/
|
|
28232
|
+
LaunchPlanSpec.prototype.envs = null;
|
|
28233
|
+
|
|
28086
28234
|
/**
|
|
28087
28235
|
* Creates a new LaunchPlanSpec instance using the specified properties.
|
|
28088
28236
|
* @function create
|
|
@@ -28137,6 +28285,8 @@
|
|
|
28137
28285
|
$root.google.protobuf.BoolValue.encode(message.interruptible, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim();
|
|
28138
28286
|
if (message.overwriteCache != null && message.hasOwnProperty("overwriteCache"))
|
|
28139
28287
|
writer.uint32(/* id 20, wireType 0 =*/160).bool(message.overwriteCache);
|
|
28288
|
+
if (message.envs != null && message.hasOwnProperty("envs"))
|
|
28289
|
+
$root.flyteidl.admin.Envs.encode(message.envs, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim();
|
|
28140
28290
|
return writer;
|
|
28141
28291
|
};
|
|
28142
28292
|
|
|
@@ -28203,6 +28353,9 @@
|
|
|
28203
28353
|
case 20:
|
|
28204
28354
|
message.overwriteCache = reader.bool();
|
|
28205
28355
|
break;
|
|
28356
|
+
case 21:
|
|
28357
|
+
message.envs = $root.flyteidl.admin.Envs.decode(reader, reader.uint32());
|
|
28358
|
+
break;
|
|
28206
28359
|
default:
|
|
28207
28360
|
reader.skipType(tag & 7);
|
|
28208
28361
|
break;
|
|
@@ -28291,6 +28444,11 @@
|
|
|
28291
28444
|
if (message.overwriteCache != null && message.hasOwnProperty("overwriteCache"))
|
|
28292
28445
|
if (typeof message.overwriteCache !== "boolean")
|
|
28293
28446
|
return "overwriteCache: boolean expected";
|
|
28447
|
+
if (message.envs != null && message.hasOwnProperty("envs")) {
|
|
28448
|
+
var error = $root.flyteidl.admin.Envs.verify(message.envs);
|
|
28449
|
+
if (error)
|
|
28450
|
+
return "envs." + error;
|
|
28451
|
+
}
|
|
28294
28452
|
return null;
|
|
28295
28453
|
};
|
|
28296
28454
|
|
|
@@ -30603,6 +30761,7 @@
|
|
|
30603
30761
|
* @property {flyteidl.admin.IAnnotations|null} [annotations] WorkflowExecutionConfig annotations
|
|
30604
30762
|
* @property {google.protobuf.IBoolValue|null} [interruptible] WorkflowExecutionConfig interruptible
|
|
30605
30763
|
* @property {boolean|null} [overwriteCache] WorkflowExecutionConfig overwriteCache
|
|
30764
|
+
* @property {flyteidl.admin.IEnvs|null} [envs] WorkflowExecutionConfig envs
|
|
30606
30765
|
*/
|
|
30607
30766
|
|
|
30608
30767
|
/**
|
|
@@ -30676,6 +30835,14 @@
|
|
|
30676
30835
|
*/
|
|
30677
30836
|
WorkflowExecutionConfig.prototype.overwriteCache = false;
|
|
30678
30837
|
|
|
30838
|
+
/**
|
|
30839
|
+
* WorkflowExecutionConfig envs.
|
|
30840
|
+
* @member {flyteidl.admin.IEnvs|null|undefined} envs
|
|
30841
|
+
* @memberof flyteidl.admin.WorkflowExecutionConfig
|
|
30842
|
+
* @instance
|
|
30843
|
+
*/
|
|
30844
|
+
WorkflowExecutionConfig.prototype.envs = null;
|
|
30845
|
+
|
|
30679
30846
|
/**
|
|
30680
30847
|
* Creates a new WorkflowExecutionConfig instance using the specified properties.
|
|
30681
30848
|
* @function create
|
|
@@ -30714,6 +30881,8 @@
|
|
|
30714
30881
|
$root.google.protobuf.BoolValue.encode(message.interruptible, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
30715
30882
|
if (message.overwriteCache != null && message.hasOwnProperty("overwriteCache"))
|
|
30716
30883
|
writer.uint32(/* id 7, wireType 0 =*/56).bool(message.overwriteCache);
|
|
30884
|
+
if (message.envs != null && message.hasOwnProperty("envs"))
|
|
30885
|
+
$root.flyteidl.admin.Envs.encode(message.envs, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
|
|
30717
30886
|
return writer;
|
|
30718
30887
|
};
|
|
30719
30888
|
|
|
@@ -30756,6 +30925,9 @@
|
|
|
30756
30925
|
case 7:
|
|
30757
30926
|
message.overwriteCache = reader.bool();
|
|
30758
30927
|
break;
|
|
30928
|
+
case 8:
|
|
30929
|
+
message.envs = $root.flyteidl.admin.Envs.decode(reader, reader.uint32());
|
|
30930
|
+
break;
|
|
30759
30931
|
default:
|
|
30760
30932
|
reader.skipType(tag & 7);
|
|
30761
30933
|
break;
|
|
@@ -30806,6 +30978,11 @@
|
|
|
30806
30978
|
if (message.overwriteCache != null && message.hasOwnProperty("overwriteCache"))
|
|
30807
30979
|
if (typeof message.overwriteCache !== "boolean")
|
|
30808
30980
|
return "overwriteCache: boolean expected";
|
|
30981
|
+
if (message.envs != null && message.hasOwnProperty("envs")) {
|
|
30982
|
+
var error = $root.flyteidl.admin.Envs.verify(message.envs);
|
|
30983
|
+
if (error)
|
|
30984
|
+
return "envs." + error;
|
|
30985
|
+
}
|
|
30809
30986
|
return null;
|
|
30810
30987
|
};
|
|
30811
30988
|
|
package/package.json
CHANGED
|
@@ -5,6 +5,7 @@ option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin";
|
|
|
5
5
|
|
|
6
6
|
import "flyteidl/core/execution.proto";
|
|
7
7
|
import "flyteidl/core/identifier.proto";
|
|
8
|
+
import "flyteidl/core/literals.proto";
|
|
8
9
|
import "google/protobuf/timestamp.proto";
|
|
9
10
|
|
|
10
11
|
// Encapsulation of fields that identifies a Flyte resource.
|
|
@@ -280,6 +281,14 @@ message Annotations {
|
|
|
280
281
|
map<string, string> values = 1;
|
|
281
282
|
}
|
|
282
283
|
|
|
284
|
+
// Environment variable values to be applied to an execution resource.
|
|
285
|
+
// In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined
|
|
286
|
+
// to specify how to merge environment variables defined at registration and execution time.
|
|
287
|
+
message Envs {
|
|
288
|
+
// Map of custom environment variables to be applied to the execution resource.
|
|
289
|
+
repeated flyteidl.core.KeyValuePair values = 1;
|
|
290
|
+
}
|
|
291
|
+
|
|
283
292
|
// Defines permissions associated with executions created by this launch plan spec.
|
|
284
293
|
// Use either of these roles when they have permissions required by your workflow execution.
|
|
285
294
|
// Deprecated.
|
|
@@ -310,6 +310,9 @@ message ExecutionSpec {
|
|
|
310
310
|
// If enabled, all calculations are performed even if cached results would be available, overwriting the stored
|
|
311
311
|
// data once execution finishes successfully.
|
|
312
312
|
bool overwrite_cache = 22;
|
|
313
|
+
|
|
314
|
+
// Environment variables to be set for the execution.
|
|
315
|
+
Envs envs = 23;
|
|
313
316
|
}
|
|
314
317
|
|
|
315
318
|
// Request to terminate an in-progress execution. This action is irreversible.
|
|
@@ -130,6 +130,9 @@ message LaunchPlanSpec {
|
|
|
130
130
|
// If enabled, all calculations are performed even if cached results would be available, overwriting the stored
|
|
131
131
|
// data once execution finishes successfully.
|
|
132
132
|
bool overwrite_cache = 20;
|
|
133
|
+
|
|
134
|
+
// Environment variables to be set for the execution.
|
|
135
|
+
Envs envs = 21;
|
|
133
136
|
}
|
|
134
137
|
|
|
135
138
|
// Values computed by the flyte platform after launch plan registration.
|
|
@@ -128,6 +128,9 @@ message WorkflowExecutionConfig {
|
|
|
128
128
|
// If enabled, all calculations are performed even if cached results would be available, overwriting the stored
|
|
129
129
|
// data once execution finishes successfully.
|
|
130
130
|
bool overwrite_cache = 7;
|
|
131
|
+
|
|
132
|
+
// Environment variables to be set for the execution.
|
|
133
|
+
Envs envs = 8;
|
|
131
134
|
}
|
|
132
135
|
|
|
133
136
|
// Generic container for encapsulating all types of the above attributes messages.
|