pods

package
v1.27.3 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: Apache-2.0 Imports: 4 Imported by: 62

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertDownwardAPIFieldLabel

func ConvertDownwardAPIFieldLabel(version, label, value string) (string, string, error)

ConvertDownwardAPIFieldLabel converts the specified downward API field label and its value in the pod of the specified version to the internal version, and returns the converted label and value. This function returns an error if the conversion fails.

func VisitContainersWithPath added in v1.16.0

func VisitContainersWithPath(podSpec *api.PodSpec, specPath *field.Path, visitor ContainerVisitorWithPath) bool

VisitContainersWithPath invokes the visitor function with a pointer to the spec of every container in the given pod spec and the field.Path to that container. If visitor returns false, visiting is short-circuited. VisitContainersWithPath returns true if visiting completes, false if visiting was short-circuited.

Types

type ContainerVisitorWithPath added in v1.16.0

type ContainerVisitorWithPath func(container *api.Container, path *field.Path) bool

ContainerVisitorWithPath is called with each container and the field.Path to that container, and returns true if visiting should continue.

Jump to

Keyboard shortcuts

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