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

feat: run tutor k8s exec ... commands with multiple args #637

Merged
merged 1 commit into from
Apr 15, 2022

Conversation

regisb
Copy link
Contributor

@regisb regisb commented Apr 12, 2022

Previously, the k8s exec command did not support unknown "--options". This
made it impossible to launch, say, a django shell in the lms container.

While implementing this feature we saw an opportunity to simplify the way jobs
are handled in the k8s commands.

Close #636.
Another related issue is: openedx-unsupported/wg-developer-experience#52

@regisb
Copy link
Contributor Author

regisb commented Apr 12, 2022

this is ready for review @overhangio/tutor-developers. cc @kdmccormick.

Copy link
Collaborator

@kdmccormick kdmccormick left a comment

Choose a reason for hiding this comment

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

LGTM, with a couple notes:

  • The workaround to this issue that I had been using was to to wrap the command and its args in quotes, e.g. tutor k8s exec "ls -l". This PR "breaks" that workaround (which is totally fine with me), but consider marking it a breaking change in the changelog. Up to you.
  • #636 raises two issues. This PR solves one of them, but the second issue (DJANGO_DEBUG_TOOLBAR not being set) still exists, and is a problem for tutor [dev|local] exec as well. I think we should open a new issue to track it. I had proposed a potential solution in this comment.

Previously, the `k8s exec` command did not support unknown "--options". This
made it impossible to launch, say, a django shell in the lms container.

While implementing this feature we saw an opportunity to simplify the way jobs
are handled in the k8s commands.

Close #636.
Another related issue is: openedx-unsupported/wg-developer-experience#52
@regisb
Copy link
Contributor Author

regisb commented Apr 14, 2022

Good points @kdmccormick. I modified the changelog to indicate a breaking change.

Indeed, this in itself does not resolve the DJANGO_DEBUG_TOOLBAR error raised in #636. I'll comment there.

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.

Error while executing commands inside service pods as per the documentation
2 participants