Documentation ¶
Index ¶
Constants ¶
View Source
const ( // TaggingControllerClientName is the name of the tagging controller TaggingControllerClientName = "tagging-controller" // TaggingControllerKey is the key used to register this controller TaggingControllerKey = "tagging" )
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 tagging cluster resources. It periodically checks for Node events (creating/deleting) to apply/delete appropriate tags to resources.
func NewTaggingController ¶
func NewTaggingController( nodeInformer coreinformers.NodeInformer, kubeClient clientset.Interface, cloud cloudprovider.Interface, nodeMonitorPeriod time.Duration, tags map[string]string, resources []string) (*Controller, error)
NewTaggingController creates a NewTaggingController object
func (*Controller) Run ¶
func (tc *Controller) Run(stopCh <-chan struct{})
Run will start the controller to tag resources attached to the cluster and untag resources detached from the cluster.
type ControllerWrapper ¶
type ControllerWrapper struct {
Options options.TaggingControllerOptions
}
ControllerWrapper is the wrapper for the tagging controller
func (*ControllerWrapper) StartTaggingControllerWrapper ¶
func (tc *ControllerWrapper) StartTaggingControllerWrapper(completedConfig *cloudcontrollerconfig.CompletedConfig, cloud cloudprovider.Interface) app.InitFunc
StartTaggingControllerWrapper is used to take cloud config as input and start the tagging controller
Click to show internal directories.
Click to hide internal directories.