controller

package
v3.11.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2018 License: Apache-2.0 Imports: 48 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	WaitForReadyAnnotation    = "template.alpha.openshift.io/wait-for-ready"
	TemplateInstanceOwner     = "template.openshift.io/template-instance-owner"
	TemplateInstanceFinalizer = "template.openshift.io/finalizer"
)

Variables

View Source
var (
	TimeoutErr = errors.New("timeout while waiting for template instance to be ready")
)

Functions

func CanCheckReadiness

func CanCheckReadiness(ref corev1.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.

func TemplateInstanceHasCondition

func TemplateInstanceHasCondition(templateInstance *templatev1.TemplateInstance, typ templatev1.TemplateInstanceConditionType, status corev1.ConditionStatus) bool

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

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 templateinformer.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