Documentation
¶
Index ¶
- Constants
- func FindChannelVersions(ns *v1.Namespace) map[string]*ChannelVersion
- type Addon
- func (a *Addon) AddNeedsUpdateLabel(ctx context.Context, k8sClient kubernetes.Interface, required *AddonUpdate) error
- func (a *Addon) ChannelVersion() *ChannelVersion
- func (a *Addon) EnsureUpdated(ctx context.Context, k8sClient kubernetes.Interface, ...) (*AddonUpdate, error)
- func (a *Addon) GetManifestFullUrl() (*url.URL, error)
- func (a *Addon) GetNamespace() string
- func (a *Addon) GetRequiredUpdates(ctx context.Context, k8sClient kubernetes.Interface, ...) (*AddonUpdate, error)
- type AddonMenu
- type AddonUpdate
- type Addons
- type Applier
- type Channel
- func (c *Channel) AnnotationName() string
- func (c *Channel) GetInstalledVersion(ctx context.Context, k8sClient kubernetes.Interface) (*ChannelVersion, error)
- func (c *Channel) IsPKIInstalled(ctx context.Context, k8sClient kubernetes.Interface, ...) (bool, error)
- func (c *Channel) SetInstalledVersion(ctx context.Context, k8sClient kubernetes.Interface, version *ChannelVersion) error
- type ChannelVersion
- type ClientApplier
- type KubectlApplier
- type Pruner
Constants ¶
View Source
const AnnotationPrefix = "addons.k8s.io/"
View Source
const CurrentSystemGeneration = 1
CurrentSystemGeneration holds our current SystemGeneration value. Version history:
0 Pre-history (and the default value); versions prior to prune. 1 Prune functionality introduced.
Variables ¶
This section is empty.
Functions ¶
func FindChannelVersions ¶ added in v1.24.0
func FindChannelVersions(ns *v1.Namespace) map[string]*ChannelVersion
Types ¶
type Addon ¶
Addon is a wrapper around a single version of an addon
func (*Addon) AddNeedsUpdateLabel ¶ added in v1.20.0
func (a *Addon) AddNeedsUpdateLabel(ctx context.Context, k8sClient kubernetes.Interface, required *AddonUpdate) error
func (*Addon) ChannelVersion ¶
func (a *Addon) ChannelVersion() *ChannelVersion
func (*Addon) EnsureUpdated ¶
func (a *Addon) EnsureUpdated(ctx context.Context, k8sClient kubernetes.Interface, cmClient certmanager.Interface, pruner *Pruner, applier Applier, existingVersion *ChannelVersion) (*AddonUpdate, error)
func (*Addon) GetManifestFullUrl ¶ added in v1.15.1
func (*Addon) GetNamespace ¶ added in v1.24.0
func (*Addon) GetRequiredUpdates ¶
func (a *Addon) GetRequiredUpdates(ctx context.Context, k8sClient kubernetes.Interface, cmClient certmanager.Interface, existingVersion *ChannelVersion) (*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 InstallPKI bool }
AddonUpdate holds data about a proposed update to an addon
type Addons ¶
func (*Addons) GetCurrent ¶
type Channel ¶
func (*Channel) AnnotationName ¶
func (*Channel) GetInstalledVersion ¶
func (c *Channel) GetInstalledVersion(ctx context.Context, k8sClient kubernetes.Interface) (*ChannelVersion, error)
func (*Channel) IsPKIInstalled ¶ added in v1.20.0
func (c *Channel) IsPKIInstalled(ctx context.Context, k8sClient kubernetes.Interface, cmClient certmanager.Interface) (bool, error)
func (*Channel) SetInstalledVersion ¶
func (c *Channel) SetInstalledVersion(ctx context.Context, k8sClient kubernetes.Interface, version *ChannelVersion) error
type ChannelVersion ¶
type ChannelVersion struct { Channel *string `json:"channel,omitempty"` Id string `json:"id,omitempty"` ManifestHash string `json:"manifestHash,omitempty"` // SystemGeneration holds the generation of the channels functionality. // It is used so that we reapply when we introduce new features, such as prune. SystemGeneration int `json:"systemGeneration,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
type ClientApplier ¶ added in v1.25.0
type ClientApplier struct { Client dynamic.Interface RESTMapper *restmapper.DeferredDiscoveryRESTMapper }
type KubectlApplier ¶ added in v1.25.0
type KubectlApplier struct{}
type Pruner ¶ added in v1.23.0
type Pruner struct { Client dynamic.Interface RESTMapper *restmapper.DeferredDiscoveryRESTMapper }
Click to show internal directories.
Click to hide internal directories.