Documentation ¶
Index ¶
- func HasKubernetesFileExtension(n string) bool
- func IsKubernetesManifest(file string) bool
- func ParseImagesFromKubernetesYaml(filepath string) ([]string, error)
- func TopLevelOwnerKey(ctx context.Context, obj metav1.Object, kind string) string
- func WaitForDeploymentToStabilize(ctx context.Context, c kubernetes.Interface, ns, name string, ...) error
- func WaitForPodInitialized(ctx context.Context, pods corev1.PodInterface, podName string) error
- func WaitForPodSucceeded(ctx context.Context, pods corev1.PodInterface, podName string, ...) error
- type ColorPicker
- type ImageList
- type PodEvent
- type PodSelector
- type PodWatcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasKubernetesFileExtension ¶ added in v1.4.0
HasKubernetesFileExtension is for determining if a file under a glob pattern is deployable file format. It makes no attempt to check whether or not the file is actually deployable or has the correct contents.
func IsKubernetesManifest ¶ added in v1.4.0
IsKubernetesManifest is for determining if a file is a valid Kubernetes manifest
func ParseImagesFromKubernetesYaml ¶ added in v1.4.0
ParseImagesFromKubernetesYaml parses the kubernetes yamls, and if it finds at least one valid Kubernetes object, it will return the images referenced in them.
func TopLevelOwnerKey ¶ added in v0.37.0
TopLevelOwnerKey returns a key associated with the top level owner of a Kubernetes resource in the form Kind-Name
func WaitForDeploymentToStabilize ¶ added in v0.3.0
func WaitForDeploymentToStabilize(ctx context.Context, c kubernetes.Interface, ns, name string, timeout time.Duration) error
WaitForDeploymentToStabilize waits until the Deployment has a matching generation/replica count between spec and status.
func WaitForPodInitialized ¶ added in v0.16.0
WaitForPodInitialized waits until init containers have started running
func WaitForPodSucceeded ¶ added in v0.32.0
func WaitForPodSucceeded(ctx context.Context, pods corev1.PodInterface, podName string, timeout time.Duration) error
WaitForPodSucceeded waits until the Pod status is Succeeded.
Types ¶
type ColorPicker ¶ added in v0.4.0
ColorPicker is used to associate colors for with pods so that the container logs can be output to the terminal with a consistent color being used to identify logs from each pod.
func NewColorPicker ¶ added in v0.4.0
func NewColorPicker() ColorPicker
NewColorPicker creates a new ColorPicker. For each artifact, a color will be selected sequentially from `colorCodes`. If all colors are used, the first color will be used again. The formatter for the associated color will then be returned by `Pick` each time it is called for the artifact and can be used to write to out in that color.
type ImageList ¶ added in v0.4.0
ImageList implements PodSelector based on a list of images names.
func NewImageList ¶ added in v0.4.0
func NewImageList() *ImageList
NewImageList creates a new ImageList.
type PodSelector ¶ added in v0.4.0
PodSelector is used to choose which pods to log.
type PodWatcher ¶ added in v0.14.0
func NewPodWatcher ¶ added in v1.7.1
func NewPodWatcher(podSelector PodSelector) PodWatcher