@flyteorg/flyteidl 1.3.11 → 1.3.12

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.
@@ -5635,6 +5635,9 @@ export namespace flyteidl {
5635
5635
 
5636
5636
  /** K8sPod podSpec */
5637
5637
  podSpec?: (google.protobuf.IStruct|null);
5638
+
5639
+ /** K8sPod dataConfig */
5640
+ dataConfig?: (flyteidl.core.IDataLoadingConfig|null);
5638
5641
  }
5639
5642
 
5640
5643
  /** Represents a K8sPod. */
@@ -5652,6 +5655,9 @@ export namespace flyteidl {
5652
5655
  /** K8sPod podSpec. */
5653
5656
  public podSpec?: (google.protobuf.IStruct|null);
5654
5657
 
5658
+ /** K8sPod dataConfig. */
5659
+ public dataConfig?: (flyteidl.core.IDataLoadingConfig|null);
5660
+
5655
5661
  /**
5656
5662
  * Creates a new K8sPod instance using the specified properties.
5657
5663
  * @param [properties] Properties to set
@@ -13498,6 +13498,7 @@
13498
13498
  * @interface IK8sPod
13499
13499
  * @property {flyteidl.core.IK8sObjectMetadata|null} [metadata] K8sPod metadata
13500
13500
  * @property {google.protobuf.IStruct|null} [podSpec] K8sPod podSpec
13501
+ * @property {flyteidl.core.IDataLoadingConfig|null} [dataConfig] K8sPod dataConfig
13501
13502
  */
13502
13503
 
13503
13504
  /**
@@ -13531,6 +13532,14 @@
13531
13532
  */
13532
13533
  K8sPod.prototype.podSpec = null;
13533
13534
 
13535
+ /**
13536
+ * K8sPod dataConfig.
13537
+ * @member {flyteidl.core.IDataLoadingConfig|null|undefined} dataConfig
13538
+ * @memberof flyteidl.core.K8sPod
13539
+ * @instance
13540
+ */
13541
+ K8sPod.prototype.dataConfig = null;
13542
+
13534
13543
  /**
13535
13544
  * Creates a new K8sPod instance using the specified properties.
13536
13545
  * @function create
@@ -13559,6 +13568,8 @@
13559
13568
  $root.flyteidl.core.K8sObjectMetadata.encode(message.metadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
13560
13569
  if (message.podSpec != null && message.hasOwnProperty("podSpec"))
13561
13570
  $root.google.protobuf.Struct.encode(message.podSpec, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
13571
+ if (message.dataConfig != null && message.hasOwnProperty("dataConfig"))
13572
+ $root.flyteidl.core.DataLoadingConfig.encode(message.dataConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
13562
13573
  return writer;
13563
13574
  };
13564
13575
 
@@ -13586,6 +13597,9 @@
13586
13597
  case 2:
13587
13598
  message.podSpec = $root.google.protobuf.Struct.decode(reader, reader.uint32());
13588
13599
  break;
13600
+ case 3:
13601
+ message.dataConfig = $root.flyteidl.core.DataLoadingConfig.decode(reader, reader.uint32());
13602
+ break;
13589
13603
  default:
13590
13604
  reader.skipType(tag & 7);
13591
13605
  break;
@@ -13615,6 +13629,11 @@
13615
13629
  if (error)
13616
13630
  return "podSpec." + error;
13617
13631
  }
13632
+ if (message.dataConfig != null && message.hasOwnProperty("dataConfig")) {
13633
+ var error = $root.flyteidl.core.DataLoadingConfig.verify(message.dataConfig);
13634
+ if (error)
13635
+ return "dataConfig." + error;
13636
+ }
13618
13637
  return null;
13619
13638
  };
13620
13639
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flyteorg/flyteidl",
3
- "version": "1.3.11",
3
+ "version": "1.3.12",
4
4
  "description": "Compiled protocol buffers and gRPC service clients/servers for Flyte IDLs",
5
5
  "repository": {
6
6
  "type": "git",
@@ -268,24 +268,32 @@ message DataLoadingConfig {
268
268
 
269
269
  // Defines a pod spec and additional pod metadata that is created when a task is executed.
270
270
  message K8sPod {
271
- // Contains additional metadata for building a kubernetes pod.
272
- K8sObjectMetadata metadata = 1;
273
-
274
- // Defines the primary pod spec created when a task is executed.
275
- // This should be a JSON-marshalled pod spec, which can be defined in
276
- // - go, using: https://github.com/kubernetes/api/blob/release-1.21/core/v1/types.go#L2936
277
- // - python: using https://github.com/kubernetes-client/python/blob/release-19.0/kubernetes/client/models/v1_pod_spec.py
278
- google.protobuf.Struct pod_spec = 2;
271
+ // Contains additional metadata for building a kubernetes pod.
272
+ K8sObjectMetadata metadata = 1;
273
+
274
+ // Defines the primary pod spec created when a task is executed.
275
+ // This should be a JSON-marshalled pod spec, which can be defined in
276
+ // - go, using: https://github.com/kubernetes/api/blob/release-1.21/core/v1/types.go#L2936
277
+ // - python: using https://github.com/kubernetes-client/python/blob/release-19.0/kubernetes/client/models/v1_pod_spec.py
278
+ google.protobuf.Struct pod_spec = 2;
279
+
280
+ // BETA: Optional configuration for DataLoading. If not specified, then default values are used.
281
+ // This makes it possible to to run a completely portable container, that uses inputs and outputs
282
+ // only from the local file-system and without having any reference to flytekit. This is supported only on K8s at the moment.
283
+ // If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories
284
+ // are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
285
+ // to understand the default paths.
286
+ // Only K8s
287
+ DataLoadingConfig data_config = 3;
279
288
  }
280
289
 
281
290
  // Metadata for building a kubernetes object when a task is executed.
282
291
  message K8sObjectMetadata {
292
+ // Optional labels to add to the pod definition.
293
+ map<string, string> labels = 1;
283
294
 
284
- // Optional labels to add to the pod definition.
285
- map<string, string> labels = 1;
286
-
287
- // Optional annotations to add to the pod definition.
288
- map<string, string> annotations = 2;
295
+ // Optional annotations to add to the pod definition.
296
+ map<string, string> annotations = 2;
289
297
  }
290
298
 
291
299
  // Sql represents a generic sql workload with a statement and dialect.