kubernetesk8s.io/kubernetes/pkg/kubelet/util/format Index | Files

package format

import "k8s.io/kubernetes/pkg/kubelet/util/format"

Index

Functions

func Pod

func Pod(pod *v1.Pod) string

Pod returns a string representing a pod in a consistent human readable format, with pod UID as part of the string.

func PodDesc

func PodDesc(podName, podNamespace string, podUID types.UID) string

PodDesc returns a string representing a pod in a consistent human readable format, with pod UID as part of the string.

func PodWithDeletionTimestamp

func PodWithDeletionTimestamp(pod *v1.Pod) string

PodWithDeletionTimestamp is the same as Pod. In addition, it prints the deletion timestamp of the pod if it's not nil.

func Pods

func Pods(pods []*v1.Pod) []klog.ObjectRef

Pods returns a list of pods as ObjectRef

func ResourceList

func ResourceList(resources v1.ResourceList) string

ResourceList returns a string representation of a resource list in a human readable format.

Source Files

pod.go resources.go

Version
v1.22.3-rc.0
Published
Sep 15, 2021
Platform
js/wasm
Imports
7 packages
Last checked
24 seconds ago

Tools for package owners.