addons

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: Apache-2.0 Imports: 61 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ParamsEnvPrefix = "env:"
)

Variables

This section is empty.

Functions

func DeleteAddonByName added in v1.4.0

func DeleteAddonByName(s *state.State, addonName string) error

DeleteAddonByName deletes an addon by its name. It's required to keep the old addon manifest for this to work, however, it's enough to keep only metadata (i.e. spec is not needed). If the addon is not found in the addons directory, or if the addons are not enabled, it will search for the embedded addons.

func EmbeddedAddonsOnly added in v1.4.0

func EmbeddedAddonsOnly(addons *kubeoneapi.Addons) (bool, error)

EmbeddedAddonsOnly checks if all specified addons are embedded addons

func Ensure

func Ensure(s *state.State) error

func EnsureAddonByName added in v1.3.0

func EnsureAddonByName(s *state.State, addonName string) error

EnsureAddonByName deploys an addon by its name. If the addon is not found in the addons directory, or if the addons are not enabled, it will search for the embedded addons.

func EnsureUserAddons added in v1.3.0

func EnsureUserAddons(s *state.State) error

EnsureUserAddons deploys addons that are provided by the user and that are not embedded.

func EnsureUserAddonsByName added in v1.15.0

func EnsureUserAddonsByName(names ...string) func(s *state.State) error

EnsureUserAddonsByName returns a task that deploys only the named user addons, names that don't match a user addon are ignored (see ValidateAddonNames). Addons located in the root of the addons directory are not applied.

func List added in v1.4.0

func List(s *state.State, outputFormat string) error

func ValidateAddonNames added in v1.15.0

func ValidateAddonNames(s *state.State, names, installedReleases []string) error

ValidateAddonNames checks that every given name is either a user addon (defined in the manifest or in the addons directory), a helm release declared in the manifest, or one of the installedReleases, i.e. helm releases installed by KubeOne that can be uninstalled after they were removed from the manifest.

Types

This section is empty.

Jump to

Keyboard shortcuts

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