Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Handle pipeline versions #330

Merged

Conversation

StefanoFioravanzo
Copy link
Member

Upload and run pipelines using pipeline versions, instead of uploading
a new pipeline with a random name every time.

This affects how we create, upload, and run pipelines, since we always
need to specify both a pipeline ID/Name and a version ID/Name.

Stefano Fioravanzo added 9 commits April 9, 2021 20:06
Before this change, calling get_pipeline_id with a non-existing ID would
make the function run forever

Signed-off-by: Stefano Fioravanzo <stefano@arrikto.com>
Reviewed-by: Ilias Katsakioris <elikatsis@arrikto.com>
KFP provides the APIs to upload pipeline versions. Each pipeline has a
`name` and an `id` and has a list of versions, each one with its own
`name` and `id` (unique across all KFP versions - not just within the
context of the pipeline).

Note: Since KFP does not provide a way to name the first version of a
pipeline, when uploading one for the first time we do the following:

1. Upload pipeline. This also generates a new version with the same name
as the pipeline
2. Create a new version with a Kale autogenerated hash
3. Delete the first, autogenerated, version

Signed-off-by: Stefano Fioravanzo <stefano@arrikto.com>
Reviewed-by: Ilias Katsakioris <elikatsis@arrikto.com>
Also remove ApiError exception handling since we don't expect to
upload a pipeline with a conflicting name or version name. If this
happens the should let the error propagate to the user.

Signed-off-by: Stefano Fioravanzo <stefano@arrikto.com>
Reviewed-by: Ilias Katsakioris <elikatsis@arrikto.com>
Signed-off-by: Stefano Fioravanzo <stefano@arrikto.com>
Reviewed-by: Ilias Katsakioris <elikatsis@arrikto.com>
Signed-off-by: Stefano Fioravanzo <stefano@arrikto.com>
Reviewed-by: Ilias Katsakioris <elikatsis@arrikto.com>
Signed-off-by: Stefano Fioravanzo <stefano@arrikto.com>
Reviewed-by: Ilias Katsakioris <elikatsis@arrikto.com>
We don't expect Kubeflow to be deployed in a namespace other than
'kubeflow'.

Signed-off-by: Stefano Fioravanzo <stefano@arrikto.com>
Reviewed-by: Ilias Katsakioris <elikatsis@arrikto.com>
Signed-off-by: Stefano Fioravanzo <stefano@arrikto.com>
Reviewed-by: Ilias Katsakioris <elikatsis@arrikto.com>
Signed-off-by: Stefano Fioravanzo <stefano@arrikto.com>
Reviewed-by: Ilias Katsakioris <elikatsis@arrikto.com>
@elikatsis elikatsis force-pushed the feature-stefano-up-pipeline-versions branch from cda8cf3 to dc982fe Compare April 9, 2021 17:08
@elikatsis elikatsis merged commit dc982fe into kubeflow-kale:master Apr 9, 2021
@elikatsis elikatsis deleted the feature-stefano-up-pipeline-versions branch April 9, 2021 17:10
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants