sidecars

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Stop

func Stop(pod *corev1.Pod, nopImage string, updatePod UpdatePod) error

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

type GetPod

type GetPod func(string, metav1.GetOptions) (*corev1.Pod, error)

type UpdatePod

type UpdatePod func(*corev1.Pod) (*corev1.Pod, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL