kubecontroller

package
v0.0.0-...-77edef9 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2021 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// SuccessSynced is used as part of the Event 'reason' when a Bruco is synced
	SuccessSynced = "Synced"
	// ErrResourceExists is used as part of the Event 'reason' when a Bruco fails
	// to sync due to a Deployment of the same name already existing.
	ErrResourceExists = "ErrResourceExists"

	// MessageResourceExists is the message used for Events when a resource
	// fails to sync due to a Deployment already existing
	MessageResourceExists = "Resource %q already exists and is not managed by Bruco"
	// MessageResourceSynced is the message used for an Event fired when a Bruco
	// is synced successfully
	MessageResourceSynced = "Bruco synced successfully"
)
View Source
const (
	ContainerDefaultImage = "ferama/bruco:dev"
	ConfigMountPath       = "/etc/bruco"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BrucoController

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

BrucoController is the controller implementation for Bruco resources

func NewBrucoController

func NewBrucoController(
	kubeclientset kubernetes.Interface,
	brucoclientset clientset.Interface,
	deploymentInformer appsinformers.DeploymentInformer,
	serviceInformer coreinformers.ServiceInformer,
	configMapInformer coreinformers.ConfigMapInformer,
	brucoInformer informers.BrucoInformer) *BrucoController

NewBrucoController returns a new sample controller

func (*BrucoController) Run

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

Run will set up the event handlers for types we are interested in, as well as syncing informer caches and starting workers. It will block until stopCh is closed, at which point it will shutdown the workqueue and wait for workers to finish processing their current work items.

type BrucoProjectController

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

BrucoProjectController is the controller implementation for BrucoProject resources

func NewBrucoProjectController

func NewBrucoProjectController(
	kubeclientset kubernetes.Interface,
	brucoclientset clientset.Interface,
	brucoInformer informers.BrucoInformer,
	brucoProjectInformer informers.BrucoProjectInformer) *BrucoProjectController

NewBrucoController returns a new sample controller

func (*BrucoProjectController) Run

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

Run will set up the event handlers for types we are interested in, as well as syncing informer caches and starting workers. It will block until stopCh is closed, at which point it will shutdown the workqueue and wait for workers to finish processing their current work items.

Jump to

Keyboard shortcuts

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