Documentation ¶
Index ¶
- Constants
- func NewQueueJobResPod(config *rest.Config) queuejobresources.Interface
- func Register(regs *queuejobresources.RegisteredResources)
- type QueueJobResPod
- func (qjrPod *QueueJobResPod) Cleanup(queuejob *arbv1.XQueueJob, qjobRes *arbv1.XQueueJobResource) error
- func (qjrPod *QueueJobResPod) GetAggregatedResources(job *arbv1.XQueueJob) *schedulerapi.Resource
- func (qjrPod *QueueJobResPod) GetAggregatedResourcesByPriority(priority int, job *arbv1.XQueueJob) *schedulerapi.Resource
- func (qjrPod *QueueJobResPod) GetPodTemplate(qjobRes *arbv1.XQueueJobResource) (*v1.PodTemplateSpec, error)
- func (qjrPod *QueueJobResPod) Run(stopCh <-chan struct{})
- func (qjrPod *QueueJobResPod) SyncQueueJob(queuejob *arbv1.XQueueJob, qjobRes *arbv1.XQueueJobResource) error
- func (qjrPod *QueueJobResPod) UpdateQueueJobStatus(queuejob *arbv1.XQueueJob) error
Constants ¶
View Source
const ( // QueueJobNameLabel label string for queuejob name QueueJobNameLabel string = "xqueuejob-name" // ControllerUIDLabel label string for queuejob controller uid ControllerUIDLabel string = "controller-uid" )
Variables ¶
This section is empty.
Functions ¶
func NewQueueJobResPod ¶
func NewQueueJobResPod(config *rest.Config) queuejobresources.Interface
NewQueueJobResPod Creates a new controller for QueueJob pods
func Register ¶
func Register(regs *queuejobresources.RegisteredResources)
Register registers a queue job resource type
Types ¶
type QueueJobResPod ¶
type QueueJobResPod struct {
// contains filtered or unexported fields
}
QueueJobResPod Controller for QueueJob pods
func (*QueueJobResPod) Cleanup ¶
func (qjrPod *QueueJobResPod) Cleanup(queuejob *arbv1.XQueueJob, qjobRes *arbv1.XQueueJobResource) error
Cleanup : deletes all resources from the queuejob
func (*QueueJobResPod) GetAggregatedResources ¶
func (qjrPod *QueueJobResPod) GetAggregatedResources(job *arbv1.XQueueJob) *schedulerapi.Resource
func (*QueueJobResPod) GetAggregatedResourcesByPriority ¶
func (qjrPod *QueueJobResPod) GetAggregatedResourcesByPriority(priority int, job *arbv1.XQueueJob) *schedulerapi.Resource
func (*QueueJobResPod) GetPodTemplate ¶
func (qjrPod *QueueJobResPod) GetPodTemplate(qjobRes *arbv1.XQueueJobResource) (*v1.PodTemplateSpec, error)
GetPodTemplate Parse queue job api object to get Pod template
func (*QueueJobResPod) Run ¶
func (qjrPod *QueueJobResPod) Run(stopCh <-chan struct{})
Run the main goroutine responsible for watching and pods.
func (*QueueJobResPod) SyncQueueJob ¶
func (qjrPod *QueueJobResPod) SyncQueueJob(queuejob *arbv1.XQueueJob, qjobRes *arbv1.XQueueJobResource) error
SyncQueueJob : method to sync the resources of this job
func (*QueueJobResPod) UpdateQueueJobStatus ¶
func (qjrPod *QueueJobResPod) UpdateQueueJobStatus(queuejob *arbv1.XQueueJob) error
Click to show internal directories.
Click to hide internal directories.