Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCronJob ¶
func CreateCronJob(jobmergedata JobMergeData) (batchv1beta1.CronJob, error)
CreateCronJob returns a Job type from a template merge data
func CreateJob ¶
func CreateJob(jobmergedata JobMergeData) (batch.Job, error)
CreateJob returns a Job type from a template merge data
func InitializeTemplates ¶
InitializeTemplates initializes the templates needed by this controller, it must be called at controller boot time
Types ¶
type JobMergeData ¶
type JobMergeData struct { Config v1alpha1.GitOpsConfig `json:"config,omitempty"` // Action can be create, delete Action string `json:"action,omitempty"` }
JobMergeData is the structs that will be used to merge with the job template
Click to show internal directories.
Click to hide internal directories.