util

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 31, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

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

func InitializeTemplates(jobTemplateFileName string, cronJobTemplateFileName string) error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL