-
Notifications
You must be signed in to change notification settings - Fork 311
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
okteto exec to work the same as kubectl exec #4289
Conversation
Signed-off-by: Javier Lopez <[email protected]>
Signed-off-by: Javier Lopez <[email protected]>
Signed-off-by: Javier Lopez <[email protected]>
Signed-off-by: Javier Lopez <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #4289 +/- ##
==========================================
+ Coverage 43.10% 43.35% +0.24%
==========================================
Files 371 375 +4
Lines 30021 30138 +117
==========================================
+ Hits 12940 13065 +125
+ Misses 15954 15943 -11
- Partials 1127 1130 +3 |
Signed-off-by: Javier Lopez <[email protected]>
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.
Great work 馃憦 Code changes LGTM. I've tested different scenarios and everything worked for me besides the following:
- Using: https://github.com/andreafalzetti/hybrid-test
okteto up
- once the up session is up & running in another terminal run:
okteto exec hybridapp -l debug -- time
- notice how the command "time" is not executed. I've tried with
touch file.txt
too and it seems like it's a problem of not executing the command instead of a problem of "output".
Update
As we noticed offline, it only seems to be related to time
. Other commands execute corretly.
Signed-off-by: Javier Lopez <[email protected]>
Signed-off-by: Javier Lopez <[email protected]>
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.
There is nothing blocker but some comments would be good to address
Signed-off-by: Javier Lopez <[email protected]>
Signed-off-by: Javier Lopez <[email protected]>
Signed-off-by: Javier Lopez <[email protected]>
Signed-off-by: Javier Lopez <[email protected]>
Signed-off-by: Javier Lopez <[email protected]>
Signed-off-by: Javier Lopez <[email protected]>
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.
Do we have some e2e test for the exec
command?
Signed-off-by: Javier Lopez <[email protected]>
Signed-off-by: Javier Lopez <[email protected]>
Signed-off-by: Javier Lopez <[email protected]>
Not a dedicated one right now. We're checking if the stignore is created in the remote by using okteto exec on all okteto ups, but we don't have a dedicated one. I'll create two, one for autocreate and another one for the normal flow |
Signed-off-by: Javier Lopez <[email protected]>
Signed-off-by: Javier Lopez <[email protected]>
Signed-off-by: Javier Lopez <[email protected]>
Signed-off-by: Javier Lopez <[email protected]>
Signed-off-by: Javier Lopez <[email protected]>
Signed-off-by: Javier Lopez <[email protected]>
DEV-327
Proposed changes
In this PR we've addressed that
okteto exec
was behaving different tokubectl exec
. Also we didn't have any test for that command, which now we can have.kubectl exec
andokteto exec
. We still maintain the selector in case the user has more than one dev environment and doesn麓t add it to the argumentsHow to validate
okteto up
on any okteto configured repositoryokteto exec name -- echo test
and check that is workingokteto exec name -- "echo test"
and observe an errorCLI Quality Reminders 馃敡
For both authors and reviewers: