Documentation
¶
Index ¶
- Constants
- func FindOwnerReferenceName(ownerReferences []metav1.OwnerReference) string
- type Controller
- type FinishedJobInfo
- type JobGarbageCollector
- func (j *JobGarbageCollector) GetDynamicInformer(gvr schema.GroupVersionResource) cache.SharedIndexInformer
- func (j *JobGarbageCollector) GetDynamicLister(gvr schema.GroupVersionResource) cache.GenericLister
- func (j *JobGarbageCollector) Initialize(opt *k8s.DynamicClientOption) error
- func (j *JobGarbageCollector) Name() string
- func (j *JobGarbageCollector) Run(stopCh <-chan struct{})
- type JobSync
- type JobSyncInfo
- type QueueSync
- type QueueSyncInfo
- type TaskSyncInfo
Constants ¶
View Source
const ( JobSyncControllerName = "JobSync" DefaultSyncRetryTimes = 3 )
View Source
const ( DefaultJobPendingTTLSeconds = 300 RuntimeStatusKey = "status" PodInitializing = "PodInitializing" ContainerCreating = "ContainerCreating" )
View Source
const (
DefaultJobTTLSeconds = 600
)
View Source
const (
JobGCControllerName = "JobGarbageCollector"
)
View Source
const (
QueueSyncControllerName = "QueueSync"
)
Variables ¶
This section is empty.
Functions ¶
func FindOwnerReferenceName ¶
func FindOwnerReferenceName(ownerReferences []metav1.OwnerReference) string
Types ¶
type Controller ¶
type Controller interface { Name() string Initialize(opt *k8s.DynamicClientOption) error Run(stopCh <-chan struct{}) }
Controller interface for kubernetes job sync, job gc, and queue sync
func NewJobGC ¶
func NewJobGC() Controller
func NewJobSync ¶
func NewJobSync() Controller
func NewQueueSync ¶
func NewQueueSync() Controller
type FinishedJobInfo ¶
type JobGarbageCollector ¶
type JobGarbageCollector struct { sync.Mutex WaitedCleanQueue workqueue.DelayingInterface // contains filtered or unexported fields }
func (*JobGarbageCollector) GetDynamicInformer ¶
func (j *JobGarbageCollector) GetDynamicInformer(gvr schema.GroupVersionResource) cache.SharedIndexInformer
func (*JobGarbageCollector) GetDynamicLister ¶
func (j *JobGarbageCollector) GetDynamicLister(gvr schema.GroupVersionResource) cache.GenericLister
func (*JobGarbageCollector) Initialize ¶
func (j *JobGarbageCollector) Initialize(opt *k8s.DynamicClientOption) error
func (*JobGarbageCollector) Name ¶
func (j *JobGarbageCollector) Name() string
func (*JobGarbageCollector) Run ¶
func (j *JobGarbageCollector) Run(stopCh <-chan struct{})
type JobSync ¶
func (*JobSync) Initialize ¶
func (j *JobSync) Initialize(opt *k8s.DynamicClientOption) error
type JobSyncInfo ¶
type JobSyncInfo struct { ID string Namespace string ParentJobID string GVK schema.GroupVersionKind Status commonschema.JobStatus RuntimeInfo interface{} RuntimeStatus interface{} Message string Action commonschema.ActionType RetryTimes int }
func (*JobSyncInfo) String ¶
func (js *JobSyncInfo) String() string
type QueueSync ¶
func (*QueueSync) Initialize ¶
func (qs *QueueSync) Initialize(opt *k8s.DynamicClientOption) error
type QueueSyncInfo ¶
type TaskSyncInfo ¶
type TaskSyncInfo struct { ID string Name string Namespace string JobID string NodeName string MemberRole commonschema.MemberRole Status commonschema.TaskStatus Message string PodStatus interface{} Action commonschema.ActionType RetryTimes int }
Click to show internal directories.
Click to hide internal directories.