Documentation ¶
Overview ¶
Package addons provides the mechanism to extend the kubernetes functionality by applying addons that provide new functions. This package also includes the addons
Index ¶
- Variables
- func CheckLocalAddonsBaseManifests(addonConfiguration AddonConfiguration) (bool, error)
- func DeployAddons(client clientset.Interface, addonConfiguration AddonConfiguration, dryRun bool) error
- func GetCiliumImage(imageTag string) string
- func GetCiliumInitImage(imageTag string) string
- func GetCiliumOperatorImage(imageTag string) string
- func GetDexImage(imageTag string) string
- func GetGangwayImage(imageTag string) string
- func GetKuceroImage(imageTag string) string
- func GetKuredImage(imageTag string) string
- func GetMetricsServerImage(imageTag string) string
- type Addon
- func (addon Addon) Apply(client clientset.Interface, addonConfiguration AddonConfiguration, ...) error
- func (addon Addon) HasToBeApplied(addonConfiguration AddonConfiguration, ...) (bool, error)
- func (addon Addon) Images(imageTag string) []string
- func (addon Addon) IsPresentForClusterVersion(clusterVersion *version.Version) bool
- func (addon Addon) Render(addonConfiguration AddonConfiguration) (string, error)
- func (addon Addon) RenderPreflight(addonConfiguration AddonConfiguration) (string, error)
- func (addon Addon) Write(addonConfiguration AddonConfiguration) error
- type AddonConfiguration
Constants ¶
This section is empty.
Variables ¶
var Addons = map[kubernetes.Addon]Addon{}
Functions ¶
func CheckLocalAddonsBaseManifests ¶ added in v1.4.6
func CheckLocalAddonsBaseManifests(addonConfiguration AddonConfiguration) (bool, error)
func DeployAddons ¶
func DeployAddons(client clientset.Interface, addonConfiguration AddonConfiguration, dryRun bool) error
DeployAddons loops over the sorted list of addons, checks if each needs to be deployed and triggers its deployment
func GetCiliumImage ¶ added in v1.1.1
func GetCiliumInitImage ¶ added in v1.1.1
func GetCiliumOperatorImage ¶ added in v1.1.1
func GetDexImage ¶ added in v1.1.1
func GetGangwayImage ¶ added in v1.1.1
func GetKuceroImage ¶ added in v1.3.10
func GetKuredImage ¶ added in v1.1.1
func GetMetricsServerImage ¶ added in v1.3.4
Types ¶
type Addon ¶
type Addon struct { Addon kubernetes.Addon // contains filtered or unexported fields }
func (Addon) Apply ¶
func (addon Addon) Apply(client clientset.Interface, addonConfiguration AddonConfiguration, skubaConfiguration *skuba.SkubaConfiguration, dryRun bool) error
Apply deploys the addon by calling kubectl apply and pointing to the generated addon manifest
func (Addon) HasToBeApplied ¶
func (addon Addon) HasToBeApplied(addonConfiguration AddonConfiguration, skubaConfiguration *skuba.SkubaConfiguration) (bool, error)
HasToBeApplied decides if the Addon is deployed by checking its version with addonVersionLower
func (Addon) Images ¶ added in v1.1.1
Images returns the images required for this Addon to properly function
func (Addon) IsPresentForClusterVersion ¶
IsPresentForClusterVersion verifies if the Addon can be deployed with the current k8s version
func (Addon) Render ¶
func (addon Addon) Render(addonConfiguration AddonConfiguration) (string, error)
Render substitutes the variables in the template and returns a string with the addon manifest ready
func (Addon) RenderPreflight ¶ added in v1.3.4
func (addon Addon) RenderPreflight(addonConfiguration AddonConfiguration) (string, error)
func (Addon) Write ¶
func (addon Addon) Write(addonConfiguration AddonConfiguration) error
Write creates the manifest yaml file of the Addon after rendering its template