controller

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2018 License: Apache-2.0 Imports: 43 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CanCheckReadiness

func CanCheckReadiness(ref kapi.ObjectReference) bool

CanCheckReadiness indicates whether a readiness check exists for a GK.

func CheckReadiness

CheckReadiness runs the readiness check on a given object. TODO: remove "oc client.Interface" and error once BuildConfigs can report on the status of their latest build.

Types

type TemplateInstanceController

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

TemplateInstanceController watches for new TemplateInstance objects and instantiates the template contained within, using parameters read from a linked Secret object. The TemplateInstanceController instantiates objects using its own service account, first verifying that the requester also has permissions to instantiate.

func NewTemplateInstanceController

func NewTemplateInstanceController(dynamicRestMapper meta.RESTMapper, dynamicClient dynamic.Interface, kc kclientsetinternal.Interface, buildClient buildclient.Interface, templateClient templateclient.Interface, informer internalversion.TemplateInstanceInformer) *TemplateInstanceController

NewTemplateInstanceController returns a new TemplateInstanceController.

func (*TemplateInstanceController) Collect

func (c *TemplateInstanceController) Collect(ch chan<- prometheus.Metric)

func (*TemplateInstanceController) Describe

func (c *TemplateInstanceController) Describe(ch chan<- *prometheus.Desc)

func (*TemplateInstanceController) Run

func (c *TemplateInstanceController) Run(workers int, stopCh <-chan struct{})

Run runs the controller until stopCh is closed, with as many workers as specified.

type TemplateInstanceFinalizerController

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

TemplateInstanceFinalizerController watches for new TemplateInstance objects and instantiates the template contained within, using parameters read from a linked Secret object. The TemplateInstanceFinalizerController instantiates objects using its own service account, first verifying that the requester also has permissions to instantiate.

func NewTemplateInstanceFinalizerController

func NewTemplateInstanceFinalizerController(dynamicRestMapper meta.RESTMapper, dynamicClient dynamic.Interface, templateClient templateclient.Interface, informer internalversion.TemplateInstanceInformer) *TemplateInstanceFinalizerController

NewTemplateInstanceFinalizerController returns a new TemplateInstanceFinalizerController.

func (*TemplateInstanceFinalizerController) Run

func (c *TemplateInstanceFinalizerController) Run(workers int, stopCh <-chan struct{})

Run runs the controller until stopCh is closed, with as many workers as specified.

Jump to

Keyboard shortcuts

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