updater

package
v0.0.0-...-19a9f39 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2016 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

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

Container holds a container to check for version update linked with `Deployment`

func (*Container) GetAutoupdateVersion

func (c *Container) GetAutoupdateVersion() (version *registry.Version, err error)

GetAutoupdateVersion returns version to perform autoupdate to. nil will be returned if notheng to update.

func (*Container) GetBeforeUpdateJob

func (c *Container) GetBeforeUpdateJob() (job *batch.Job)

GetBeforeUpdateJob returns configuration for a job to run before deployment update. It copies the original job and fix it's container image version.

func (*Container) GetDeploymentName

func (c *Container) GetDeploymentName() string

GetDeploymentName returns the deployment name

func (*Container) GetImageName

func (c *Container) GetImageName() string

GetImageName returns the container image name

func (*Container) GetImageVersion

func (c *Container) GetImageVersion() (version *registry.Version, err error)

GetImageVersion returns `registry.Version` for current container image

func (*Container) GetLatestVersion

func (c *Container) GetLatestVersion() (*registry.Version, error)

GetLatestVersion returns a latest image version from repository

func (*Container) GetName

func (c *Container) GetName() string

GetName returns the container name

func (*Container) SetImageVersion

func (c *Container) SetImageVersion(v registry.Version) (*Container, error)

SetImageVersion updates Deployment template with the set version. It does not save the deployment. NOTE a version is passed by the value to avoid nil pointer errors

func (*Container) SetRepositoryFrom

func (c *Container) SetRepositoryFrom(registries *registry.RegistryList) error

SetRepositoryFrom iterate over registries list to match containers image repository

func (*Container) UpdateDeployment

func (c *Container) UpdateDeployment(k *client.Client, v registry.Version) (err error)

UpdateDeployment updates Deployment version on the cluster

type ContainerList

type ContainerList struct {
	Items []*Container
}

ContainerList is a list of containers to check for version update

func NewList

func NewList(k *client.Client, namespace string) (containers *ContainerList, err error)

NewList list containers to check for updates

Jump to

Keyboard shortcuts

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