k8sutils

package
v0.0.0-...-5c7ffcf Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNodeHostname

func GetNodeHostname(node *v1.Node) string

func GetNodeIP

func GetNodeIP(node *v1.Node) string

func IsInitContainer

func IsInitContainer(pod *v1.Pod, containerLabels map[string]string) bool

IsInitContainer checks whether the container is the init container of the pod

func IsSandbox

func IsSandbox(containerName string, k8sContainerName string, labels map[string]string) bool

IsSandbox checks whether the container described by the input parameter is a pod's sandbox.

Types

This section is empty.

Jump to

Keyboard shortcuts

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