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.
Click to show internal directories.
Click to hide internal directories.