@@ -2028,14 +2028,15 @@ def write_pipeline_spec_to_file(
20282028 pipeline_description: Description from pipeline docstring.
20292029 package_path: The path to which to write the PipelineSpec.
20302030 platform_spec: The PlatformSpec.
2031- k8s_manifests_format: Whether to output the compiled pipeline
2032- in K8s native format. Defaults to False.
2031+ k8s_manifests_format: Whether to output the compiled pipeline in K8s native format.
2032+ Defaults to False.
20332033 """
20342034 pipeline_spec_dict = json_format .MessageToDict (pipeline_spec )
20352035
20362036 if k8s_manifests_format :
20372037 pipeline_name = pipeline_spec .pipeline_info .name
20382038 display_name = getattr (pipeline_spec , 'display_name' , pipeline_name )
2039+
20392040 # Pipeline manifest
20402041 pipeline_manifest = {
20412042 'apiVersion' : 'pipelines.kubeflow.org/v2beta1' ,
@@ -2045,8 +2046,9 @@ def write_pipeline_spec_to_file(
20452046 },
20462047 'spec' : {
20472048 'displayName' : display_name ,
2048- }
2049+ },
20492050 }
2051+
20502052 # PipelineVersion manifest
20512053 pipeline_version_manifest = {
20522054 'apiVersion' : 'pipelines.kubeflow.org/v2beta1' ,
@@ -2058,7 +2060,7 @@ def write_pipeline_spec_to_file(
20582060 'displayName' : display_name ,
20592061 'pipelineName' : pipeline_name ,
20602062 'pipelineSpec' : pipeline_spec_dict ,
2061- }
2063+ },
20622064 }
20632065
20642066 with open (package_path , 'w' ) as yaml_file :
0 commit comments