clusterversion

package
v0.0.0-...-a45fa12 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Upgradeable

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

Upgradeable checks if clusterversion is upgradeable currently.

func NewUpgradeable

func NewUpgradeable(lister configv1listers.ClusterVersionLister) *Upgradeable

NewUpgradeable returns a new Upgradeable precondition check.

func (*Upgradeable) Name

func (pf *Upgradeable) Name() string

Name returns Name for the precondition.

func (*Upgradeable) Run

func (pf *Upgradeable) Run(ctx context.Context) error

Run runs the Upgradeable precondition. If the feature gate `key` is not found, or the api for clusterversion doesn't exist, this check is inert and always returns nil error. Otherwise, if Upgradeable condition is set to false in the object, it returns an PreconditionError when possible.

Jump to

Keyboard shortcuts

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