otaupdate

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: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StaticPod = "Node"
	DaemonPod = "DaemonSet"
)

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

Types

type OTAHandler

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

type OTAUpgrader added in v1.3.0

type OTAUpgrader interface {
	Apply() error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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