otaupdate

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPods

func GetPods(store cachemanager.StorageWrapper) http.Handler

GetPods return pod list

func HealthyCheck

func HealthyCheck(rest *rest.RestConfigManager, nodeName string, handler OTAHandler) http.Handler

HealthyCheck checks if cloud-edge is disconnected before ota update handle, ota update is not allowed when disconnected

func UpdatePod

func UpdatePod(clientset kubernetes.Interface, nodeName string) http.Handler

UpdatePod update a specifc pod(namespace/podname) to the latest version

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

type OTAHandler

type OTAHandler func(kubernetes.Interface, string) http.Handler

Jump to

Keyboard shortcuts

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