kubernetes

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2022 License: MPL-2.0 Imports: 43 Imported by: 0

Documentation

Overview

Package kubernetes provides cluster-wide kubernetes utilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetectLowestVersion added in v0.12.0

func DetectLowestVersion(ctx context.Context, cluster UpgradeProvider, options UpgradeOptions) (string, error)

DetectLowestVersion returns lowest Kubernetes components versions in the cluster.

func UpgradeTalosManaged added in v0.9.0

func UpgradeTalosManaged(ctx context.Context, cluster UpgradeProvider, options UpgradeOptions) error

UpgradeTalosManaged the Kubernetes control plane.

Types

type UpgradeOptions added in v0.8.0

type UpgradeOptions struct {
	FromVersion string
	ToVersion   string

	ControlPlaneEndpoint string
	LogOutput            io.Writer
	UpgradeKubelet       bool
	DryRun               bool
	// contains filtered or unexported fields
}

UpgradeOptions represents Kubernetes control plane upgrade settings.

func (*UpgradeOptions) Log added in v0.12.0

func (options *UpgradeOptions) Log(line string, args ...interface{})

Log writes the line to logger or to stdout if no logger was provided.

func (*UpgradeOptions) Path added in v0.10.0

func (options *UpgradeOptions) Path() string

Path returns upgrade path in a form "FromMajor.FromMinor->ToMajor.ToMinor" (e.g. "1.20->1.21"), or empty string, if one or both versions can't be parsed.

type UpgradeProvider added in v0.9.0

type UpgradeProvider interface {
	cluster.ClientProvider
	cluster.K8sProvider
}

UpgradeProvider are the cluster interfaces required by upgrade process.

Jump to

Keyboard shortcuts

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