Documentation ¶
Index ¶
Constants ¶
View Source
const ( AddPod = iota UpdatePod DeletePod )
View Source
const ( Recovery = iota Informers )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventSource ¶ added in v1.1.0
type EventSource int
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager implements interfaces#Recoverable, interfaces#AppManager generic app management service watches events from all the pods, it recognize apps by reading pod's spec labels, if there are proper info such as applicationID, queue name found, and claim it as an app or a app task, then report them to scheduler cache by calling am protocol
func NewManager ¶
func NewManager(apiProvider client.APIProvider, podEventHandler *PodEventHandler) *Manager
func (*Manager) AddPod ¶ added in v1.1.0
func (os *Manager) AddPod(obj interface{})
AddPod Add application and task using pod metadata Visibility: Public only for testing
func (*Manager) GetExistingAllocation ¶
func (os *Manager) GetExistingAllocation(pod *v1.Pod) *si.Allocation
func (*Manager) ServiceInit ¶
this implements AppManagementService interface
type PodEventHandler ¶ added in v1.1.0
func NewPodEventHandler ¶ added in v1.1.0
func NewPodEventHandler(amProtocol interfaces.ApplicationManagementProtocol, recoveryRunning bool) *PodEventHandler
func (*PodEventHandler) HandleEvent ¶ added in v1.1.0
func (p *PodEventHandler) HandleEvent(eventType EventType, source EventSource, pod *v1.Pod) interfaces.ManagedApp
func (*PodEventHandler) RecoveryDone ¶ added in v1.1.0
func (p *PodEventHandler) RecoveryDone(terminatedPods map[string]bool)
Click to show internal directories.
Click to hide internal directories.