framework

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2019 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FrameworkContext frameworkContextType

FrameworkContext stores globally the framework context

Functions

func BuildAndSetClients

func BuildAndSetClients() (versioned.Interface, *clientset.Clientset)

BuildAndSetClients builds and initilize workflow and kube client

func Failf

func Failf(format string, args ...interface{})

Failf reports a failure in the current e2e

func HOCheckAllDaemonSetJobJobsFinished

func HOCheckAllDaemonSetJobJobsFinished(workflowClient versioned.Interface, daemonsetjob *daemonsetjobv1.DaemonSetJob) func() error

HOCheckAllDaemonSetJobJobsFinished is an higher order func that returns func that checks whether all jobs are finished

func HOCheckAllStepsFinished

func HOCheckAllStepsFinished(workflowClient versioned.Interface, workflow *wapi.Workflow, namespace string) func() error

HOCheckAllStepsFinished is an higher order func that returns func that checks whether all step are finished

func HOCheckCronWorkflowRegistration

func HOCheckCronWorkflowRegistration(extensionClient apiextensionsclient.Clientset, namespace string) func() error

HOCheckCronWorkflowRegistration check wether CronWorkflow is defined

func HOCheckDaemonSetJobRegistration

func HOCheckDaemonSetJobRegistration(extensionClient apiextensionsclient.Clientset) func() error

HOCheckDaemonSetJobRegistration check wether DaemonSetJob is defined

func HOCheckStepFinished

func HOCheckStepFinished(workflowClient versioned.Interface, workflow *wapi.Workflow, step, namespace string) func() error

HOCheckStepFinished is an higher order func that returns the func that check if the job at the specified step finished

func HOCheckZeroDaemonSetJobJobsWasCreated

func HOCheckZeroDaemonSetJobJobsWasCreated(workflowClient versioned.Interface, daemonsetjob *daemonsetjobv1.DaemonSetJob) func() error

HOCheckZeroDaemonSetJobJobsWasCreated is an higher order func that returns func that checks that no job was created

func HOCreateCronWorkflow

func HOCreateCronWorkflow(cronWorkflowClient versioned.Interface, cronWorkflow *cwapiV1.CronWorkflow, namespace string) func() error

HOCreateCronWorkflow is an higher order func that returns the func to create a CronWorkflow

func HOCreateDaemonSetJob

func HOCreateDaemonSetJob(workflowClient versioned.Interface, daemonsetjob *daemonsetjobv1.DaemonSetJob) func() error

HOCreateDaemonSetJob is an higher order func that returns the func to create a DaemonSetJob

func HOCreateWorkflow

func HOCreateWorkflow(workflowClient versioned.Interface, workflow *wapi.Workflow, namespace string) func() error

HOCreateWorkflow is an higher order func that returns the func to create a Workflow

func HODeleteWorkflow

func HODeleteWorkflow(workflowClient versioned.Interface, workflow *wapi.Workflow, namespace string) func() error

HODeleteWorkflow is an higher order func that returns the func to remove the Workflow

func HOIsDaemonSetJobFinished

func HOIsDaemonSetJobFinished(workflowClient versioned.Interface, daemonsetjob *daemonsetjobv1.DaemonSetJob) func() error

HOIsDaemonSetJobFinished is an higher order func that returns the func that checks whether a Workflow is finished

func HOIsDaemonSetJobJobsStarted

func HOIsDaemonSetJobJobsStarted(kubeclient clientset.Interface, daemonsetjob *daemonsetjobv1.DaemonSetJob) func() error

HOIsDaemonSetJobJobsStarted is an higher order func that returns the func that checks whether Jobs linked to a DaemonSetJob are started

func HOIsDaemonSetJobStarted

func HOIsDaemonSetJobStarted(workflowClient versioned.Interface, daemonsetjob *daemonsetjobv1.DaemonSetJob) func() error

HOIsDaemonSetJobStarted is an higher order func that returns the func that checks whether DaemonSetJob is started

func HOIsWorkflowCreatedFromCronWorkflow

func HOIsWorkflowCreatedFromCronWorkflow(workflowClient versioned.Interface, cronWorkflow *cwapiV1.CronWorkflow, namespace string) func() error

HOIsWorkflowCreatedFromCronWorkflow is an higher order func that returns the func to check wheter a Workflow has been created from a CronWorkflow

func HOIsWorkflowFinished

func HOIsWorkflowFinished(workflowClient versioned.Interface, workflow *wapi.Workflow, namespace string) func() error

HOIsWorkflowFinished is an higher order func that returns the func that checks whether a Workflow is finished

func HOIsWorkflowStarted

func HOIsWorkflowStarted(workflowClient versioned.Interface, workflow *wapi.Workflow, namespace string) func() error

HOIsWorkflowStarted is an higher order func that returns the func that checks whether Workflow is started

func HONoJobsShouldRemains

func HONoJobsShouldRemains(kubeClient clientset.Interface, labelSelector, namespace string) func() error

HONoJobsShouldRemains is an higher order func that returns the func that checks whether some jobs are still present

func HONoWorkflowsShouldRemains

func HONoWorkflowsShouldRemains(workflowClient versioned.Interface, namespace string) func() error

HONoWorkflowsShouldRemains is an higher order func that returns the func that checks whether some workflows are still present

func HOUpdateDaemonSetJob

func HOUpdateDaemonSetJob(workflowClient versioned.Interface, daemonsetjob *daemonsetjobv1.DaemonSetJob) func() error

HOUpdateDaemonSetJob is an higher order func that returns the func to update a DaemonSetJob

func IsWorkflowFailedDueDeadline

func IsWorkflowFailedDueDeadline(w *wapi.Workflow) bool

IsWorkflowFailedDueDeadline check whether a workflow failed due a deadline

func Logf

func Logf(format string, args ...interface{})

Logf logs in e2e framework

func NewDaemonSetJob

func NewDaemonSetJob(group, version, name, namespace string, nodeSelector map[string]string) *daemonsetjobv1.DaemonSetJob

NewDaemonSetJob return new DaemonSetJob instance

func NewOneStepCronWorkflow

func NewOneStepCronWorkflow(version, name, namespace string) *cwapiV1.CronWorkflow

NewOneStepCronWorkflow creates a CronWorkflow generating single step workflows

func NewTwoStepsCronWorkflow

func NewTwoStepsCronWorkflow(version, name, namespace string) *cwapiV1.CronWorkflow

NewTwoStepsCronWorkflow creates a CronWorkflow generating two steps workflows

func NewWorkflow

func NewWorkflow(group, version, name, namespace string, activeDeadlineSeconds *int64) *wapi.Workflow

NewWorkflow creates a workflow

func NewWorkflowStep

func NewWorkflowStep(name string, dependencies []string) *wapi.WorkflowStep

NewWorkflowStep creates a step for a workflow

func NewWorkflowWithLoop

func NewWorkflowWithLoop(group, version, name, namespace string) *wapi.Workflow

NewWorkflowWithLoop it creates an invalid (due to a loop in graph depencies) Workflow

func NewWorkflowWithThreeSteps

func NewWorkflowWithThreeSteps(group, version, name, namespace string) *wapi.Workflow

NewWorkflowWithThreeSteps it creates a valid Workflow with three steps

Types

type Framework

type Framework struct {
	KubeConfig *rest.Config
}

Framework stores necessary info to run e2e

func NewFramework

func NewFramework() (*Framework, error)

NewFramework creates and initializes the a Framework struct

Jump to

Keyboard shortcuts

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