Documentation ¶
Index ¶
Constants ¶
View Source
const ( // SuccessSynced is used as part of the Event 'reason' when a GrafanaDashboard is synced SuccessSynced = "Synced" // WarningNotSynced is used as part of the Event 'reason' when a GrafanaDashboard could not be synced WarningNotSynced = "Not synced" // MessageResourceSynced is the message used for an Event fired when a GrafanaDashboard // is synced successfully MessageResourceSynced = "GrafanaDashboard synced successfully" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller is the controller implementation for GrafanaDashboard resources
func NewController ¶
func NewController(logger *zap.Logger, kubeclientset kubernetes.Interface, darkClientSet clientset.Interface, dashboardInformer informers.GrafanaDashboardInformer, dashboardCreator dashboardCreator) *Controller
NewController returns a new sample controller
func (*Controller) Run ¶
func (c *Controller) Run(threadiness int, 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 work-queue and wait for workers to finish processing their current work items.
Directories ¶
Path | Synopsis |
---|---|
pkg
|
|
apis/controller/v1
Package v1 is the v1 version of the API.
|
Package v1 is the v1 version of the API. |
generated/clientset/versioned
This package has the automatically generated clientset.
|
This package has the automatically generated clientset. |
generated/clientset/versioned/fake
This package has the automatically generated fake clientset.
|
This package has the automatically generated fake clientset. |
generated/clientset/versioned/scheme
This package contains the scheme of the automatically generated clientset.
|
This package contains the scheme of the automatically generated clientset. |
generated/clientset/versioned/typed/controller/v1
This package has the automatically generated typed clients.
|
This package has the automatically generated typed clients. |
generated/clientset/versioned/typed/controller/v1/fake
Package fake has the automatically generated clients.
|
Package fake has the automatically generated clients. |
Click to show internal directories.
Click to hide internal directories.