Documentation ¶
Index ¶
- func Start()
- type HandlerInterface
- type SDHandler
- func (t *SDHandler) CheckControllerStatus(oldObj interface{}, newObj interface{}, eventType string) ([]selectivedeployment_v1.SelectiveDeployment, bool)
- func (t *SDHandler) ConfigureControllers()
- func (t *SDHandler) GetSelectiveDeployments(nodeName string) ([][]string, bool)
- func (t *SDHandler) Init() error
- func (t *SDHandler) ObjectCreated(obj interface{})
- func (t *SDHandler) ObjectDeleted(obj interface{}, delta string)
- func (t *SDHandler) ObjectUpdated(obj interface{}, delta string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HandlerInterface ¶
type HandlerInterface interface { Init() error ObjectCreated(obj interface{}) ObjectUpdated(obj interface{}, delta string) ObjectDeleted(obj interface{}, delta string) ConfigureControllers() CheckControllerStatus(old, new interface{}, eventType string) ([]selectivedeployment_v1.SelectiveDeployment, bool) GetSelectiveDeployments(node string) ([][]string, bool) }
HandlerInterface interface contains the methods that are required
type SDHandler ¶
type SDHandler struct {
// contains filtered or unexported fields
}
SDHandler is a implementation of Handler
func (*SDHandler) CheckControllerStatus ¶
func (t *SDHandler) CheckControllerStatus(oldObj interface{}, newObj interface{}, eventType string) ([]selectivedeployment_v1.SelectiveDeployment, bool)
CheckControllerStatus runs in case of any controller event
func (*SDHandler) ConfigureControllers ¶
func (t *SDHandler) ConfigureControllers()
ConfigureControllers configures the controllers by selectivedeployments to match the desired state users supplied
func (*SDHandler) GetSelectiveDeployments ¶
GetSelectiveDeployments generates selectivedeployment list from the owner references of controllers which contains the node that has an event (add/update/delete)
func (*SDHandler) ObjectCreated ¶
func (t *SDHandler) ObjectCreated(obj interface{})
ObjectCreated is called when an object is created
func (*SDHandler) ObjectDeleted ¶
ObjectDeleted is called when an object is deleted
func (*SDHandler) ObjectUpdated ¶
ObjectUpdated is called when an object is updated
Click to show internal directories.
Click to hide internal directories.