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

fix(executor): Fix emissary kill. Fixes #6030 #6084

Merged
merged 4 commits into from
Jun 8, 2021
Merged

fix(executor): Fix emissary kill. Fixes #6030 #6084

merged 4 commits into from
Jun 8, 2021

Conversation

alexec
Copy link
Contributor

@alexec alexec commented Jun 3, 2021

Signed-off-by: Alex Collins alex_collins@intuit.com
Fixes #6030

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"}
Copy link
Contributor Author

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.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

extra logging

@codecov
Copy link

codecov bot commented Jun 3, 2021

Codecov Report

Merging #6084 (1983afe) into master (e7808af) will increase coverage by 0.04%.
The diff coverage is 0.00%.

❗ Current head 1983afe differs from pull request most recent head b0b6b30. Consider uploading reports for the commit b0b6b30 to get more accurate results
Impacted file tree graph

@@            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     
Impacted Files Coverage Δ
workflow/common/common.go 75.00% <0.00%> (-25.00%) ⬇️
workflow/controller/controller.go 20.61% <0.00%> (ø)
workflow/controller/operator.go 71.02% <0.00%> (+0.27%) ⬆️
cmd/argo/commands/get.go 57.09% <0.00%> (+0.64%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7c55ef5...b0b6b30. Read the comment docs.

@alexec alexec marked this pull request as ready for review June 8, 2021 15:33
@alexec
Copy link
Contributor Author

alexec commented Jun 8, 2021

@whynowy please review?

@alexec alexec enabled auto-merge (squash) June 8, 2021 15:34
@whynowy
Copy link
Member

whynowy commented Jun 8, 2021

Does it fix the issue #6030? It looks like the user says it's still not working.

@alexec
Copy link
Contributor Author

alexec commented Jun 8, 2021

@rwong2888 is using an RC with does not have this fix on it.

@alexec alexec merged commit 1533dd4 into master Jun 8, 2021
@alexec alexec deleted the dev-emissary branch June 8, 2021 17:22
@alexec alexec mentioned this pull request Jun 10, 2021
20 tasks
@sarabala1979 sarabala1979 mentioned this pull request Jun 10, 2021
88 tasks
alexec added a commit that referenced this pull request Jun 10, 2021
Signed-off-by: Alex Collins <alex_collins@intuit.com>
@alexec alexec mentioned this pull request Jun 21, 2021
16 tasks
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.

pns executor w/ security context not working with vault injector
2 participants