@flyteorg/flyteidl 1.14.1 → 1.14.3

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.
@@ -4707,6 +4707,9 @@ export namespace flyteidl {
4707
4707
 
4708
4708
  /** NodeMetadata cacheSerializable */
4709
4709
  cacheSerializable?: (boolean|null);
4710
+
4711
+ /** NodeMetadata config */
4712
+ config?: ({ [k: string]: string }|null);
4710
4713
  }
4711
4714
 
4712
4715
  /** Represents a NodeMetadata. */
@@ -4739,6 +4742,9 @@ export namespace flyteidl {
4739
4742
  /** NodeMetadata cacheSerializable. */
4740
4743
  public cacheSerializable: boolean;
4741
4744
 
4745
+ /** NodeMetadata config. */
4746
+ public config: { [k: string]: string };
4747
+
4742
4748
  /** NodeMetadata interruptibleValue. */
4743
4749
  public interruptibleValue?: "interruptible";
4744
4750
 
@@ -5175,6 +5181,9 @@ export namespace flyteidl {
5175
5181
 
5176
5182
  /** TaskNodeOverrides containerImage */
5177
5183
  containerImage?: (string|null);
5184
+
5185
+ /** TaskNodeOverrides podTemplate */
5186
+ podTemplate?: (flyteidl.core.IK8sPod|null);
5178
5187
  }
5179
5188
 
5180
5189
  /** Represents a TaskNodeOverrides. */
@@ -5195,6 +5204,9 @@ export namespace flyteidl {
5195
5204
  /** TaskNodeOverrides containerImage. */
5196
5205
  public containerImage: string;
5197
5206
 
5207
+ /** TaskNodeOverrides podTemplate. */
5208
+ public podTemplate?: (flyteidl.core.IK8sPod|null);
5209
+
5198
5210
  /**
5199
5211
  * Creates a new TaskNodeOverrides instance using the specified properties.
5200
5212
  * @param [properties] Properties to set
@@ -6414,9 +6426,6 @@ export namespace flyteidl {
6414
6426
  /** TaskMetadata cacheSerializable */
6415
6427
  cacheSerializable?: (boolean|null);
6416
6428
 
6417
- /** TaskMetadata generatesDeck */
6418
- generatesDeck?: (boolean|null);
6419
-
6420
6429
  /** TaskMetadata tags */
6421
6430
  tags?: ({ [k: string]: string }|null);
6422
6431
 
@@ -6428,6 +6437,9 @@ export namespace flyteidl {
6428
6437
 
6429
6438
  /** TaskMetadata isEager */
6430
6439
  isEager?: (boolean|null);
6440
+
6441
+ /** TaskMetadata generatesDeck */
6442
+ generatesDeck?: (google.protobuf.IBoolValue|null);
6431
6443
  }
6432
6444
 
6433
6445
  /** Represents a TaskMetadata. */
@@ -6463,9 +6475,6 @@ export namespace flyteidl {
6463
6475
  /** TaskMetadata cacheSerializable. */
6464
6476
  public cacheSerializable: boolean;
6465
6477
 
6466
- /** TaskMetadata generatesDeck. */
6467
- public generatesDeck: boolean;
6468
-
6469
6478
  /** TaskMetadata tags. */
6470
6479
  public tags: { [k: string]: string };
6471
6480
 
@@ -6478,6 +6487,9 @@ export namespace flyteidl {
6478
6487
  /** TaskMetadata isEager. */
6479
6488
  public isEager: boolean;
6480
6489
 
6490
+ /** TaskMetadata generatesDeck. */
6491
+ public generatesDeck?: (google.protobuf.IBoolValue|null);
6492
+
6481
6493
  /** TaskMetadata interruptibleValue. */
6482
6494
  public interruptibleValue?: "interruptible";
6483
6495
 
@@ -6640,6 +6652,9 @@ export namespace flyteidl {
6640
6652
 
6641
6653
  /** ContainerPort containerPort */
6642
6654
  containerPort?: (number|null);
6655
+
6656
+ /** ContainerPort name */
6657
+ name?: (string|null);
6643
6658
  }
6644
6659
 
6645
6660
  /** Represents a ContainerPort. */
@@ -6654,6 +6669,9 @@ export namespace flyteidl {
6654
6669
  /** ContainerPort containerPort. */
6655
6670
  public containerPort: number;
6656
6671
 
6672
+ /** ContainerPort name. */
6673
+ public name: string;
6674
+
6657
6675
  /**
6658
6676
  * Creates a new ContainerPort instance using the specified properties.
6659
6677
  * @param [properties] Properties to set
@@ -6971,6 +6989,9 @@ export namespace flyteidl {
6971
6989
 
6972
6990
  /** K8sPod dataConfig */
6973
6991
  dataConfig?: (flyteidl.core.IDataLoadingConfig|null);
6992
+
6993
+ /** K8sPod primaryContainerName */
6994
+ primaryContainerName?: (string|null);
6974
6995
  }
6975
6996
 
6976
6997
  /** Represents a K8sPod. */
@@ -6991,6 +7012,9 @@ export namespace flyteidl {
6991
7012
  /** K8sPod dataConfig. */
6992
7013
  public dataConfig?: (flyteidl.core.IDataLoadingConfig|null);
6993
7014
 
7015
+ /** K8sPod primaryContainerName. */
7016
+ public primaryContainerName: string;
7017
+
6994
7018
  /**
6995
7019
  * Creates a new K8sPod instance using the specified properties.
6996
7020
  * @param [properties] Properties to set
@@ -7165,6 +7189,9 @@ export namespace flyteidl {
7165
7189
 
7166
7190
  /** Secret mountRequirement */
7167
7191
  mountRequirement?: (flyteidl.core.Secret.MountType|null);
7192
+
7193
+ /** Secret envVar */
7194
+ envVar?: (string|null);
7168
7195
  }
7169
7196
 
7170
7197
  /** Represents a Secret. */
@@ -7188,6 +7215,9 @@ export namespace flyteidl {
7188
7215
  /** Secret mountRequirement. */
7189
7216
  public mountRequirement: flyteidl.core.Secret.MountType;
7190
7217
 
7218
+ /** Secret envVar. */
7219
+ public envVar: string;
7220
+
7191
7221
  /**
7192
7222
  * Creates a new Secret instance using the specified properties.
7193
7223
  * @param [properties] Properties to set
@@ -9238,6 +9268,12 @@ export namespace flyteidl {
9238
9268
 
9239
9269
  /** ExternalResourceInfo logs */
9240
9270
  logs?: (flyteidl.core.ITaskLog[]|null);
9271
+
9272
+ /** ExternalResourceInfo workflowNodeMetadata */
9273
+ workflowNodeMetadata?: (flyteidl.event.IWorkflowNodeMetadata|null);
9274
+
9275
+ /** ExternalResourceInfo customInfo */
9276
+ customInfo?: (google.protobuf.IStruct|null);
9241
9277
  }
9242
9278
 
9243
9279
  /** Represents an ExternalResourceInfo. */
@@ -9267,6 +9303,15 @@ export namespace flyteidl {
9267
9303
  /** ExternalResourceInfo logs. */
9268
9304
  public logs: flyteidl.core.ITaskLog[];
9269
9305
 
9306
+ /** ExternalResourceInfo workflowNodeMetadata. */
9307
+ public workflowNodeMetadata?: (flyteidl.event.IWorkflowNodeMetadata|null);
9308
+
9309
+ /** ExternalResourceInfo customInfo. */
9310
+ public customInfo?: (google.protobuf.IStruct|null);
9311
+
9312
+ /** ExternalResourceInfo targetMetadata. */
9313
+ public targetMetadata?: "workflowNodeMetadata";
9314
+
9270
9315
  /**
9271
9316
  * Creates a new ExternalResourceInfo instance using the specified properties.
9272
9317
  * @param [properties] Properties to set
@@ -16125,6 +16170,9 @@ export namespace flyteidl {
16125
16170
 
16126
16171
  /** LaunchPlanSpec executionEnvAssignments */
16127
16172
  executionEnvAssignments?: (flyteidl.core.IExecutionEnvAssignment[]|null);
16173
+
16174
+ /** LaunchPlanSpec clusterAssignment */
16175
+ clusterAssignment?: (flyteidl.admin.IClusterAssignment|null);
16128
16176
  }
16129
16177
 
16130
16178
  /** Represents a LaunchPlanSpec. */
@@ -16187,6 +16235,9 @@ export namespace flyteidl {
16187
16235
  /** LaunchPlanSpec executionEnvAssignments. */
16188
16236
  public executionEnvAssignments: flyteidl.core.IExecutionEnvAssignment[];
16189
16237
 
16238
+ /** LaunchPlanSpec clusterAssignment. */
16239
+ public clusterAssignment?: (flyteidl.admin.IClusterAssignment|null);
16240
+
16190
16241
  /**
16191
16242
  * Creates a new LaunchPlanSpec instance using the specified properties.
16192
16243
  * @param [properties] Properties to set
@@ -11296,6 +11296,7 @@
11296
11296
  * @property {boolean|null} [cacheable] NodeMetadata cacheable
11297
11297
  * @property {string|null} [cacheVersion] NodeMetadata cacheVersion
11298
11298
  * @property {boolean|null} [cacheSerializable] NodeMetadata cacheSerializable
11299
+ * @property {Object.<string,string>|null} [config] NodeMetadata config
11299
11300
  */
11300
11301
 
11301
11302
  /**
@@ -11307,6 +11308,7 @@
11307
11308
  * @param {flyteidl.core.INodeMetadata=} [properties] Properties to set
11308
11309
  */
11309
11310
  function NodeMetadata(properties) {
11311
+ this.config = {};
11310
11312
  if (properties)
11311
11313
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
11312
11314
  if (properties[keys[i]] != null)
@@ -11369,6 +11371,14 @@
11369
11371
  */
11370
11372
  NodeMetadata.prototype.cacheSerializable = false;
11371
11373
 
11374
+ /**
11375
+ * NodeMetadata config.
11376
+ * @member {Object.<string,string>} config
11377
+ * @memberof flyteidl.core.NodeMetadata
11378
+ * @instance
11379
+ */
11380
+ NodeMetadata.prototype.config = $util.emptyObject;
11381
+
11372
11382
  // OneOf field names bound to virtual getters and setters
11373
11383
  var $oneOfFields;
11374
11384
 
@@ -11454,6 +11464,9 @@
11454
11464
  writer.uint32(/* id 8, wireType 2 =*/66).string(message.cacheVersion);
11455
11465
  if (message.cacheSerializable != null && message.hasOwnProperty("cacheSerializable"))
11456
11466
  writer.uint32(/* id 9, wireType 0 =*/72).bool(message.cacheSerializable);
11467
+ if (message.config != null && message.hasOwnProperty("config"))
11468
+ for (var keys = Object.keys(message.config), i = 0; i < keys.length; ++i)
11469
+ writer.uint32(/* id 10, wireType 2 =*/82).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.config[keys[i]]).ldelim();
11457
11470
  return writer;
11458
11471
  };
11459
11472
 
@@ -11471,7 +11484,7 @@
11471
11484
  NodeMetadata.decode = function decode(reader, length) {
11472
11485
  if (!(reader instanceof $Reader))
11473
11486
  reader = $Reader.create(reader);
11474
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.NodeMetadata();
11487
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.NodeMetadata(), key;
11475
11488
  while (reader.pos < end) {
11476
11489
  var tag = reader.uint32();
11477
11490
  switch (tag >>> 3) {
@@ -11496,6 +11509,14 @@
11496
11509
  case 9:
11497
11510
  message.cacheSerializable = reader.bool();
11498
11511
  break;
11512
+ case 10:
11513
+ reader.skip().pos++;
11514
+ if (message.config === $util.emptyObject)
11515
+ message.config = {};
11516
+ key = reader.string();
11517
+ reader.pos++;
11518
+ message.config[key] = reader.string();
11519
+ break;
11499
11520
  default:
11500
11521
  reader.skipType(tag & 7);
11501
11522
  break;
@@ -11549,6 +11570,14 @@
11549
11570
  if (typeof message.cacheSerializable !== "boolean")
11550
11571
  return "cacheSerializable: boolean expected";
11551
11572
  }
11573
+ if (message.config != null && message.hasOwnProperty("config")) {
11574
+ if (!$util.isObject(message.config))
11575
+ return "config: object expected";
11576
+ var key = Object.keys(message.config);
11577
+ for (var i = 0; i < key.length; ++i)
11578
+ if (!$util.isString(message.config[key[i]]))
11579
+ return "config: string{k:string} expected";
11580
+ }
11552
11581
  return null;
11553
11582
  };
11554
11583
 
@@ -12561,6 +12590,7 @@
12561
12590
  * @property {flyteidl.core.IResources|null} [resources] TaskNodeOverrides resources
12562
12591
  * @property {flyteidl.core.IExtendedResources|null} [extendedResources] TaskNodeOverrides extendedResources
12563
12592
  * @property {string|null} [containerImage] TaskNodeOverrides containerImage
12593
+ * @property {flyteidl.core.IK8sPod|null} [podTemplate] TaskNodeOverrides podTemplate
12564
12594
  */
12565
12595
 
12566
12596
  /**
@@ -12602,6 +12632,14 @@
12602
12632
  */
12603
12633
  TaskNodeOverrides.prototype.containerImage = "";
12604
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
+
12605
12643
  /**
12606
12644
  * Creates a new TaskNodeOverrides instance using the specified properties.
12607
12645
  * @function create
@@ -12632,6 +12670,8 @@
12632
12670
  $root.flyteidl.core.ExtendedResources.encode(message.extendedResources, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
12633
12671
  if (message.containerImage != null && message.hasOwnProperty("containerImage"))
12634
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();
12635
12675
  return writer;
12636
12676
  };
12637
12677
 
@@ -12662,6 +12702,9 @@
12662
12702
  case 3:
12663
12703
  message.containerImage = reader.string();
12664
12704
  break;
12705
+ case 4:
12706
+ message.podTemplate = $root.flyteidl.core.K8sPod.decode(reader, reader.uint32());
12707
+ break;
12665
12708
  default:
12666
12709
  reader.skipType(tag & 7);
12667
12710
  break;
@@ -12694,6 +12737,11 @@
12694
12737
  if (message.containerImage != null && message.hasOwnProperty("containerImage"))
12695
12738
  if (!$util.isString(message.containerImage))
12696
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
+ }
12697
12745
  return null;
12698
12746
  };
12699
12747
 
@@ -15377,11 +15425,11 @@
15377
15425
  * @property {string|null} [deprecatedErrorMessage] TaskMetadata deprecatedErrorMessage
15378
15426
  * @property {boolean|null} [interruptible] TaskMetadata interruptible
15379
15427
  * @property {boolean|null} [cacheSerializable] TaskMetadata cacheSerializable
15380
- * @property {boolean|null} [generatesDeck] TaskMetadata generatesDeck
15381
15428
  * @property {Object.<string,string>|null} [tags] TaskMetadata tags
15382
15429
  * @property {string|null} [podTemplateName] TaskMetadata podTemplateName
15383
15430
  * @property {Array.<string>|null} [cacheIgnoreInputVars] TaskMetadata cacheIgnoreInputVars
15384
15431
  * @property {boolean|null} [isEager] TaskMetadata isEager
15432
+ * @property {google.protobuf.IBoolValue|null} [generatesDeck] TaskMetadata generatesDeck
15385
15433
  */
15386
15434
 
15387
15435
  /**
@@ -15465,14 +15513,6 @@
15465
15513
  */
15466
15514
  TaskMetadata.prototype.cacheSerializable = false;
15467
15515
 
15468
- /**
15469
- * TaskMetadata generatesDeck.
15470
- * @member {boolean} generatesDeck
15471
- * @memberof flyteidl.core.TaskMetadata
15472
- * @instance
15473
- */
15474
- TaskMetadata.prototype.generatesDeck = false;
15475
-
15476
15516
  /**
15477
15517
  * TaskMetadata tags.
15478
15518
  * @member {Object.<string,string>} tags
@@ -15505,6 +15545,14 @@
15505
15545
  */
15506
15546
  TaskMetadata.prototype.isEager = false;
15507
15547
 
15548
+ /**
15549
+ * TaskMetadata generatesDeck.
15550
+ * @member {google.protobuf.IBoolValue|null|undefined} generatesDeck
15551
+ * @memberof flyteidl.core.TaskMetadata
15552
+ * @instance
15553
+ */
15554
+ TaskMetadata.prototype.generatesDeck = null;
15555
+
15508
15556
  // OneOf field names bound to virtual getters and setters
15509
15557
  var $oneOfFields;
15510
15558
 
@@ -15559,8 +15607,6 @@
15559
15607
  writer.uint32(/* id 8, wireType 0 =*/64).bool(message.interruptible);
15560
15608
  if (message.cacheSerializable != null && message.hasOwnProperty("cacheSerializable"))
15561
15609
  writer.uint32(/* id 9, wireType 0 =*/72).bool(message.cacheSerializable);
15562
- if (message.generatesDeck != null && message.hasOwnProperty("generatesDeck"))
15563
- writer.uint32(/* id 10, wireType 0 =*/80).bool(message.generatesDeck);
15564
15610
  if (message.tags != null && message.hasOwnProperty("tags"))
15565
15611
  for (var keys = Object.keys(message.tags), i = 0; i < keys.length; ++i)
15566
15612
  writer.uint32(/* id 11, wireType 2 =*/90).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.tags[keys[i]]).ldelim();
@@ -15571,6 +15617,8 @@
15571
15617
  writer.uint32(/* id 13, wireType 2 =*/106).string(message.cacheIgnoreInputVars[i]);
15572
15618
  if (message.isEager != null && message.hasOwnProperty("isEager"))
15573
15619
  writer.uint32(/* id 14, wireType 0 =*/112).bool(message.isEager);
15620
+ if (message.generatesDeck != null && message.hasOwnProperty("generatesDeck"))
15621
+ $root.google.protobuf.BoolValue.encode(message.generatesDeck, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim();
15574
15622
  return writer;
15575
15623
  };
15576
15624
 
@@ -15616,9 +15664,6 @@
15616
15664
  case 9:
15617
15665
  message.cacheSerializable = reader.bool();
15618
15666
  break;
15619
- case 10:
15620
- message.generatesDeck = reader.bool();
15621
- break;
15622
15667
  case 11:
15623
15668
  reader.skip().pos++;
15624
15669
  if (message.tags === $util.emptyObject)
@@ -15638,6 +15683,9 @@
15638
15683
  case 14:
15639
15684
  message.isEager = reader.bool();
15640
15685
  break;
15686
+ case 15:
15687
+ message.generatesDeck = $root.google.protobuf.BoolValue.decode(reader, reader.uint32());
15688
+ break;
15641
15689
  default:
15642
15690
  reader.skipType(tag & 7);
15643
15691
  break;
@@ -15690,9 +15738,6 @@
15690
15738
  if (message.cacheSerializable != null && message.hasOwnProperty("cacheSerializable"))
15691
15739
  if (typeof message.cacheSerializable !== "boolean")
15692
15740
  return "cacheSerializable: boolean expected";
15693
- if (message.generatesDeck != null && message.hasOwnProperty("generatesDeck"))
15694
- if (typeof message.generatesDeck !== "boolean")
15695
- return "generatesDeck: boolean expected";
15696
15741
  if (message.tags != null && message.hasOwnProperty("tags")) {
15697
15742
  if (!$util.isObject(message.tags))
15698
15743
  return "tags: object expected";
@@ -15714,6 +15759,11 @@
15714
15759
  if (message.isEager != null && message.hasOwnProperty("isEager"))
15715
15760
  if (typeof message.isEager !== "boolean")
15716
15761
  return "isEager: boolean expected";
15762
+ if (message.generatesDeck != null && message.hasOwnProperty("generatesDeck")) {
15763
+ var error = $root.google.protobuf.BoolValue.verify(message.generatesDeck);
15764
+ if (error)
15765
+ return "generatesDeck." + error;
15766
+ }
15717
15767
  return null;
15718
15768
  };
15719
15769
 
@@ -16082,6 +16132,7 @@
16082
16132
  * @memberof flyteidl.core
16083
16133
  * @interface IContainerPort
16084
16134
  * @property {number|null} [containerPort] ContainerPort containerPort
16135
+ * @property {string|null} [name] ContainerPort name
16085
16136
  */
16086
16137
 
16087
16138
  /**
@@ -16107,6 +16158,14 @@
16107
16158
  */
16108
16159
  ContainerPort.prototype.containerPort = 0;
16109
16160
 
16161
+ /**
16162
+ * ContainerPort name.
16163
+ * @member {string} name
16164
+ * @memberof flyteidl.core.ContainerPort
16165
+ * @instance
16166
+ */
16167
+ ContainerPort.prototype.name = "";
16168
+
16110
16169
  /**
16111
16170
  * Creates a new ContainerPort instance using the specified properties.
16112
16171
  * @function create
@@ -16133,6 +16192,8 @@
16133
16192
  writer = $Writer.create();
16134
16193
  if (message.containerPort != null && message.hasOwnProperty("containerPort"))
16135
16194
  writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.containerPort);
16195
+ if (message.name != null && message.hasOwnProperty("name"))
16196
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.name);
16136
16197
  return writer;
16137
16198
  };
16138
16199
 
@@ -16157,6 +16218,9 @@
16157
16218
  case 1:
16158
16219
  message.containerPort = reader.uint32();
16159
16220
  break;
16221
+ case 2:
16222
+ message.name = reader.string();
16223
+ break;
16160
16224
  default:
16161
16225
  reader.skipType(tag & 7);
16162
16226
  break;
@@ -16179,6 +16243,9 @@
16179
16243
  if (message.containerPort != null && message.hasOwnProperty("containerPort"))
16180
16244
  if (!$util.isInteger(message.containerPort))
16181
16245
  return "containerPort: integer expected";
16246
+ if (message.name != null && message.hasOwnProperty("name"))
16247
+ if (!$util.isString(message.name))
16248
+ return "name: string expected";
16182
16249
  return null;
16183
16250
  };
16184
16251
 
@@ -16891,6 +16958,7 @@
16891
16958
  * @property {flyteidl.core.IK8sObjectMetadata|null} [metadata] K8sPod metadata
16892
16959
  * @property {google.protobuf.IStruct|null} [podSpec] K8sPod podSpec
16893
16960
  * @property {flyteidl.core.IDataLoadingConfig|null} [dataConfig] K8sPod dataConfig
16961
+ * @property {string|null} [primaryContainerName] K8sPod primaryContainerName
16894
16962
  */
16895
16963
 
16896
16964
  /**
@@ -16932,6 +17000,14 @@
16932
17000
  */
16933
17001
  K8sPod.prototype.dataConfig = null;
16934
17002
 
17003
+ /**
17004
+ * K8sPod primaryContainerName.
17005
+ * @member {string} primaryContainerName
17006
+ * @memberof flyteidl.core.K8sPod
17007
+ * @instance
17008
+ */
17009
+ K8sPod.prototype.primaryContainerName = "";
17010
+
16935
17011
  /**
16936
17012
  * Creates a new K8sPod instance using the specified properties.
16937
17013
  * @function create
@@ -16962,6 +17038,8 @@
16962
17038
  $root.google.protobuf.Struct.encode(message.podSpec, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
16963
17039
  if (message.dataConfig != null && message.hasOwnProperty("dataConfig"))
16964
17040
  $root.flyteidl.core.DataLoadingConfig.encode(message.dataConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
17041
+ if (message.primaryContainerName != null && message.hasOwnProperty("primaryContainerName"))
17042
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.primaryContainerName);
16965
17043
  return writer;
16966
17044
  };
16967
17045
 
@@ -16992,6 +17070,9 @@
16992
17070
  case 3:
16993
17071
  message.dataConfig = $root.flyteidl.core.DataLoadingConfig.decode(reader, reader.uint32());
16994
17072
  break;
17073
+ case 4:
17074
+ message.primaryContainerName = reader.string();
17075
+ break;
16995
17076
  default:
16996
17077
  reader.skipType(tag & 7);
16997
17078
  break;
@@ -17026,6 +17107,9 @@
17026
17107
  if (error)
17027
17108
  return "dataConfig." + error;
17028
17109
  }
17110
+ if (message.primaryContainerName != null && message.hasOwnProperty("primaryContainerName"))
17111
+ if (!$util.isString(message.primaryContainerName))
17112
+ return "primaryContainerName: string expected";
17029
17113
  return null;
17030
17114
  };
17031
17115
 
@@ -17345,6 +17429,7 @@
17345
17429
  * @property {string|null} [groupVersion] Secret groupVersion
17346
17430
  * @property {string|null} [key] Secret key
17347
17431
  * @property {flyteidl.core.Secret.MountType|null} [mountRequirement] Secret mountRequirement
17432
+ * @property {string|null} [envVar] Secret envVar
17348
17433
  */
17349
17434
 
17350
17435
  /**
@@ -17394,6 +17479,14 @@
17394
17479
  */
17395
17480
  Secret.prototype.mountRequirement = 0;
17396
17481
 
17482
+ /**
17483
+ * Secret envVar.
17484
+ * @member {string} envVar
17485
+ * @memberof flyteidl.core.Secret
17486
+ * @instance
17487
+ */
17488
+ Secret.prototype.envVar = "";
17489
+
17397
17490
  /**
17398
17491
  * Creates a new Secret instance using the specified properties.
17399
17492
  * @function create
@@ -17426,6 +17519,8 @@
17426
17519
  writer.uint32(/* id 3, wireType 2 =*/26).string(message.key);
17427
17520
  if (message.mountRequirement != null && message.hasOwnProperty("mountRequirement"))
17428
17521
  writer.uint32(/* id 4, wireType 0 =*/32).int32(message.mountRequirement);
17522
+ if (message.envVar != null && message.hasOwnProperty("envVar"))
17523
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.envVar);
17429
17524
  return writer;
17430
17525
  };
17431
17526
 
@@ -17459,6 +17554,9 @@
17459
17554
  case 4:
17460
17555
  message.mountRequirement = reader.int32();
17461
17556
  break;
17557
+ case 5:
17558
+ message.envVar = reader.string();
17559
+ break;
17462
17560
  default:
17463
17561
  reader.skipType(tag & 7);
17464
17562
  break;
@@ -17496,6 +17594,9 @@
17496
17594
  case 2:
17497
17595
  break;
17498
17596
  }
