Documentation
¶
Index ¶
- func EncodePods(podList *corev1.PodList) (data []byte, err error)
- func NewPod(podName, kind string) *corev1.Pod
- func NewPodWithCondition(podName, kind string, ready corev1.ConditionStatus) *corev1.Pod
- func RemoveNodeNameFromStaticPod(podname, nodename string) (bool, string)
- func SetPodUpgradeCondition(pod *corev1.Pod, ready corev1.ConditionStatus)
- func WriteErr(w http.ResponseWriter, errReason string, httpStatus int)
- func WriteJSONResponse(w http.ResponseWriter, data []byte)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodePods ¶
Derived from kubelet encodePods
func NewPodWithCondition ¶
func NewPodWithCondition(podName, kind string, ready corev1.ConditionStatus) *corev1.Pod
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.
Click to show internal directories.
Click to hide internal directories.