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

Closed
482170765 opened this issue Sep 6, 2024 · 2 comments
Closed

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

482170765 opened this issue Sep 6, 2024 · 2 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 👍.

@rimolive
Copy link
Member

rimolive commented Oct 3, 2024

Duplicated with #11184

/close

Copy link

@rimolive: Closing this issue.

In response to this:

Duplicated with #11184

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

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

2 participants