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

chore: supporting the listen-address parameter on db-manager #2465

Merged

Conversation

caiofralmeida
Copy link
Contributor

@caiofralmeida caiofralmeida commented Dec 12, 2024

What this PR does / why we need it: I would like to be able to pass a different listen-address to handle other ports or even ipv6.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

Checklist:

  • Docs included if any changes are user facing

@caiofralmeida caiofralmeida force-pushed the support-param-listen-address branch 2 times, most recently from 6f678ba to 61be78f Compare December 12, 2024 23:56
@google-oss-prow google-oss-prow bot added size/S and removed size/XS labels Dec 12, 2024
@caiofralmeida caiofralmeida changed the title chore: supporting the listen-address parameter chore: supporting the listen-address parameter on db-manager Dec 12, 2024
Copy link
Member

@tenzen-y tenzen-y 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 for making the address customizable.
This looks great to me.
/approve
/rerun-all

@kubeflow/wg-automl-leads How about this improvement?

@tenzen-y
Copy link
Member

/rerun-all

Copy link
Member

@Electronic-Waste Electronic-Waste left a comment

Choose a reason for hiding this comment

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

/lgtm

@Electronic-Waste
Copy link
Member

/rerun-all

3 similar comments
@Electronic-Waste
Copy link
Member

/rerun-all

@Electronic-Waste
Copy link
Member

/rerun-all

@Electronic-Waste
Copy link
Member

/rerun-all

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 for this contribution @caiofralmeida 🎉
@kubeflow/wg-automl-leads @caiofralmeida @Electronic-Waste @helenxie-bit Don't we want to use env variable to configure all settings for Katib DB Manager for now ?
Ideally, we should migrate to the Katib Config, but it could be done in the future.

The problem is that we have a few settings for Katib DB manager that need to configured via envs: https://www.kubeflow.org/docs/components/katib/user-guides/env-variables/#katib-db-manager

@caiofralmeida
Copy link
Contributor Author

@andreyvelich thanks for the heads up. I can implement the listen-address configuration as an environment variable as well (in another PR) what do you think?

We just need to define which of the settings should take precedence.

@andreyvelich
Copy link
Member

I would suggest that we migrate all Katib DB manager args to the envs as part of this PR:
CONNECT_TIMEOUT and LISTEN_ADDRESS
What do you think @caiofralmeida ?

@caiofralmeida
Copy link
Contributor Author

@andreyvelich I agree with refactoring ARGs to environment variables, but I think that making this change in this PR will generate a braking change. I would feel more comfortable if we already had a way to override the listen address (through args) remove an impediment on our side and implement the PR by refactoring all args to environment variables, already doing the necessary tests, and declaring that ARGs will no longer be supported.

@andreyvelich
Copy link
Member

Actually, it is a great point @caiofralmeida, I agree with you!
Ideally, we should migrate Katib DB manager settings to the Katib config all together, but we can do it later.
https://www.kubeflow.org/docs/components/katib/user-guides/katib-config/
If you could create tracking issue for it, that would be great!

@andreyvelich
Copy link
Member

/rerun-all

@caiofralmeida
Copy link
Contributor Author

Actually, it is a great point @caiofralmeida, I agree with you! Ideally, we should migrate Katib DB manager settings to the Katib config all together, but we can do it later. https://www.kubeflow.org/docs/components/katib/user-guides/katib-config/ If you could create tracking issue for it, that would be great!

Nice, I'm going to create a tracking issue right now. Thanks!

@andreyvelich
Copy link
Member

@caiofralmeida Please can you re-push your commit to trigger GitHub actions ?
Since the action was triggered more than 1 month ago, GitHub doesn't allow me to trigger them.

@caiofralmeida caiofralmeida force-pushed the support-param-listen-address branch from 61be78f to c2a200e Compare January 21, 2025 21:13
@google-oss-prow google-oss-prow bot removed the lgtm label Jan 21, 2025
@caiofralmeida
Copy link
Contributor Author

@caiofralmeida Please can you re-push your commit to trigger GitHub actions ? Since the action was triggered more than 1 month ago, GitHub doesn't allow me to trigger them.

For sure, done @andreyvelich :)

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.

/lgtm
/approve

Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: andreyvelich, Electronic-Waste, tenzen-y

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

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [andreyvelich,tenzen-y]

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 59af784 into kubeflow:master Jan 22, 2025
63 checks passed
@caiofralmeida
Copy link
Contributor Author

@andreyvelich I've created the issue. I have not found any template that fits the intention of the issue.

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