Version: v0.3.0 Latest Latest

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

Go to latest
Published: Oct 30, 2020 License: Apache-2.0 Imports: 42 Imported by: 0




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 = ""


View Source
var SecretKey string


This section is empty.


type Controller

type Controller struct {
	// contains filtered or unexported fields

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 (*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.

Jump to

Keyboard shortcuts

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