upgrader

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

Documentation

Index

Constants

View Source
const OTA = "OTA"

Variables

View Source
var (
	DefaultUpgradePath = "/tmp/manifests"
)

Functions

func PreCheck

func PreCheck(name, nodename, namespace string, c kubernetes.Interface) (bool, string, error)

Types

type DaemonPodUpgrader

type DaemonPodUpgrader struct {
	kubernetes.Interface
	types.NamespacedName
}

func (*DaemonPodUpgrader) Apply

func (s *DaemonPodUpgrader) Apply() error

Apply execute pod update process by deleting pod under OnDelete update strategy

type StaticPodUpgrader

type StaticPodUpgrader struct {
	kubernetes.Interface
	types.NamespacedName
	// Name format of static pod is `staticName-nodeName`
	StaticName string
}

func (*StaticPodUpgrader) Apply

func (s *StaticPodUpgrader) Apply() error

Jump to

Keyboard shortcuts

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