Documentation ¶
Index ¶
- func AddKubernetesAPIBlackhole(pods *v1.PodList, containerName string)
- func DeleteKubernetesAPIBlackhole(pods *v1.PodList, containerName string)
- func ForwardPorts(pod *k8sv1.Pod, ports []string, stop chan struct{}, readyTimeout time.Duration) error
- func GetCertsForPods(labelSelector, namespace, port string) ([][]byte, error)
- func GetPodByVirtualMachineInstance(vmi *v1.VirtualMachineInstance, namespace string) (*k8sv1.Pod, error)
- func GetRunningPodByLabel(label, labelType, namespace, node string) (*k8sv1.Pod, error)
- func LookupComputeContainer(pod *v1.Pod) *v1.Container
- func LookupComputeContainerFromVmi(vmi *virtv1.VirtualMachineInstance) (*v1.Container, error)
- func LookupContainer(pod *v1.Pod, containerName string) *v1.Container
- func RenderHostPathPod(podName, dir string, hostPathType v1.HostPathType, ...) *v1.Pod
- func RenderPod(name string, cmd, args []string) *v1.Pod
- func RenderPrivilegedPod(name string, cmd, args []string) *v1.Pod
- func RenderTargetcliPod(name, disksPVC string) *v1.Pod
- type PodsByCreationTimestamp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddKubernetesAPIBlackhole ¶ added in v1.3.0
func DeleteKubernetesAPIBlackhole ¶ added in v1.3.0
func ForwardPorts ¶ added in v1.3.0
func GetCertsForPods ¶ added in v1.3.0
GetCertsForPods returns the used certificates for all pods matching the label selector
func GetPodByVirtualMachineInstance ¶ added in v1.3.0
func GetRunningPodByLabel ¶
func LookupComputeContainer ¶ added in v1.3.0
func LookupComputeContainerFromVmi ¶ added in v1.3.0
func LookupComputeContainerFromVmi(vmi *virtv1.VirtualMachineInstance) (*v1.Container, error)
func LookupContainer ¶ added in v1.3.0
func RenderHostPathPod ¶
func RenderHostPathPod( podName, dir string, hostPathType v1.HostPathType, mountPropagation v1.MountPropagationMode, cmd, args []string, ) *v1.Pod
func RenderTargetcliPod ¶
Types ¶
type PodsByCreationTimestamp ¶
PodsByCreationTimestamp sorts a list of Pods by creation timestamp, using their names as a tie breaker.
func (PodsByCreationTimestamp) Len ¶
func (o PodsByCreationTimestamp) Len() int
func (PodsByCreationTimestamp) Less ¶
func (o PodsByCreationTimestamp) Less(i, j int) bool
func (PodsByCreationTimestamp) Swap ¶
func (o PodsByCreationTimestamp) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.