-
Notifications
You must be signed in to change notification settings - Fork 7
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
Add neuro admin add-quota / set-quota commands #1275
Conversation
if value is None: | ||
return None | ||
try: | ||
result = float(value[:-1]) * {"h": 60, "m": 1}[value[-1]] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please improve the error reporting; _parse_quota_value("5z")
generates obscure KeyError: 'z'
exception.
cluster_name = root.client.config.cluster_name | ||
click.echo( | ||
f"In order to increase your quota, please navigate to " | ||
f"https://neuro.payments.com/{user_name}/{cluster_name}?pay=usd100" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this URL be a part of a server provided config?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Eventually, yes. But this particular part is not finished yet (and the command is disabled). It will be completely released after Evil Martians complete their part and it's tracked via a separate issue.
Co-Authored-By: Andrew Svetlov <[email protected]>
Co-Authored-By: Andrew Svetlov <[email protected]>
Co-Authored-By: Andrew Svetlov <[email protected]>
Co-Authored-By: Andrew Svetlov <[email protected]>
Closes #1255
Until https://github.com/neuromation/platform-admin/pull/92 is merged and deployed, we can't have e2e tests, so only stubbed ones for now.