Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Stop ¶
Stop stops all sidecar containers inside a pod. A container is considered to be a sidecar if it is currently running. This func is only expected to be called after a TaskRun completes and all Step containers Step containers have already stopped.
A sidecar is killed by replacing its current container image with the nop image, which in turn quickly exits. If the sidecar defines a command then it will exit with a non-zero status. When we check for TaskRun success we have to check for the containers we care about - not the final Pod status.
Types ¶
Click to show internal directories.
Click to hide internal directories.