controller

package
v0.6.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2017 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAddonTPRs

func CreateAddonTPRs(host string, kclient kubernetes.Interface) error

CreateAddonTPRs generates the third party resource required for interacting with addons

func CreatePlan3PRs

func CreatePlan3PRs(host string, kclient kubernetes.Interface) error

CreatePlan3PRs generates the third party resource required for interacting with Service Plans

func CreatePlatformRoles

func CreatePlatformRoles(kclient kubernetes.Interface)

CreatePlatformRoles initialize the needed roles for the platform

func CreateReleaseTPRs

func CreateReleaseTPRs(host string, kclient kubernetes.Interface) error

CreateReleaseTPRs generates the third party resource required for interacting with releases

Types

type AppManagerController

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

AppManagerController controller

func NewAppManagerController

func NewAppManagerController(dpInf, planInf cache.SharedIndexInformer, client kubernetes.Interface) *AppManagerController

NewAppManagerController creates a ResourceAllocatorCtrl

func (*AppManagerController) Run

func (c *AppManagerController) Run(workers int, stopc <-chan struct{})

Run the controller.

type BuildController

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

BuildController controller

func NewBuildController

func NewBuildController(
	config *Config,
	releaseInf cache.SharedIndexInformer,
	sysClient clientset.CoreInterface,
	kclient kubernetes.Interface) *BuildController

NewBuildController creates a new BuilderController

func (*BuildController) Run

func (b *BuildController) Run(workers int, stopc <-chan struct{})

Run the controller.

type Config

type Config struct {
	Host            string
	GitReleaseHost  string
	TLSInsecure     bool
	TLSConfig       rest.TLSClientConfig
	SlugBuildImage  string
	SlugRunnerImage string
	ClusterName     string
	DebugBuild      bool
}

Config defines configuration parameters for the Operator.

func (*Config) IsValidStorageType

func (c *Config) IsValidStorageType() bool

IsValidStorageType check if it's valid storage type

type DeployerController

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

DeployerController controller

func NewDeployerController

func NewDeployerController(
	config *Config, podInf,
	dpInf, relInf cache.SharedIndexInformer,
	sysClient clientset.CoreInterface,
	kclient kubernetes.Interface) *DeployerController

NewDeployerController creates a new DeployerController

func (*DeployerController) Run

func (d *DeployerController) Run(workers int, stopc <-chan struct{})

Run the controller.

type NamespaceController

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

NamespaceController controller

func NewNamespaceController

func NewNamespaceController(nsInf, spInf cache.SharedIndexInformer,
	kclient kubernetes.Interface, sysClient clientset.CoreInterface) *NamespaceController

NewNamespaceController creates a NamespaceController

func (*NamespaceController) Run

func (c *NamespaceController) Run(workers int, stopc <-chan struct{})

Run the controller.

type ReleaseController

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

ReleaseController controller

func NewReleaseController

func NewReleaseController(releaseInf, dpInf cache.SharedIndexInformer, sysClient clientset.CoreInterface, kclient kubernetes.Interface) *ReleaseController

NewReleaseController creates a new ReleaseController

func (*ReleaseController) Run

func (r *ReleaseController) Run(workers int, stopc <-chan struct{})

Run the controller.

type ResourceAllocatorCtrl

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

ResourceAllocatorCtrl controller

func NewResourceAllocatorCtrl

func NewResourceAllocatorCtrl(dpInf, spInf cache.SharedIndexInformer,
	client kubernetes.Interface,
	sysClient clientset.CoreInterface) *ResourceAllocatorCtrl

NewResourceAllocatorCtrl creates a ResourceAllocatorCtrl

func (*ResourceAllocatorCtrl) Run

func (c *ResourceAllocatorCtrl) Run(workers int, stopc <-chan struct{})

Run the controller.

type TaskQueue

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

TaskQueue manages a work queue through an independent worker that invokes the given sync function for every work item inserted.

func NewTaskQueue

func NewTaskQueue(syncFn func(string) error) *TaskQueue

NewTaskQueue creates a new task queue with the given sync function. The sync function is called for every element inserted into the queue.

func (*TaskQueue) Add

func (t *TaskQueue) Add(obj interface{})

Add enqueues ns/name of the given api object in the task queue.

func (*TaskQueue) Len

func (t *TaskQueue) Len() int

Len retrieves the lenght of the queue

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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