eksd

package
v0.16.3 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EksdChangeDiff

func EksdChangeDiff(currentSpec, newSpec *cluster.Spec) *types.ChangeDiff

Types

type EksdInstallerClient

type EksdInstallerClient interface {
	ApplyKubeSpecFromBytesWithNamespace(ctx context.Context, cluster *types.Cluster, data []byte, namespace string) error
}

type Installer

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

func NewEksdInstaller

func NewEksdInstaller(client EksdInstallerClient, reader Reader, opts ...InstallerOpt) *Installer

NewEksdInstaller constructs a new eks-d installer.

func (*Installer) InstallEksdCRDs

func (i *Installer) InstallEksdCRDs(ctx context.Context, clusterSpec *cluster.Spec, cluster *types.Cluster) error

func (*Installer) InstallEksdManifest

func (i *Installer) InstallEksdManifest(ctx context.Context, clusterSpec *cluster.Spec, cluster *types.Cluster) error

func (*Installer) SetRetrier added in v0.11.3

func (i *Installer) SetRetrier(retrier *retrier.Retrier)

SetRetrier allows to modify the internal retrier For unit testing purposes only. It is not thread safe.

type InstallerOpt added in v0.15.2

type InstallerOpt func(*Installer)

InstallerOpt allows to customize an eksd installer on construction.

func WithRetrier added in v0.15.2

func WithRetrier(retrier *retrier.Retrier) InstallerOpt

WithRetrier allows to use a custom retrier.

type Reader

type Reader interface {
	ReadFile(url string) ([]byte, error)
}

type Upgrader

type Upgrader struct {
	*Installer
}

func NewUpgrader

func NewUpgrader(client EksdInstallerClient, reader Reader, opts ...UpgraderOpt) *Upgrader

NewUpgrader constructs a new eks-d upgrader.

func (*Upgrader) Upgrade

func (u *Upgrader) Upgrade(ctx context.Context, cluster *types.Cluster, currentSpec, newSpec *cluster.Spec) (*types.ChangeDiff, error)

type UpgraderOpt added in v0.15.2

type UpgraderOpt = InstallerOpt

UpgraderOpt allows to customize an eksd upgrader on construction.

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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