17597
+ if (message.envVar != null && message.hasOwnProperty("envVar"))
17598
+ if (!$util.isString(message.envVar))
17599
+ return "envVar: string expected";
17499
17600
  return null;
17500
17601
  };
17501
17602
 
@@ -22700,6 +22801,8 @@
22700
22801
  * @property {flyteidl.core.TaskExecution.Phase|null} [phase] ExternalResourceInfo phase
22701
22802
  * @property {flyteidl.core.CatalogCacheStatus|null} [cacheStatus] ExternalResourceInfo cacheStatus
22702
22803
  * @property {Array.<flyteidl.core.ITaskLog>|null} [logs] ExternalResourceInfo logs
22804
+ * @property {flyteidl.event.IWorkflowNodeMetadata|null} [workflowNodeMetadata] ExternalResourceInfo workflowNodeMetadata
22805
+ * @property {google.protobuf.IStruct|null} [customInfo] ExternalResourceInfo customInfo
22703
22806
  */
22704
22807
 
22705
22808
  /**
@@ -22766,6 +22869,36 @@
22766
22869
  */
22767
22870
  ExternalResourceInfo.prototype.logs = $util.emptyArray;
22768
22871
 
22872
+ /**
22873
+ * ExternalResourceInfo workflowNodeMetadata.
22874
+ * @member {flyteidl.event.IWorkflowNodeMetadata|null|undefined} workflowNodeMetadata
22875
+ * @memberof flyteidl.event.ExternalResourceInfo
22876
+ * @instance
22877
+ */
22878
+ ExternalResourceInfo.prototype.workflowNodeMetadata = null;
22879
+
22880
+ /**
22881
+ * ExternalResourceInfo customInfo.
22882
+ * @member {google.protobuf.IStruct|null|undefined} customInfo
22883
+ * @memberof flyteidl.event.ExternalResourceInfo
22884
+ * @instance
22885
+ */
22886
+ ExternalResourceInfo.prototype.customInfo = null;
22887
+
22888
+ // OneOf field names bound to virtual getters and setters
22889
+ var $oneOfFields;
22890
+
22891
+ /**
22892
+ * ExternalResourceInfo targetMetadata.
22893
+ * @member {"workflowNodeMetadata"|undefined} targetMetadata
22894
+ * @memberof flyteidl.event.ExternalResourceInfo
22895
+ * @instance
22896
+ */
22897
+ Object.defineProperty(ExternalResourceInfo.prototype, "targetMetadata", {
22898
+ get: $util.oneOfGetter($oneOfFields = ["workflowNodeMetadata"]),
22899
+ set: $util.oneOfSetter($oneOfFields)
22900
+ });
22901
+
22769
22902
  /**
22770
22903
  * Creates a new ExternalResourceInfo instance using the specified properties.
22771
22904
  * @function create
@@ -22803,6 +22936,10 @@
22803
22936
  if (message.logs != null && message.logs.length)
22804
22937
  for (var i = 0; i < message.logs.length; ++i)
22805
22938
  $root.flyteidl.core.TaskLog.encode(message.logs[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
22939
+ if (message.workflowNodeMetadata != null && message.hasOwnProperty("workflowNodeMetadata"))
22940
+ $root.flyteidl.event.WorkflowNodeMetadata.encode(message.workflowNodeMetadata, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
22941
+ if (message.customInfo != null && message.hasOwnProperty("customInfo"))
22942
+ $root.google.protobuf.Struct.encode(message.customInfo, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
22806
22943
  return writer;
22807
22944
  };
22808
22945
 
@@ -22844,6 +22981,12 @@
22844
22981
  message.logs = [];
22845
22982
  message.logs.push($root.flyteidl.core.TaskLog.decode(reader, reader.uint32()));
22846
22983
  break;
22984
+ case 7:
22985
+ message.workflowNodeMetadata = $root.flyteidl.event.WorkflowNodeMetadata.decode(reader, reader.uint32());
22986
+ break;
22987
+ case 8:
22988
+ message.customInfo = $root.google.protobuf.Struct.decode(reader, reader.uint32());
22989
+ break;
22847
22990
  default:
22848
22991
  reader.skipType(tag & 7);
22849
22992
  break;
@@ -22863,6 +23006,7 @@
22863
23006
  ExternalResourceInfo.verify = function verify(message) {
22864
23007
  if (typeof message !== "object" || message === null)
22865
23008
  return "object expected";
23009
+ var properties = {};
22866
23010
  if (message.externalId != null && message.hasOwnProperty("externalId"))
22867
23011
  if (!$util.isString(message.externalId))
22868
23012
  return "externalId: string expected";
@@ -22909,6 +23053,19 @@
22909
23053
  return "logs." + error;
22910
23054
  }
22911
23055
  }
23056
+ if (message.workflowNodeMetadata != null && message.hasOwnProperty("workflowNodeMetadata")) {
23057
+ properties.targetMetadata = 1;
23058
+ {
23059
+ var error = $root.flyteidl.event.WorkflowNodeMetadata.verify(message.workflowNodeMetadata);
23060
+ if (error)
23061
+ return "workflowNodeMetadata." + error;
23062
+ }
23063
+ }
23064
+ if (message.customInfo != null && message.hasOwnProperty("customInfo")) {
23065
+ var error = $root.google.protobuf.Struct.verify(message.customInfo);
23066
+ if (error)
23067
+ return "customInfo." + error;
23068
+ }
22912
23069
  return null;
22913
23070
  };
22914
23071
 
@@ -39026,6 +39183,7 @@
39026
39183
  * @property {boolean|null} [overwriteCache] LaunchPlanSpec overwriteCache
39027
39184
  * @property {flyteidl.admin.IEnvs|null} [envs] LaunchPlanSpec envs
39028
39185
  * @property {Array.<flyteidl.core.IExecutionEnvAssignment>|null} [executionEnvAssignments] LaunchPlanSpec executionEnvAssignments
39186
+ * @property {flyteidl.admin.IClusterAssignment|null} [clusterAssignment] LaunchPlanSpec clusterAssignment
39029
39187
  */
