management

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2022 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package management contains cluster management helpers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func K8sUpgradeCandidates

func K8sUpgradeCandidates(ctx context.Context, source string) ([]string, error)

K8sUpgradeCandidates fetches release list from the Github.

Types

type ClientProvider

type ClientProvider struct {
	// contains filtered or unexported fields
}

ClientProvider is a simple wrapper around talos clients managed by the runtime.

func NewUpgradeClientProvider

func NewUpgradeClientProvider(ctx context.Context, context *common.Context) (*ClientProvider, error)

NewUpgradeClientProvider creates new ClientProvider for the upgrade or management modules.

func (*ClientProvider) Client

func (cp *ClientProvider) Client(endpoints ...string) (*client.Client, error)

Client implements cluster.ClientProvider.

func (*ClientProvider) Close

func (cp *ClientProvider) Close() error

Close implements cluster.ClientProvider.

Jump to

Keyboard shortcuts

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