addons

package
v1.33.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 44 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Addons = []*Addon{
	{
		// contains filtered or unexported fields
	},

	{
		// contains filtered or unexported fields
	},

	{
		// contains filtered or unexported fields
	},
	{
		// contains filtered or unexported fields
	},
	{
		// contains filtered or unexported fields
	},
	{
		// contains filtered or unexported fields
	},
	{
		// contains filtered or unexported fields
	},
	{
		// contains filtered or unexported fields
	},
	{
		// contains filtered or unexported fields
	},
	{
		// contains filtered or unexported fields
	},
	{
		// contains filtered or unexported fields
	},
	{
		// contains filtered or unexported fields
	},
	{
		// contains filtered or unexported fields
	},
	{
		// contains filtered or unexported fields
	},
	{
		// contains filtered or unexported fields
	},
	{
		// contains filtered or unexported fields
	},
	{
		// contains filtered or unexported fields
	},
	{
		// contains filtered or unexported fields
	},
	{
		// contains filtered or unexported fields
	},
	{
		// contains filtered or unexported fields
	},
	{
		// contains filtered or unexported fields
	},
	{
		// contains filtered or unexported fields
	},
	{
		// contains filtered or unexported fields
	},
	{
		// contains filtered or unexported fields
	},
	{
		// contains filtered or unexported fields
	},
	{
		// contains filtered or unexported fields
	},
	{
		// contains filtered or unexported fields
	},
	{
		// contains filtered or unexported fields
	},
	{
		// contains filtered or unexported fields
	},
	{
		// contains filtered or unexported fields
	},
	{
		// contains filtered or unexported fields
	},
	{
		// contains filtered or unexported fields
	},
	{
		// contains filtered or unexported fields
	},
	{
		// contains filtered or unexported fields
	},
	{
		// contains filtered or unexported fields
	},
	{
		// contains filtered or unexported fields
	},
	{
		// contains filtered or unexported fields
	},
	{
		// contains filtered or unexported fields
	},
}

Addons is a list of all addons

View Source
var ErrSkipThisAddon = errors.New("skipping this addon")

ErrSkipThisAddon is a special error that tells us to not error out, but to also not mark the addon as enabled

View Source
var Force = false

Force is used to override checks for addons

View Source
var Refresh = false

Refresh is used to refresh pods in specific cases when an addon is enabled Currently only used for gcp-auth

Functions

func Deprecations added in v1.28.0

func Deprecations(name string) (bool, string, string)

Deprecations if the selected addon is deprecated return the replacement addon, otherwise return the passed in addon

func Enable added in v1.29.0

func Enable(wg *sync.WaitGroup, cc *config.ClusterConfig, toEnable map[string]bool, enabled chan<- []string)

Enable tries to enable the default addons for a profile plus any additional, and returns a single slice of all successfully enabled addons via channel (thread-safe). Since Enable is called asynchronously (so is not thread-safe for concurrent addons map updating/reading), to avoid race conditions, ToEnable should be called synchronously before Enable to get complete list of addons to enable, and UpdateConfig should be called synchronously after Enable to update the config with successfully enabled addons.

func EnableOrDisableAddon added in v1.18.0

func EnableOrDisableAddon(cc *config.ClusterConfig, name string, val string) error

EnableOrDisableAddon updates addon status executing any commands necessary

func IsRuntimeContainerd added in v1.8.2

func IsRuntimeContainerd(cc *config.ClusterConfig, _, _ string) error

IsRuntimeContainerd is a validator which returns an error if the current runtime is not containerd

func IsVolumesnapshotsEnabled added in v1.13.1

func IsVolumesnapshotsEnabled(cc *config.ClusterConfig, _, value string) error

IsVolumesnapshotsEnabled is a validator that prints out a warning if the volumesnapshots addon is disabled (does not return any errors!)

func RunCallbacks added in v1.10.0

func RunCallbacks(cc *config.ClusterConfig, name string, value string) error

RunCallbacks runs all actions associated to an addon, but does not set it (thread-safe)

func Set

func Set(cc *config.ClusterConfig, name string, value string) error

Set sets a value in the config (not threadsafe)

func SetAndSave added in v1.10.0

func SetAndSave(profile string, name string, value string) error

SetAndSave sets a value and saves the config

func SetBool

func SetBool(cc *config.ClusterConfig, name string, val string) error

SetBool sets a bool value in the config (not threadsafe)

func ToEnable added in v1.29.0

func ToEnable(cc *config.ClusterConfig, existing map[string]bool, additional []string) map[string]bool

ToEnable returns the final list of addons to enable (not thread-safe).

func UpdateConfigToDisable added in v1.30.0

func UpdateConfigToDisable(cc *config.ClusterConfig)

func UpdateConfigToEnable added in v1.30.0

func UpdateConfigToEnable(cc *config.ClusterConfig, enabled []string)

UpdateConfig tries to update config with all enabled addons (not thread-safe). Any error will be logged and it will continue.

func VerifyNotPaused added in v1.31.0

func VerifyNotPaused(profile string, enable bool) error

VerifyNotPaused verifies the cluster is not paused before enable/disable an addon.

Types

type Addon

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

Addon represents an addon

Jump to

Keyboard shortcuts

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