Documentation ¶
Overview ¶
Package controller is the package that contains Kubernetes controller
Index ¶
Constants ¶
View Source
const ( // Add ... add metrics Add metricAction = 1 // Delete .... delete metrics Delete metricAction = -1 // Reset .... reset metrics Reset metricAction = 0 )
Variables ¶
This section is empty.
Functions ¶
func StartWatching ¶
func StartWatching(ignoreNamespaces *string)
StartWatching ... Start prepares watchers and run their controllers, then waits for process termination signals
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller object
func (*Controller) HasSynced ¶
func (c *Controller) HasSynced() bool
HasSynced is required for the cache.Controller interface.
func (*Controller) LastSyncResourceVersion ¶
func (c *Controller) LastSyncResourceVersion() string
LastSyncResourceVersion is required for the cache.Controller interface.
func (*Controller) Run ¶
func (c *Controller) Run(stopCh <-chan struct{})
Run starts the kubewatch controller
Click to show internal directories.
Click to hide internal directories.