addons

package
v1.1.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Addons = map[kubernetes.Addon]Addon{}

Functions

func DeployAddons

func DeployAddons(client clientset.Interface, addonConfiguration AddonConfiguration, applyBehavior ApplyBehavior) error

func GetCiliumImage added in v1.1.1

func GetCiliumImage(imageTag string) string

func GetCiliumInitImage added in v1.1.1

func GetCiliumInitImage(imageTag string) string

func GetCiliumOperatorImage added in v1.1.1

func GetCiliumOperatorImage(imageTag string) string

func GetDexImage added in v1.1.1

func GetDexImage(imageTag string) string

func GetGangwayImage added in v1.1.1

func GetGangwayImage(imageTag string) string

func GetKuredImage added in v1.1.1

func GetKuredImage(imageTag string) string

Types

type Addon

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

func (Addon) Apply

func (addon Addon) Apply(addonConfiguration AddonConfiguration, skubaConfiguration *skuba.SkubaConfiguration, applyBehavior ApplyBehavior) error

func (Addon) HasToBeApplied

func (addon Addon) HasToBeApplied(addonConfiguration AddonConfiguration, skubaConfiguration *skuba.SkubaConfiguration) (bool, error)

func (Addon) Images added in v1.1.1

func (addon Addon) Images(imageTag string) []string

func (Addon) IsPresentForClusterVersion

func (addon Addon) IsPresentForClusterVersion(clusterVersion *version.Version) bool

func (Addon) Render

func (addon Addon) Render(addonConfiguration AddonConfiguration) (string, error)

func (Addon) Write

func (addon Addon) Write(addonConfiguration AddonConfiguration) error

type AddonConfiguration

type AddonConfiguration struct {
	ClusterVersion *version.Version
	ControlPlane   string
	ClusterName    string
}

type ApplyBehavior

type ApplyBehavior uint
const (
	// This is the default behavior for all operations except for Bootstrap,
	// the addon is always re-rendered prior to being applied. In an addons
	// upgrade operation for example, we always want to re-render the latest
	// contents and never reuse local file contents in case the upgrade was
	// executed inside a cluster definition folder
	AlwaysRender ApplyBehavior = iota
	// This is the desired behavior for Bootstrap, when the user can tweak
	// the addon configurations after `skuba cluster init`, so
	// `skuba node bootstrap` will apply the modified settings instead of
	// re-rendering them forcefully
	SkipRenderIfConfigFilePresent ApplyBehavior = iota
)

Jump to

Keyboard shortcuts

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