upgrade

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

Documentation

Index

Constants

View Source
const (
	DefaultStaticPodRunningCheckTimeout = 2 * time.Minute
)

Variables

View Source
var (
	DefaultConfigmapPath = "/data"
	DefaultManifestPath  = "/etc/kubernetes/manifests"
	DefaultUpgradePath   = "/tmp/manifests"
)

Functions

This section is empty.

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

func New

func New(name, namespace, manifest, mode string) *Controller

func NewWithOptions

func NewWithOptions(o *Options) (*Controller, error)

func (*Controller) AutoUpgrade

func (ctrl *Controller) AutoUpgrade() error

func (*Controller) OTAUpgrade

func (ctrl *Controller) OTAUpgrade() error

func (*Controller) Upgrade

func (ctrl *Controller) Upgrade() error

type Options

type Options struct {
	// contains filtered or unexported fields
}

Options has the information that required by static-pod-upgrade operation

func NewUpgradeOptions

func NewUpgradeOptions() *Options

NewUpgradeOptions creates a new Options

func (*Options) AddFlags

func (o *Options) AddFlags(fs *pflag.FlagSet)

AddFlags sets flags.

func (*Options) Validate

func (o *Options) Validate() error

Validate validates Options

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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