Documentation ¶
Index ¶
- Constants
- type SimpleScheduler
- func (scheduler *SimpleScheduler) DeleteJob(jobName string) error
- func (scheduler *SimpleScheduler) GetK8sClient() *kubernetes.Clientset
- func (scheduler *SimpleScheduler) GetNamespace() string
- func (scheduler *SimpleScheduler) StartJob(jobID string, jobConfig *api.JobConfig, baktaConfString string) (*batchv1.Job, error)
Constants ¶
View Source
const JOBTTL = 100
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SimpleScheduler ¶
type SimpleScheduler struct {
// contains filtered or unexported fields
}
SimpleScheduler A simple scheduler to run bakta jobs on a Kubernetes cluster The config will be picked up from the
func InitSimpleScheduler ¶
func InitSimpleScheduler(dbHandler *database.Handler) (*SimpleScheduler, error)
InitSimpleScheduler Initiates a scheduler to run bakta jobs
func (*SimpleScheduler) DeleteJob ¶
func (scheduler *SimpleScheduler) DeleteJob(jobName string) error
func (*SimpleScheduler) GetK8sClient ¶ added in v0.2.0
func (scheduler *SimpleScheduler) GetK8sClient() *kubernetes.Clientset
func (*SimpleScheduler) GetNamespace ¶ added in v0.2.0
func (scheduler *SimpleScheduler) GetNamespace() string
Click to show internal directories.
Click to hide internal directories.