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

[sdk] <no API to add port in KFPV2> #11174

Open
482170765 opened this issue Sep 6, 2024 · 0 comments
Open

[sdk] <no API to add port in KFPV2> #11174

482170765 opened this issue Sep 6, 2024 · 0 comments

Comments

@482170765
Copy link

kfp == 2.8.0

kfp-kubernetes == 1.2.0

@dsl.component()
def server():
....

@dsl.pipeline()
def my_pipeline():
server_task=server()
server_task.add_port(V1ContainerPort(name='my-port', container_port=8080))
---> server_task.add_port(V1ContainerPort(name='my-port', container_port=8080))

AttributeError: 'PipelineTask' object has no attribute 'add_port'

In kfpv1 the code can work, but in kfpv2 'add_port' had been removed. Is there any method to add port on task ?

Impacted by this bug? Give it a 👍.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant