Skip to content

Commit

Permalink
fix(ctrl): use builtin command kill
Browse files Browse the repository at this point in the history
The builder Pods may not have a /bin/kill command, but do have a builtin shell kill command available.

Closes apache#4241
  • Loading branch information
squakez committed Jun 5, 2023
1 parent 9bec4db commit 996ffea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/build/monitor_pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ func (action *monitorPodAction) sigterm(pod *corev1.Pod) error {

r.VersionedParams(&corev1.PodExecOptions{
Container: container.Name,
Command: []string{"kill", "-SIGTERM", "1"},
Command: []string{"/bin/bash", "-c", "kill -SIGTERM 1"},
Stdout: true,
Stderr: true,
TTY: false,
Expand Down

0 comments on commit 996ffea

Please sign in to comment.