-
Notifications
You must be signed in to change notification settings - Fork 93
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
Nebari Typer CLI #1443
Nebari Typer CLI #1443
Conversation
* Nebari cli: Add files _init.py and main.py * run pre-commit Co-authored-by: iameskild <[email protected]>
* Nebari typer cli commands * add validate command * Change validate command * add precommit
* Nebari Render Command * add render_template * Add dry-run
* Nebari deploy and destroy commands * Add typer confirm to destroy command * Run pre-commit Co-authored-by: eskild <[email protected]> Co-authored-by: iameskild <[email protected]>
* Nebari deploy and destroy commands * Add typer confirm to destroy command * Add deploy arguments and change repository default value * Add rendre design * Run pre-commit Co-authored-by: eskild <[email protected]> Co-authored-by: iameskild <[email protected]>
@asmijafar20 based on today's feedback from the team, we need to make the following updates:
|
* Add , , and commands. * Add pre-commit * Add pre-commit * Add pre-commit * Add rich print * Change do_keycloak function * Create two keycloak subcommands Co-authored-by: iameskild <[email protected]> Co-authored-by: eskild <[email protected]>
Hey folks reminder here that we also need instructions for folks in the team to use this new CLI + docs in the main docs page |
Thanks a bunch @pavithraes for the thorough review.
This is indeed intentional. Would it be better without? I might also change the verbiage to something like
Good call! I made a few changes and this shouldn't happen any more 🤘
Added :)
Definitely, good catch! Just swapped it out for ❗️
More space added. |
* Add version Options to Nebari * Add pre-commit Co-authored-by: eskild <[email protected]>
Just a mistake in the commit message it is spring_green to green |
if inputs.kubernetes_version == "latest": | ||
inputs.kubernetes_version = None |
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.
righto - it is fine - what we need to make sure is to add a disclaimer / output saying that the latest available Kubernetes version will be installed as none was provided
qhub/cli/_init.py
Outdated
rich.print( | ||
( | ||
"\n 🪴 Nebari comes with [green]Keycloak[/green], an open-source identity and access management tool. This is how users, groups and roles " | ||
"are managed on the platform. To connect Keycloak with an identity provider, you can select one now.\n\n" |
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.
yup that will work - might want to add a TODO:
in this bit to remind us that it needs doing
qhub/cli/_init.py
Outdated
if git_provider == "github.com": | ||
inputs.repository_auto_provision = questionary.confirm( | ||
f"Would you like the following git repository to be automatically created: {inputs.repository}?", | ||
default=False, | ||
qmark=qmark, | ||
).ask() |
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.
so if I say "no" would it still initialise the local git repo?
qhub/cli/_init.py
Outdated
if git_provider == "github.com": | ||
inputs.repository_auto_provision = questionary.confirm( | ||
f"Would you like the following git repository to be automatically created: {inputs.repository}?", | ||
default=False, | ||
qmark=qmark, | ||
).ask() |
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.
To remove ambiguity I'd suggest something like "Would you like nebari to create a remote repository on f{GIT-provider}?" <- however that variable is
qhub/cli/_init.py
Outdated
inputs.namespace = questionary.text( | ||
"What namespace would like to use?", | ||
default=inputs.namespace, | ||
qmark=qmark, | ||
).ask() |
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.
much better
LGTM, already!! I reviewed the code and couldn't find any flaws, once #1480 is integrated we can do the final review and merge (as the CI will be doing the end-to-end test for deploy and destroy) |
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.
I think we can merge for now - there are plenty of improvements and suggestions in #1478
* Update CI to use new nebari cli entrypoint * Add --disable-prompt to nebari init * Update name of keycloak subcommands * Reorder command * Update command * Minor update to test_e2e * Update hostname used for test_deployment * Another minor update to the tests_e2e * Add --disable-prompt to nebari destroy * use --disable-prompt in ci test * Update .github/workflows/kubernetes_test.yaml Co-authored-by: Vinicius D. Cerutti <[email protected]> * Update kubernetes_test.yaml * Update .github/workflows/kubernetes_test.yaml Co-authored-by: Tania Allard <[email protected]> * Update qhub/cli/main.py Co-authored-by: Tania Allard <[email protected]> * Fix yaml * Fix yaml again Co-authored-by: Vinicius D. Cerutti <[email protected]> Co-authored-by: Tania Allard <[email protected]>
Fixes #1372