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 ¶
func (*Addon) ChannelVersion ¶
func (a *Addon) ChannelVersion() *ChannelVersion
func (*Addon) EnsureUpdated ¶
func (a *Addon) EnsureUpdated(k8sClient *release_1_3.Clientset) (*AddonUpdate, error)
func (*Addon) GetRequiredUpdates ¶
func (a *Addon) GetRequiredUpdates(k8sClient *release_1_3.Clientset) (*AddonUpdate, error)
type AddonUpdate ¶
type AddonUpdate struct { Name string ExistingVersion *ChannelVersion NewVersion *ChannelVersion }
type Addons ¶
func (*Addons) GetCurrent ¶
type Channel ¶
func (*Channel) AnnotationName ¶
func (*Channel) GetInstalledVersion ¶
func (c *Channel) GetInstalledVersion(k8sClient *release_1_3.Clientset) (*ChannelVersion, error)
func (*Channel) SetInstalledVersion ¶
func (c *Channel) SetInstalledVersion(k8sClient *release_1_3.Clientset, version *ChannelVersion) error
type ChannelVersion ¶
type ChannelVersion struct { Version *string `json:"version,omitempty"` Channel *string `json:"channel,omitempty"` }
func ParseChannelVersion ¶
func ParseChannelVersion(s string) (*ChannelVersion, error)
func (*ChannelVersion) Encode ¶
func (c *ChannelVersion) Encode() (string, error)
func (*ChannelVersion) Replaces ¶
func (c *ChannelVersion) Replaces(existing *ChannelVersion) bool
Click to show internal directories.
Click to hide internal directories.