kindnetd

package
v0.19.9 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	ApplyKubeSpecFromBytes(ctx context.Context, cluster *types.Cluster, data []byte) error
}

Client allows to interact with the Kubernetes API.

type Installer added in v0.13.0

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

Installer allows to configure kindnetd in a cluster.

func NewInstaller added in v0.13.0

func NewInstaller(client Client, reader manifests.FileReader) *Installer

NewInstaller constructs a new Installer.

func (*Installer) Install added in v0.13.0

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

Install configures kindnetd in an EKS-A cluster.

type InstallerForSpec added in v0.13.0

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

InstallerForSpec allows to configure kindnetd for a particular EKS-A cluster It's a stateful version of installer, with a fixed Cilium config.

func NewInstallerForSpec added in v0.13.0

func NewInstallerForSpec(client Client, reader manifests.FileReader, spec *cluster.Spec) *InstallerForSpec

NewInstallerForSpec constructs a new InstallerForSpec.

func (*InstallerForSpec) Install added in v0.13.0

func (i *InstallerForSpec) Install(ctx context.Context, cluster *types.Cluster) error

Install installs kindnetd in an cluster.

type Kindnetd

type Kindnetd struct {
	*Upgrader
	*Installer
}

Kindnetd allows to install and upgrade kindnetd in a an EKS-A cluster.

func NewKindnetd

func NewKindnetd(client Client, reader manifests.FileReader) *Kindnetd

NewKindnetd constructs a new Kindnetd.

func (*Kindnetd) Install added in v0.13.0

func (c *Kindnetd) Install(ctx context.Context, cluster *types.Cluster, spec *cluster.Spec, _ []string) error

Install install kindnetd CNI in an eks-a docker cluster.

type Upgrader

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

Upgrader allows to upgrade a kindnetd installation in a EKS-A cluster.

func NewUpgrader

func NewUpgrader(client Client, reader manifests.FileReader) *Upgrader

NewUpgrader constructs a new Upgrader.

func (Upgrader) RunPostControlPlaneUpgradeSetup added in v0.13.0

func (u Upgrader) RunPostControlPlaneUpgradeSetup(_ context.Context, _ *types.Cluster) error

RunPostControlPlaneUpgradeSetup satisfies the clustermanager.Networking interface. It is a noop for kindnetd.

func (Upgrader) Upgrade

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

Upgrade configures a kindnetd installation to match the desired state in the cluster Spec.

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