feat(QOV-1954): add --ephemeral flag with clone/debug modes to qovery shell#652
Open
Guimove wants to merge 3 commits into
Open
feat(QOV-1954): add --ephemeral flag with clone/debug modes to qovery shell#652Guimove wants to merge 3 commits into
Guimove wants to merge 3 commits into
Conversation
…mage When --ephemeral is passed, qovery shell creates a new temporary pod using the service's image and env vars instead of connecting to an existing pod. The pod is automatically deleted when the session ends. Depends on: rust-backend feat/ephemeral-shell (new /shell/ephemeral endpoint)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Jira: https://qovery.atlassian.net/browse/QOV-1954
Summary
--ephemeralflag toqovery shell--modeflag (cloneordebug) to control the ephemeral behavior--ephemeralis set, routes to/shell/ephemeralinstead of/shell/exec--mode clone(default): spawns a new isolated pod from the service image (Heroku-style, HIPAA-safe)--mode debug: injects an ephemeral container into an existing running pod (kubectl-debug style, shares network/PID namespace)--modeis set without--ephemeralUsage
Depends on
rust-backend MR !635 must be merged and deployed first: https://gitlab.com/qovery/backend/rust-backend/-/merge_requests/635
The new
/shell/ephemeralWebSocket endpoint is implemented there.Test plan
qovery shell(no flag) -- verify existing behavior unchangedqovery shell --ephemeral --mode clone-- interactive selection, verify new pod spawns and is deleted on exitqovery shell --ephemeral --mode clone-- pod deleted on Ctrl+Cqovery shell --ephemeral --mode debug-- verify ephemeral container injected into existing podqovery shell --ephemeral --mode clone --command python,manage.py,shell_plus-- custom commandqovery shell --mode clone(without --ephemeral) -- verify warning printed, normal shell opened--ephemeral --mode clone