cv

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2018 License: MIT Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteWorkloadsList

func ExecuteWorkloadsList(w io.Writer, typ string, k8sProvider *k8s.K8sProvider, cs clientset.Interface) error

ExecuteWorkloadsList generates HTML tabular text listing all status of all CV managed resource as represented by Workloads

func NewCVHandler

func NewCVHandler(cs kubernetes.Interface, customCS clientset.Interface) http.HandlerFunc

NewCVHandler is web handler to generate HTML tabular text listing all status of all CV managed resource as represented by Workloads

Types

type CVController

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

CVController manages ContainerVersion (CV) kind (a custom resource definition) of resources. It ensures that any changes in CV resources are picked up and acted upon. The responsibility of CVController is to make sure that the container versions specified by CV resources are up-to date. CVController does this by starting a CRSync for the container CV resource requests. It is then CRSync service's responsibility to keep the version of a container up to date and perform a rolling deployment whenever the container version needs to be updated as per tags of the DR repository.

func NewCVController

func NewCVController(configMapKey, cvImgRepo string, k8sCS kubernetes.Interface, customCS clientset.Interface,
	k8sIF k8sinformers.SharedInformerFactory, customIF informers.SharedInformerFactory,
	statsInstance stats.Stats, useHistory bool) (*CVController, error)

NewCVController returns a new container version (CV) controller which is responsible for managing acting on add/update/delete of CV resources. On add of CV resources, it creates a deployment for docker register (DR) Sync service that polls in to docker registry to find any new deployments that needs to be rolled out and thus performing the roll-out if required (using the roll-out strategy specified in deployment.

func (*CVController) Run

func (c *CVController) Run(threadiness int, stopCh <-chan struct{}) error

Run starts the cv controller so it starts acting as cv resources

Jump to

Keyboard shortcuts

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