addons

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 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 {
	Apply(ctx context.Context) error
	Version() (map[string]string, error)
	HostPreflights() (*v1beta2.HostPreflightSpec, 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) Apply

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

Apply applies all registered addons to the cluster. Simply calls Apply on each addon.

func (*Applier) HostPreflights added in v0.6.0

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) Versions added in v0.3.0

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

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

type Option added in v0.6.0

type Option func(*Applier)

Option sets and option on an Applier reference.

func Quiet added in v0.6.0

func Quiet() Option

Quiet disables logging for addons.

func WithoutAddon added in v0.6.0

func WithoutAddon(addon string) Option

WithoutAddon disables an addon from being applied.

func WithoutPrompt added in v0.6.0

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.
charts
Package charts embeds all static tgz files in this directory.
Package charts embeds all static tgz files in this directory.
Package custom manages the installation of custom helm charts that have been embedded at the end of the helmvm binary.
Package custom manages the installation of custom helm charts that have been embedded at the end of the helmvm binary.
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.
charts
Package charts embeds all static tgz files in this directory.
Package charts embeds all static tgz files in this directory.

Jump to

Keyboard shortcuts

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