39030
39188
 
39031
39189
  /**
@@ -39180,6 +39338,14 @@
39180
39338
  */
39181
39339
  LaunchPlanSpec.prototype.executionEnvAssignments = $util.emptyArray;
39182
39340
 
39341
+ /**
39342
+ * LaunchPlanSpec clusterAssignment.
39343
+ * @member {flyteidl.admin.IClusterAssignment|null|undefined} clusterAssignment
39344
+ * @memberof flyteidl.admin.LaunchPlanSpec
39345
+ * @instance
39346
+ */
39347
+ LaunchPlanSpec.prototype.clusterAssignment = null;
39348
+
39183
39349
  /**
39184
39350
  * Creates a new LaunchPlanSpec instance using the specified properties.
39185
39351
  * @function create
@@ -39239,6 +39405,8 @@
39239
39405
  if (message.executionEnvAssignments != null && message.executionEnvAssignments.length)
39240
39406
  for (var i = 0; i < message.executionEnvAssignments.length; ++i)
39241
39407
  $root.flyteidl.core.ExecutionEnvAssignment.encode(message.executionEnvAssignments[i], writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim();
39408
+ if (message.clusterAssignment != null && message.hasOwnProperty("clusterAssignment"))
39409
+ $root.flyteidl.admin.ClusterAssignment.encode(message.clusterAssignment, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim();
39242
39410
  return writer;
39243
39411
  };
39244
39412
 
@@ -39313,6 +39481,9 @@
39313
39481
  message.executionEnvAssignments = [];
39314
39482
  message.executionEnvAssignments.push($root.flyteidl.core.ExecutionEnvAssignment.decode(reader, reader.uint32()));
39315
39483
  break;
39484
+ case 23:
39485
+ message.clusterAssignment = $root.flyteidl.admin.ClusterAssignment.decode(reader, reader.uint32());
39486
+ break;
39316
39487
  default:
39317
39488
  reader.skipType(tag & 7);
39318
39489
  break;
@@ -39415,6 +39586,11 @@
39415
39586
  return "executionEnvAssignments." + error;
39416
39587
  }
39417
39588
  }
39589
+ if (message.clusterAssignment != null && message.hasOwnProperty("clusterAssignment")) {
39590
+ var error = $root.flyteidl.admin.ClusterAssignment.verify(message.clusterAssignment);
39591
+ if (error)
39592
+ return "clusterAssignment." + error;
39593
+ }
39418
39594
  return null;
39419
39595
  };
39420
39596
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flyteorg/flyteidl",
3
- "version": "1.14.1",
3
+ "version": "1.14.3",
4
4
  "description": "Compiled protocol buffers and gRPC service clients/servers for Flyte IDLs",
5
5
  "repository": {
6
6
  "type": "git",
@@ -260,6 +260,8 @@ message ExecutionMetadata {
260
260
  // Save a list of the artifacts used in this execution for now. This is a list only rather than a mapping
261
261
  // since we don't have a structure to handle nested ones anyways.
262
262
  repeated core.ArtifactID artifact_ids = 18;
263
+
264
+ reserved 19;
263
265
  }
264
266
 
265
267
  message NotificationList {
@@ -10,6 +10,7 @@ import "flyteidl/core/identifier.proto";
10
10
  import "flyteidl/core/interface.proto";
11
11
  import "flyteidl/core/security.proto";
12
12
  import "flyteidl/admin/schedule.proto";
13
+ import "flyteidl/admin/cluster_assignment.proto";
13
14
  import "flyteidl/admin/common.proto";
14
15
  import "google/protobuf/any.proto";
15
16
  import "google/protobuf/timestamp.proto";
@@ -139,6 +140,10 @@ message LaunchPlanSpec {
139
140
 
140
141
  // Execution environment assignments to be set for the execution.
141
142
  repeated core.ExecutionEnvAssignment execution_env_assignments = 22;
143
+
144
+ // ClusterAssignment controls how to select an available cluster on which executions of this LaunchPlan should run.
145
+ // This can be overwritten at execution creation level.
146
+ ClusterAssignment cluster_assignment = 23;
142
147
  }
143
148
 
144
149
  // Values computed by the flyte platform after launch plan registration.
@@ -43,6 +43,11 @@ message Secret {
43
43
  // will depend on the key management system.
44
44
  // +optional
45
45
  MountType mount_requirement = 4;
46
+
47
+ // env_var is optional. Custom environment variable to set the value of the secret. If mount_requirement is ENV_VAR,
48
+ // then the value is the secret itself. If mount_requirement is FILE, then the value is the path to the secret file.
49
+ // +optional
50
+ string env_var = 5;
46
51
  }
47
52
 
48
53
  // OAuth2Client encapsulates OAuth2 Client Credentials to be used when making calls on behalf of that task.
@@ -6,6 +6,7 @@ import "flyteidl/core/literals.proto";
6
6
  import "flyteidl/core/security.proto";
7
7
  import "google/protobuf/duration.proto";
8
8
  import "google/protobuf/struct.proto";
9
+ import "google/protobuf/wrappers.proto";
9
10
 
10
11
  package flyteidl.core;
11
12
 
@@ -88,6 +89,10 @@ message RuntimeMetadata {
88
89
 
89
90
  // Task Metadata
90
91
  message TaskMetadata {
92
+ // Field number 10 is reserved because we are reusing the name generates_deck for field number 15,
93
+ // but with a different type.
94
+ reserved 10;
95
+
91
96
  // Indicates whether the system should attempt to lookup this task's output to avoid duplication of work.
92
97
  bool discoverable = 1;
93
98
 
@@ -121,9 +126,6 @@ message TaskMetadata {
121
126
  // Indicates whether the system should attempt to execute discoverable instances in serial to avoid duplicate work
122
127
  bool cache_serializable = 9;
123
128
 
124
- // Indicates whether the task will generate a Deck URI when it finishes executing.
125
- bool generates_deck = 10;
126
-
127
129
  // Arbitrary tags that allow users and the platform to store small but arbitrary labels
128
130
  map<string, string> tags = 11;
129
131
 
@@ -137,6 +139,13 @@ message TaskMetadata {
137
139
  // is_eager indicates whether the task is eager or not.
138
140
  // This would be used by CreateTask endpoint.
139
141
  bool is_eager = 14;
142
+
143
+ // Indicates whether the task will generate a deck when it finishes executing.
144
+ // The BoolValue can have three states:
145
+ // - nil: The value is not set.
146
+ // - true: The task will generate a deck.
147
+ // - false: The task will not generate a deck.
148
+ google.protobuf.BoolValue generates_deck = 15;
140
149
  }
141
150
 
142
151
  // A Task structure that uniquely identifies a task in the system
@@ -192,6 +201,8 @@ message ContainerPort {
192
201
  // Number of port to expose on the pod's IP address.
193
202
  // This must be a valid port number, 0 < x < 65536.
194
203
  uint32 container_port = 1;
204
+ // Name of the port to expose on the pod's IP address.
205
+ string name = 2;
195
206
  }
196
207
 
197
208
  message Container {
@@ -320,6 +331,10 @@ message K8sPod {
320
331
  // to understand the default paths.
321
332
  // Only K8s
322
333
  DataLoadingConfig data_config = 3;
334
+
335
+
336
+ // Defines the primary container name when pod template override is executed.
337
+ string primary_container_name = 4;
323
338
  }
324
339
 
325
340
  // Metadata for building a kubernetes object when a task is executed.
@@ -199,6 +199,9 @@ message NodeMetadata {
199
199
  oneof cache_serializable_value {
200
200
  bool cache_serializable = 9;
201
201
  }
202
+
203
+ // Config is a bag of properties that can be used to instruct propeller on how to execute the node.
204
+ map<string, string> config = 10;
202
205
  }
203
206
 
204
207
  // Links a variable to an alias.
@@ -336,6 +339,10 @@ message TaskNodeOverrides {
336
339
 
337
340
  // Override for the image used by task pods.
338
341
  string container_image = 3;
342
+
343
+ // Override for the pod template used by task pods
344
+ //+optional
345
+ K8sPod pod_template = 4;
339
346
  }
340
347
 
341
348
  // A structure that uniquely identifies a launch plan in the system.
@@ -287,6 +287,16 @@ message ExternalResourceInfo {
287
287
 
288
288
  // log information for the external resource execution
289
289
  repeated core.TaskLog logs = 6;
290
+
291
+ // Additional metadata to do with this event's node target based on the node type. We are
292
+ // explicitly not including the task_node_metadata here because it is not clear if it is needed.
293
+ // If we decide to include in the future, we should deprecate the cache_status field.
294
+ oneof target_metadata {
295
+ WorkflowNodeMetadata workflow_node_metadata = 7;
296
+ }
297
+
298
+ // Extensible field for custom, plugin-specific info
299
+ google.protobuf.Struct custom_info = 8;
290
300
  }
291
301
 
292
302