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

[hailtop] Remove namespace options in hailctl auth commands #14069

Conversation

daniel-goldstein
Copy link
Contributor

I'm trying to move our codebase away from relying on the notion of a K8s namespace for routing because this model does not hold in alternative deployment environments such as Terra. Further, having a -n option in hailctl auth commands is awkward because it can only be used for dev environments yet is visible to users in the help menu. As such, this is a breaking change only for developers. The functionality is not really gone though because you can replace any hailctl auth … -n dgoldste with HAIL_DEFAULT_NAMESPACE=dgoldste hailctl auth ….

@daniel-goldstein daniel-goldstein force-pushed the rely-less-on-default-namespace-everywhere branch from a3ef087 to 8a114de Compare December 5, 2023 15:30
danking
danking previously requested changes Dec 7, 2023
json=body
)
url = get_deploy_config().url('auth', f'/api/v1alpha/users/{username}/create')
async with hail_session() as session:
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we maybe purposely gave extra timeout for this API call.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I forgot these weren't immediate operations. I restored the timeouts.

deploy_config.url('auth', f'/api/v1alpha/users/{username}')
)
async def async_delete_user(username: str):
url = get_deploy_config().url('auth', f'/api/v1alpha/users/{username}')
Copy link
Contributor

Choose a reason for hiding this comment

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

is this API call fast?

Copy link
Contributor Author

@daniel-goldstein daniel-goldstein Dec 8, 2023

Choose a reason for hiding this comment

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

no, restored the timeout

@danking danking merged commit c4aed60 into hail-is:main Dec 16, 2023
8 checks passed
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

Successfully merging this pull request may close these issues.

2 participants