@flyteorg/flyteidl 1.14.2 → 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.
@@ -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
@@ -6983,6 +6989,9 @@ export namespace flyteidl {
6983
6989
 
6984
6990
  /** K8sPod dataConfig */
6985
6991
  dataConfig?: (flyteidl.core.IDataLoadingConfig|null);
6992
+
6993
+ /** K8sPod primaryContainerName */
6994
+ primaryContainerName?: (string|null);
6986
6995
  }
6987
6996
 
6988
6997
  /** Represents a K8sPod. */
@@ -7003,6 +7012,9 @@ export namespace flyteidl {
7003
7012
  /** K8sPod dataConfig. */
7004
7013
  public dataConfig?: (flyteidl.core.IDataLoadingConfig|null);
7005
7014
 
7015
+ /** K8sPod primaryContainerName. */
7016
+ public primaryContainerName: string;
7017
+
7006
7018
  /**
7007
7019
  * Creates a new K8sPod instance using the specified properties.
7008
7020
  * @param [properties] Properties to set
@@ -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
 
@@ -16939,6 +16958,7 @@
16939
16958
  * @property {flyteidl.core.IK8sObjectMetadata|null} [metadata] K8sPod metadata
16940
16959
  * @property {google.protobuf.IStruct|null} [podSpec] K8sPod podSpec
16941
16960
  * @property {flyteidl.core.IDataLoadingConfig|null} [dataConfig] K8sPod dataConfig
16961
+ * @property {string|null} [primaryContainerName] K8sPod primaryContainerName
16942
16962
  */
16943
16963
 
16944
16964
  /**
@@ -16980,6 +17000,14 @@
16980
17000
  */
16981
17001
  K8sPod.prototype.dataConfig = null;
16982
17002
 
17003
+ /**
17004
+ * K8sPod primaryContainerName.
17005
+ * @member {string} primaryContainerName
17006
+ * @memberof flyteidl.core.K8sPod
17007
+ * @instance
17008
+ */
17009
+ K8sPod.prototype.primaryContainerName = "";
17010
+
16983
17011
  /**
16984
17012
  * Creates a new K8sPod instance using the specified properties.
16985
17013
  * @function create
@@ -17010,6 +17038,8 @@
17010
17038
  $root.google.protobuf.Struct.encode(message.podSpec, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
17011
17039
  if (message.dataConfig != null && message.hasOwnProperty("dataConfig"))
17012
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);
17013
17043
  return writer;
17014
17044
  };
17015
17045
 
@@ -17040,6 +17070,9 @@
17040
17070
  case 3:
17041
17071
  message.dataConfig = $root.flyteidl.core.DataLoadingConfig.decode(reader, reader.uint32());
17042
17072
  break;
17073
+ case 4:
17074
+ message.primaryContainerName = reader.string();
17075
+ break;
17043
17076
  default:
17044
17077
  reader.skipType(tag & 7);
17045
17078
  break;
@@ -17074,6 +17107,9 @@
17074
17107
  if (error)
17075
17108
  return "dataConfig." + error;
17076
17109
  }
17110
+ if (message.primaryContainerName != null && message.hasOwnProperty("primaryContainerName"))
17111
+ if (!$util.isString(message.primaryContainerName))
17112
+ return "primaryContainerName: string expected";
17077
17113
  return null;
17078
17114
  };
17079
17115
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flyteorg/flyteidl",
3
- "version": "1.14.2",
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",
@@ -331,6 +331,10 @@ message K8sPod {
331
331
  // to understand the default paths.
332
332
  // Only K8s
333
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;
334
338
  }
335
339
 
336
340
  // 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.