Skip to content

feat: Added examples to the documentation demonstrating different ways to handle ports#243

Merged
google-oss-prow[bot] merged 5 commits intokubeflow:mainfrom
osamaahmed17:osamaahmed17/227
Feb 16, 2026
Merged

feat: Added examples to the documentation demonstrating different ways to handle ports#243
google-oss-prow[bot] merged 5 commits intokubeflow:mainfrom
osamaahmed17:osamaahmed17/227

Conversation

@osamaahmed17
Copy link
Contributor

Added examples to the documentation demonstrating different ways to handle ports
feat: #227

@github-actions
Copy link

🎉 Welcome to the Kubeflow SDK! 🎉

Thanks for opening your first PR! We're happy to have you as part of our community 🚀

Here's what happens next:

  • If you haven't already, please check out our Contributing Guide for repo-specific guidelines and the Kubeflow Contributor Guide for general community standards
  • Our team will review your PR soon! cc @kubeflow/kubeflow-sdk-team

Join the community:

Feel free to ask questions in the comments if you need any help or clarification!
Thanks again for contributing to Kubeflow! 🙏

@osamaahmed17 osamaahmed17 marked this pull request as draft January 26, 2026 13:11
@osamaahmed17 osamaahmed17 changed the title Added examples to the documentation demonstrating different ways to handle ports feat: Added examples to the documentation demonstrating different ways to handle ports Jan 26, 2026
@google-oss-prow google-oss-prow bot added size/XS and removed size/S labels Jan 26, 2026
@coveralls
Copy link

coveralls commented Jan 26, 2026

Pull Request Test Coverage Report for Build 21829319438

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • 21 unchanged lines in 1 file lost coverage.
  • Overall coverage increased (+0.008%) to 67.528%

Files with Coverage Reduction New Missed Lines %
kubeflow/trainer/backends/kubernetes/utils.py 21 77.64%
Totals Coverage Status
Change from base Build 21410511236: 0.008%
Covered Lines: 2770
Relevant Lines: 4102

💛 - Coveralls

Signed-off-by: osamaahmed17 <osamaahmedtahir17@gmail.com>
Signed-off-by: osamaahmed17 <osamaahmedtahir17@gmail.com>
@osamaahmed17
Copy link
Contributor Author

@andreyvelich and @jonburdo, kindly review the code and let me know if anything is missing.
All tasks are completed only one remains, waiting for the new model registry version.

osamaahmed17 and others added 3 commits February 3, 2026 15:39
Co-authored-by: Jon Burdo <jon@jonburdo.com>
Signed-off-by: Osama Tahir <31954609+osamaahmed17@users.noreply.github.com>
Signed-off-by: Osama Tahir <31954609+osamaahmed17@users.noreply.github.com>
Signed-off-by: Osama Tahir <31954609+osamaahmed17@users.noreply.github.com>
@osamaahmed17 osamaahmed17 marked this pull request as ready for review February 9, 2026 14:47
@google-oss-prow google-oss-prow bot requested a review from fege February 9, 2026 14:47
@osamaahmed17
Copy link
Contributor Author

Hi @jonburdo and @andreyvelich
Kindly review this PR when you get a chance.
Thank you

Copy link
Member

@jonburdo jonburdo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
/approve
/hold

This looks great! I'm approving but adding a hold, since we haven't yet released model-registry version 0.3.6, which is required for this.

If another approver wants to go ahead and merge this, feel free to /unhold. We should have 0.3.6 very soon.

I have tested that this works as expected as follows:

old behavior

(model-registry==0.3.5)

With model-registry==0.3.5 (uv pip install '.[hub]') passing these urls:

http://localhost:9080
https://test.example.com:8443

Tries to connect to:

http://localhost:9080:8080
https://test.example.com:8443:443

because this older version of model-registry assumes the port will be passed separately and does f"{server_address}:{port}"

new behavior

(model-registry commit 338563d27a4b4dafde985eb8978bb070bf8631af)

With model-registry's current main branch (uv pip install '.[hub]' ~/src/model-registry/clients/python) passing the same urls, now works as expected:

http://localhost:9080
https://test.example.com:8443

Example session:

>>> from kubeflow.hub import ModelRegistryClient

>>> ModelRegistryClient("http://localhost:9080")
aiohttp.client_exceptions.ClientConnectorDNSError: Cannot connect to host test.example.com:8443 ssl:default [No address associated with hostname]

>>> ModelRegistryClient("https://test.example.com:8443", is_secure=False)
aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host localhost:9080 ssl:default [Multiple exceptions: [Errno 111] Connect call failed ('::1', 9080, 0, 0), [Errno 111] Connect call failed ('127.0.0.1', 9080)]

@google-oss-prow google-oss-prow bot added the lgtm label Feb 9, 2026
@jonburdo
Copy link
Member

Ah, we will also need to wait for the min python version of this project to be updated to python 3.10 since model-registry==0.3.6 supports 3.10 and later

@jonburdo
Copy link
Member

With the bump to python 3.10 and to model-registry 0.3.6, this should be good to go!

/unhold
/cc @kramaranya @andreyvelich @szaher

@osamaahmed17
Copy link
Contributor Author

@jonburdo, how do we merge the code, is there a direct command that I can do for future cases?

@jonburdo
Copy link
Member

@jonburdo, how do we merge the code, is there a direct command that I can do for future cases?

@osamaahmed17 We'll need an approval from someone in the approvers section of OWNERS. For changes that only touch files under kubeflow/hub, an approver in kubeflow/hub/OWNERS should be able to approve, but this PR touches the README.md too. For more info see the link the last google-oss-prow comment above: #243 (comment)

I hope someone can review it soon, but feel free to mention that this PR could use a review in the slack channels. See github-actions comment above: #243 (comment)

Copy link
Member

@andreyvelich andreyvelich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @osamaahmed17!
/lgtm
/approve

@google-oss-prow
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: andreyvelich, jonburdo

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@google-oss-prow google-oss-prow bot merged commit d2985e9 into kubeflow:main Feb 16, 2026
17 of 18 checks passed
@google-oss-prow google-oss-prow bot added this to the v0.4 milestone Feb 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants