gitkube: Index | Files | Directories

package controller

import ""


Package Files

common.go configmap.go controller.go remote.go

func CreateGitkubeConf Uses

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 Uses

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

CreateRemoteJson takes a remote and reshapes it

func RestartDeployment Uses

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 Uses

func SetGitkubeNamespace(ns string)

type GitController Uses

type GitController struct {
    // contains filtered or unexported fields

func NewController Uses

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

NewController returns a GitController

func (*GitController) Run Uses

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

Run starts the worker threads for remote and configmap work queues



Package controller imports 22 packages (graph). Updated 2018-11-19. Refresh now. Tools for package owners.