k8s

package
v0.0.0-...-c3677c5 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(ctx context.Context, url string) ([]byte, error)

func GetPod

func GetPod(ctx context.Context, url string, args Args) (*corev1.Pod, error)

func PodKey

func PodKey(pod *corev1.Pod) string

func ToPodList

func ToPodList(body []byte) (*corev1.PodList, error)

Types

type Args

type Args struct {
	types.CommonArgs

	K8S_POD_NAME               types.UnmarshallableString // nolint:golint
	K8S_POD_NAMESPACE          types.UnmarshallableString // nolint:golint
	K8S_POD_INFRA_CONTAINER_ID types.UnmarshallableString // nolint:golint
}

Refer https://github.com/kubernetes/kubernetes/blob/master/pkg/kubelet/dockershim/network/cni/cni.go#L392

Jump to

Keyboard shortcuts

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