Documentation ¶
Overview ¶
Package upgrade provides some functions related to Kubernetes upgrades.
Index ¶
- type Checks
- type ComponentItem
- type ComponentRemovedItemsError
- func (e ComponentRemovedItemsError) Error() string
- func (e ComponentRemovedItemsError) ErrorOrNil() error
- func (e *ComponentRemovedItemsError) PopulateRemovedAPIResources(ctx context.Context, k8sConfig *rest.Config, removedAPIResources []string) error
- func (e *ComponentRemovedItemsError) PopulateRemovedAdmissionPlugins(node, component string, cliFlags []string, removedAdmissionPlugins []string)
- func (e *ComponentRemovedItemsError) PopulateRemovedCLIFlags(node, component string, cliFlags []string, removedFlags []string)
- func (e *ComponentRemovedItemsError) PopulateRemovedFeatureGates(node, component string, cliFlags []string, removedFeatureGates []string)
- type Path
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Checks ¶
type Checks struct {
// contains filtered or unexported fields
}
Checks is a set of checks to run before upgrading k8s components.
type ComponentItem ¶
ComponentItem represents a component item.
type ComponentRemovedItemsError ¶
type ComponentRemovedItemsError struct { AdmissionFlags []ComponentItem CLIFlags []ComponentItem FeatureGates []ComponentItem APIResources map[string]int }
ComponentRemovedItemsError is an error type for removed items.
func (ComponentRemovedItemsError) Error ¶
func (e ComponentRemovedItemsError) Error() string
Error returns the error message.
func (ComponentRemovedItemsError) ErrorOrNil ¶
func (e ComponentRemovedItemsError) ErrorOrNil() error
ErrorOrNil returns the error if it exists.
func (*ComponentRemovedItemsError) PopulateRemovedAPIResources ¶
func (e *ComponentRemovedItemsError) PopulateRemovedAPIResources(ctx context.Context, k8sConfig *rest.Config, removedAPIResources []string) error
PopulateRemovedAPIResources populates the removed API resources.
func (*ComponentRemovedItemsError) PopulateRemovedAdmissionPlugins ¶
func (e *ComponentRemovedItemsError) PopulateRemovedAdmissionPlugins(node, component string, cliFlags []string, removedAdmissionPlugins []string)
PopulateRemovedAdmissionPlugins populates the removed admission plugins.
func (*ComponentRemovedItemsError) PopulateRemovedCLIFlags ¶
func (e *ComponentRemovedItemsError) PopulateRemovedCLIFlags(node, component string, cliFlags []string, removedFlags []string)
PopulateRemovedCLIFlags populates the removed flags.
func (*ComponentRemovedItemsError) PopulateRemovedFeatureGates ¶
func (e *ComponentRemovedItemsError) PopulateRemovedFeatureGates(node, component string, cliFlags []string, removedFeatureGates []string)
PopulateRemovedFeatureGates populates the removed feature gates.
type Path ¶
type Path struct {
// contains filtered or unexported fields
}
Path encodes the upgrade path.
func (*Path) FromVersion ¶
FromVersion returns the from version.
func (*Path) IsSupported ¶
IsSupported returns true if the upgrade path is supported.