Skip to content

Commit

Permalink
SDK/DSL/Compileer - Fixed handling of empty pipeline name (#1009)
Browse files Browse the repository at this point in the history
Fixes #825
  • Loading branch information
Ark-kun authored and k8s-ci-robot committed Mar 21, 2019
1 parent 07aa5db commit fac06e9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sdk/python/kfp/compiler/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,12 +464,13 @@ def _create_pipeline_workflow(self, args, pipeline):
volumes = self._create_volumes(pipeline)

# The whole pipeline workflow
pipeline_name = pipeline.name or 'Pipeline'
workflow = {
'apiVersion': 'argoproj.io/v1alpha1',
'kind': 'Workflow',
'metadata': {'generateName': pipeline.name + '-'},
'metadata': {'generateName': pipeline_name + '-'},
'spec': {
'entrypoint': pipeline.name,
'entrypoint': pipeline_name,
'templates': templates,
'arguments': {'parameters': input_params},
'serviceAccountName': 'pipeline-runner'
Expand Down

0 comments on commit fac06e9

Please sign in to comment.