controller

package
Version: v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2018 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateGitkubeConf

func CreateGitkubeConf(kubeclientset *kubernetes.Clientset, remotelister listers.RemoteLister) string

CreateGitkubeConf takes a list of remotes, reshapes it and marshals it into a string

func CreateRemoteJson

func CreateRemoteJson(kubeclientset *kubernetes.Clientset, remote *v1alpha1.Remote) interface{}

CreateRemoteJson takes a remote and reshapes it

func RestartDeployment

func RestartDeployment(kubeclientset *kubernetes.Clientset, deployment *v1beta1.Deployment) error

RestartDeployment takes a deployment and annotates the pod spec with current timestamp This causes a fresh rollout of the deployment

func SetGitkubeNamespace

func SetGitkubeNamespace(ns string)

Types

type GitController

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

func NewController

func NewController(
	kubeclientset *kubernetes.Clientset,
	clientset *clientset.Clientset,
	kubeInformerFactory kubeinformers.SharedInformerFactory,
	informerFactory informers.SharedInformerFactory) *GitController

NewController returns a GitController

func (*GitController) Run

func (c *GitController) Run(stopCh <-chan struct{}) error

Run starts the worker threads for remote and configmap work queues

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL