Documentation ¶
Index ¶
- func NewJobSpec(id, namespace, image, jsn string) *batchv1.Job
- type JobClient
- func (c *JobClient) AbortK8sJob(jobName string) *testkube.ExecutionResult
- func (c *JobClient) CreatePersistentVolume(name string) error
- func (c *JobClient) CreatePersistentVolumeClaim(name string) error
- func (c *JobClient) GetJobPods(podsClient pods.PodInterface, jobName string, retryNr, retryCount int) (*v1.PodList, error)
- func (c *JobClient) GetPodLogs(podName string) (logs []byte, err error)
- func (c *JobClient) LaunchK8sJob(image string, repo result.Repository, execution testkube.Execution) (result testkube.ExecutionResult, err error)
- func (c *JobClient) TailJobLogs(id string) (logs chan []byte, err error)
- func (c *JobClient) TailPodLogs(ctx context.Context, podName string) (logs chan []byte, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewJobSpec ¶ added in v0.6.4
Types ¶
type JobClient ¶
type JobClient struct { ClientSet *kubernetes.Clientset Repository result.Repository Namespace string Cmd string Log *zap.SugaredLogger }
func NewJobClient ¶
func (*JobClient) AbortK8sJob ¶
func (c *JobClient) AbortK8sJob(jobName string) *testkube.ExecutionResult
func (*JobClient) CreatePersistentVolume ¶
func (*JobClient) CreatePersistentVolumeClaim ¶
func (*JobClient) GetJobPods ¶ added in v0.6.4
func (*JobClient) GetPodLogs ¶
func (*JobClient) LaunchK8sJob ¶
func (c *JobClient) LaunchK8sJob(image string, repo result.Repository, execution testkube.Execution) (result testkube.ExecutionResult, err error)
LaunchK8sJob launches new job and run executor of given type TODO consider moving storage based operation up in hierarchy
func (*JobClient) TailJobLogs ¶ added in v0.6.4
TailJobLogs - locates logs for job pod(s)
Click to show internal directories.
Click to hide internal directories.