Documentation
¶
Overview ¶
Package selectors provides selectors for filtering Kubernetes objects.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContainerSelector ¶
ContainerSelector is a function that determines if a container matches a specific criteria for mutation.
In the context of a Mutator Apply() pass, the selector is evaluated against the original container snapshot before any edits are applied. This ensures stable matching even if an earlier edit renames the container.
func AllContainers ¶
func AllContainers() ContainerSelector
AllContainers returns a ContainerSelector that matches all containers.
func ContainerAtIndex ¶
func ContainerAtIndex(index int) ContainerSelector
ContainerAtIndex returns a ContainerSelector that matches a container at the given index.
func ContainerNamed ¶
func ContainerNamed(name string) ContainerSelector
ContainerNamed returns a ContainerSelector that matches a container with the given name.
func ContainersNamed ¶
func ContainersNamed(names ...string) ContainerSelector
ContainersNamed returns a ContainerSelector that matches containers with any of the given names.