k3supgrader

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

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 New

func New(cfg *Config) *Upgrader

func (*Upgrader) DeployPlans

func (u *Upgrader) DeployPlans(ctx *program.Context, ns *corev1.Namespace, prov *kubernetes.Provider, deps pulumi.ResourceArrayOutput, nodes map[string]*manager.Node) error

func (*Upgrader) Enabled

func (u *Upgrader) Enabled() bool

func (*Upgrader) Helm

func (u *Upgrader) Helm() *helm.Config

func (*Upgrader) Manage

func (u *Upgrader) Manage(ctx *program.Context, prov *kubernetes.Provider, mgmt *manager.ClusterManager) error

func (*Upgrader) Name

func (u *Upgrader) Name() string

func (*Upgrader) SetHelm

func (u *Upgrader) SetHelm(h *helm.Config)

func (*Upgrader) Supported

func (u *Upgrader) Supported(distr string) bool

func (*Upgrader) Version

func (u *Upgrader) Version() string

Jump to

Keyboard shortcuts

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