package format
import "k8s.io/kubernetes/pkg/kubelet/util/format"
Index ¶
- func Pod(pod *v1.Pod) string
- func PodDesc(podName, podNamespace string, podUID types.UID) string
- func PodWithDeletionTimestamp(pod *v1.Pod) string
- func ResourceList(resources v1.ResourceList) string
Functions ¶
func Pod ¶
Pod returns a string representing a pod in a consistent human readable format, with pod UID as part of the string.
func PodDesc ¶
PodDesc returns a string representing a pod in a consistent human readable format, with pod UID as part of the string.
func PodWithDeletionTimestamp ¶
PodWithDeletionTimestamp is the same as Pod. In addition, it prints the deletion timestamp of the pod if it's not nil.
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.25.0-beta.0
- Published
- Aug 4, 2022
- Platform
- js/wasm
- Imports
- 6 packages
- Last checked
- 14 minutes ago –
Tools for package owners.