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