util

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncodePods

func EncodePods(podList *corev1.PodList) (data []byte, err error)

Derived from kubelet encodePods

func NewPod

func NewPod(podName, kind string) *corev1.Pod

func NewPodWithCondition

func NewPodWithCondition(podName, kind string, ready corev1.ConditionStatus) *corev1.Pod

func RemoveNodeNameFromStaticPod

func RemoveNodeNameFromStaticPod(podname, nodename string) (bool, string)

func SetPodUpgradeCondition

func SetPodUpgradeCondition(pod *corev1.Pod, ready corev1.ConditionStatus)

func WriteErr

func WriteErr(w http.ResponseWriter, errReason string, httpStatus int)

WriteErr writes the http status and the error string on the response

func WriteJSONResponse

func WriteJSONResponse(w http.ResponseWriter, data []byte)

Derived from kubelet writeJSONResponse

Types

This section is empty.

Jump to

Keyboard shortcuts

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