Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

10_mount_pvc_pipeline add_pvolumes no longer exists in v2 #5

Open
strangiato opened this issue May 11, 2024 · 0 comments
Open

10_mount_pvc_pipeline add_pvolumes no longer exists in v2 #5

strangiato opened this issue May 11, 2024 · 0 comments

Comments

@strangiato
Copy link
Member

The add_pvolumes option appears to no longer exist in kfp v2.

Full stack trace for the error:

$ python pipelines/10_mount_pvc_pipeline.py    
Traceback (most recent call last):
  File "/Users/my-user/code/rhai/kubeflow-pipelines-examples/pipelines/10_mount_pvc_pipeline.py", line 25, in <module>
    @kfp.dsl.pipeline(
     ^^^^^^^^^^^^^^^^^
  File "/Users/my-user/code/rhai/kubeflow-pipelines-examples/.venv/lib/python3.11/site-packages/kfp/dsl/pipeline_context.py", line 65, in pipeline
    return component_factory.create_graph_component_from_func(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/my-user/code/rhai/kubeflow-pipelines-examples/.venv/lib/python3.11/site-packages/kfp/dsl/component_factory.py", line 673, in create_graph_component_from_func
    return graph_component.GraphComponent(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/my-user/code/rhai/kubeflow-pipelines-examples/.venv/lib/python3.11/site-packages/kfp/dsl/graph_component.py", line 58, in __init__
    pipeline_outputs = pipeline_func(*args_list)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/my-user/code/rhai/kubeflow-pipelines-examples/pipelines/10_mount_pvc_pipeline.py", line 41, in add_pipeline
    first_add_task.add_pvolumes({"/opt/data": vol})
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'PipelineTask' object has no attribute 'add_pvolumes'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant