addons

package
v0.11.5 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package addons manages the default addons installations in the cluster. Addons are mostly Helm Charts, but can also be other resources as the project evolves. All of the AddOns must implement the AddOn interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddOn

type AddOn interface {
	Version() (map[string]string, error)
	HostPreflights() (*v1beta2.HostPreflightSpec, error)
	GenerateHelmConfig() ([]v1beta1.Chart, []v1beta1.Repository, error)
	Outro(context.Context, client.Client) error
}

AddOn is the interface that all addons must implement.

type Applier

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

Applier is an entity that applies (installs and updates) addons in the cluster.

func NewApplier

func NewApplier(opts ...Option) *Applier

NewApplier creates a new Applier instance with all addons registered.

func (*Applier) GenerateHelmConfigs

func (a *Applier) GenerateHelmConfigs() ([]v1beta1.Chart, []v1beta1.Repository, error)

GenerateHelmConfigs generates the helm config for all the embedded charts.

func (*Applier) HostPreflights

func (a *Applier) HostPreflights() (*v1beta2.HostPreflightSpec, error)

HostPreflights reads all embedded host preflights from all add-ons and returns them merged in a single HostPreflightSpec.

func (*Applier) Outro

func (a *Applier) Outro(ctx context.Context) error

Outro runs the outro in all enabled add-ons.

func (*Applier) Versions

func (a *Applier) Versions() (map[string]string, error)

Versions returns a map with the version of each addon that will be applied.

type Option

type Option func(*Applier)

Option sets and option on an Applier reference.

func Quiet

func Quiet() Option

Quiet disables logging for addons.

func WithConfig

func WithConfig(config v1beta1.ClusterConfig) Option

WithConfig sets the helm config for the addons.

func WithoutAddon

func WithoutAddon(addon string) Option

WithoutAddon disables an addon from being applied.

func WithoutPrompt

func WithoutPrompt() Option

WithoutPrompt disables the prompt before applying addons.

Directories

Path Synopsis
Package adminconsole manages the Kots Admin Console helm chart installation or upgrade in the cluster.
Package adminconsole manages the Kots Admin Console helm chart installation or upgrade in the cluster.
Package custom manages the installation of custom helm charts that have been embedded at the end of the embedded-cluster binary.
Package custom manages the installation of custom helm charts that have been embedded at the end of the embedded-cluster binary.
Package embeddedclusteroperator manages the installation of the embedded cluster operator chart.
Package embeddedclusteroperator manages the installation of the embedded cluster operator chart.
Package openebs manages the OpenEBS storage provisioner helm chart installation or upgrade in the cluster.
Package openebs manages the OpenEBS storage provisioner helm chart installation or upgrade in the cluster.

Jump to

Keyboard shortcuts

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