Documentation ¶
Index ¶
Constants ¶
View Source
const AnnotationPrefix = "addons.k8s.io/"
Variables ¶
This section is empty.
Functions ¶
func Apply ¶
Apply calls kubectl apply to apply the manifest. We will likely in future change this to create things directly (or more likely embed this logic into kubectl itself)
func FindAddons ¶
func FindAddons(ns *v1.Namespace) map[string]*ChannelVersion
Types ¶
type Addon ¶
Addon is a wrapper around a single version of an addon
func (*Addon) ChannelVersion ¶
func (a *Addon) ChannelVersion() *ChannelVersion
func (*Addon) EnsureUpdated ¶
func (a *Addon) EnsureUpdated(k8sClient kubernetes.Interface) (*AddonUpdate, error)
func (*Addon) GetRequiredUpdates ¶
func (a *Addon) GetRequiredUpdates(k8sClient kubernetes.Interface) (*AddonUpdate, error)
type AddonMenu ¶ added in v1.10.0
AddonMenu is a collection of addons, with helpers for computing the latest versions
func NewAddonMenu ¶ added in v1.10.0
func NewAddonMenu() *AddonMenu
func (*AddonMenu) MergeAddons ¶ added in v1.10.0
type AddonUpdate ¶
type AddonUpdate struct { Name string ExistingVersion *ChannelVersion NewVersion *ChannelVersion }
AddonUpdate holds data about a proposed update to an addon
type Channel ¶
func (*Channel) AnnotationName ¶
func (*Channel) GetInstalledVersion ¶
func (c *Channel) GetInstalledVersion(k8sClient kubernetes.Interface) (*ChannelVersion, error)
func (*Channel) SetInstalledVersion ¶
func (c *Channel) SetInstalledVersion(k8sClient kubernetes.Interface, version *ChannelVersion) error
type ChannelVersion ¶
type ChannelVersion struct { Version *string `json:"version,omitempty"` Channel *string `json:"channel,omitempty"` Id string `json:"id,omitempty"` }
func ParseChannelVersion ¶
func ParseChannelVersion(s string) (*ChannelVersion, error)
func (*ChannelVersion) Encode ¶
func (c *ChannelVersion) Encode() (string, error)
func (*ChannelVersion) String ¶ added in v1.10.0
func (c *ChannelVersion) String() string
Click to show internal directories.
Click to hide internal directories.