Documentation ¶
Index ¶
- Constants
- Variables
- type Controller
- func (c *Controller) AddNewCRD(gvr schema.GroupVersionResource, dynamicClient dynamic.Interface, ...) error
- func (c *Controller) GetWorker(gvr schema.GroupVersionResource) *queue.Worker
- func (c *Controller) Lister(gvr schema.GroupVersionResource) dynamiclister.Lister
- func (c *Controller) Run(stopCh <-chan struct{}) error
Constants ¶
View Source
const ( // SuccessSynced is used as part of the Event 'reason' when a Resource is synced SuccessSynced = "Synced" // MessageResourceSynced is the message used for an Event fired when a Resource // is synced successfully MessageResourceSynced = "Resource synced successfully" )
View Source
const KFCFinalizer = "kfc.io"
Variables ¶
View Source
var SecretKey string
Functions ¶
This section is empty.
Types ¶
type Controller ¶
Controller is the controller implementation for KubeForm resources
func NewController ¶
func NewController( kubeclientset kubernetes.Interface, dynamicclient dynamic.Interface) *Controller
NewController returns a new sample controller
func (*Controller) AddNewCRD ¶
func (c *Controller) AddNewCRD(gvr schema.GroupVersionResource, dynamicClient dynamic.Interface, stopCh <-chan struct{}) error
func (*Controller) GetWorker ¶
func (c *Controller) GetWorker(gvr schema.GroupVersionResource) *queue.Worker
func (*Controller) Lister ¶
func (c *Controller) Lister(gvr schema.GroupVersionResource) dynamiclister.Lister
func (*Controller) Run ¶
func (c *Controller) Run(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.
Click to show internal directories.
Click to hide internal directories.