-
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add pid file creation for okteto up command. #860
Conversation
Codecov Report
@@ Coverage Diff @@
## master #860 +/- ##
==========================================
- Coverage 33.14% 33.13% -0.01%
==========================================
Files 67 67
Lines 5253 5275 +22
==========================================
+ Hits 1741 1748 +7
- Misses 3369 3381 +12
- Partials 143 146 +3
Continue to review full report at Codecov.
|
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.
Looks good! Minor comments added.
cmd/up.go
Outdated
if err != nil { | ||
return err | ||
} | ||
dev.Namespace = namespace |
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.
The namespace value might come from the namespace flag too.
dev.Namespace
is initialized at this point:
Line 230 in 67e1c71
} |
The
RunUp
logic is a bit messy, we need to refactor it. But you could bring the dev.Namespace
initialization logic here if needed
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.
Sorry, @pchico83 I'm a little bit confused because the referenced line is older than the current. Can you explain more?
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 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.
Got it, thanks.
Will do so 👍🏻
Signed-off-by: adhaamehab <adhaamehab.me@gmail.com>
@rberrelleza @pchico83 |
Thank you for your contribution. I've just checked and your commit doesn't appear to be signed-off. That's something we need before your Pull Request can be merged. Please see our contributing guide. |
Signed-off-by: adhaamehab <adhaamehab.me@gmail.com>
Signed-off-by: adhaamehab <adhaamehab.me@gmail.com>
Thanks for adding the test, looks great! |
Thank you for your contribution. I've just checked and your commit doesn't appear to be signed-off. That's something we need before your Pull Request can be merged. Please see our contributing guide. |
Signed-off-by: adhaamehab adhaamehab.me@gmail.com
Fixes #691
Proposed changes
namespace-deployment.pid
file at.okteto/
folder defined in the$OKTETOHOME
okteto up
finishesokteto.yml
file or--namespace
flag. we use the namespace provided by the k8s client