-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
fix(executor): Fix emissary kill. Fixes #6030 #6084
Conversation
Signed-off-by: Alex Collins <alex_collins@intuit.com>
func SignalContainer(restConfig *rest.Config, namespace string, pod string, container string, s syscall.Signal) error { | ||
return ExecPodContainerAndGetOutput(restConfig, namespace, pod, container, "/bin/sh", "-c", fmt.Sprintf("kill -s%d -- -1", s)) | ||
func SignalContainer(restConfig *rest.Config, pod *corev1.Pod, container string, s syscall.Signal) error { | ||
command := []string{"/bin/sh", "-c", "kill -%d 1"} |
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.
this line changes the default kill cmd
@@ -20,6 +38,13 @@ func ExecPodContainerAndGetOutput(restConfig *rest.Config, namespace string, pod | |||
return err | |||
} | |||
stdout, stderr, err := common.GetExecutorOutput(x) | |||
log.WithFields(log.Fields{"stdout": stdout, "stderr": stderr}).WithError(err).Debug() | |||
log. |
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.
extra logging
Codecov Report
@@ Coverage Diff @@
## master #6084 +/- ##
==========================================
+ Coverage 47.70% 47.75% +0.04%
==========================================
Files 249 249
Lines 15739 15740 +1
==========================================
+ Hits 7509 7516 +7
+ Misses 7287 7284 -3
+ Partials 943 940 -3
Continue to review full report at Codecov.
|
@whynowy please review? |
Does it fix the issue #6030? It looks like the user says it's still not working. |
@rwong2888 is using an RC with does not have this fix on it. |
Signed-off-by: Alex Collins alex_collins@intuit.com
Fixes #6030