Documentation ¶
Index ¶
- Constants
- type Config
- type Upgrader
- func (u *Upgrader) DeployPlans(ctx *program.Context, ns *corev1.Namespace, prov *kubernetes.Provider, ...) error
- func (u *Upgrader) Enabled() bool
- func (u *Upgrader) Helm() *helm.Config
- func (u *Upgrader) Manage(ctx *program.Context, prov *kubernetes.Provider, mgmt *manager.ClusterManager) error
- func (u *Upgrader) Name() string
- func (u *Upgrader) SetHelm(h *helm.Config)
- func (u *Upgrader) Supported(distr string) bool
- func (u *Upgrader) Version() string
Constants ¶
View Source
const ( ControlPlanNodesPlanName = "k3s-control-plane-nodes" AgentNodesPlanName = "k3s-agent-nodes" )
View Source
const ( Name = "k3s-upgrade-controller" // ControlLabelKey is a label key to use for enabling k3s-upgrade-controller for specific node. ControlLabelKey = "k3s-upgrade" )
View Source
const (
Namespace = "system-upgrade"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Enabled bool Helm *helm.Config // Version is a version to use for the upgrade. Conflicts with Channel. TargetVersion string `json:"target-version" yaml:"target-version"` // Channel is a channel to use for the upgrade. Conflicts with Version. TargetChannel string `json:"target-channel" yaml:"target-channel"` // ConfigEnv is a map of environment variables to pass to the controller. ConfigEnv []string `json:"config-env" yaml:"config-env"` }
type Upgrader ¶
type Upgrader struct {
// contains filtered or unexported fields
}
func (*Upgrader) DeployPlans ¶
func (*Upgrader) Manage ¶
func (u *Upgrader) Manage(ctx *program.Context, prov *kubernetes.Provider, mgmt *manager.ClusterManager) error
Click to show internal directories.
Click to hide internal directories.