Documentation ¶
Index ¶
- Variables
- func Deprecations(name string) (bool, string, string)
- func Enable(wg *sync.WaitGroup, cc *config.ClusterConfig, toEnable map[string]bool, ...)
- func EnableOrDisableAddon(cc *config.ClusterConfig, name string, val string) error
- func IsRuntimeContainerd(cc *config.ClusterConfig, _, _ string) error
- func IsVolumesnapshotsEnabled(cc *config.ClusterConfig, _, value string) error
- func RunCallbacks(cc *config.ClusterConfig, name string, value string) error
- func Set(cc *config.ClusterConfig, name string, value string) error
- func SetAndSave(profile string, name string, value string) error
- func SetBool(cc *config.ClusterConfig, name string, val string) error
- func ToEnable(cc *config.ClusterConfig, existing map[string]bool, additional []string) map[string]bool
- func UpdateConfigToDisable(cc *config.ClusterConfig)
- func UpdateConfigToEnable(cc *config.ClusterConfig, enabled []string)
- type Addon
Constants ¶
This section is empty.
Variables ¶
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 }, }
Addons is a list of all addons
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
var Force = false
Force is used to override checks for addons
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
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
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.