Skip to content
This repository was archived by the owner on May 24, 2023. It is now read-only.

kubeshop/testkube-executor-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

DEPRECATED

This executor was moved into Testkube repository.

TestKube Logo

Welcome to TestKube Executor example

TestKube Executor eample is simple test which checks if GET request for URI returns 200 OK status - it's purpose was for showing how to extend testkube with custom executor.

What is executor

Executor is nothing more than program wrapped into Docker container which gets json (testube.Execution) OpenAPI based document, and returns stream of json output lines (testkube.ExecutorOutput) - each output line is simply wrapped in this JSON, like in structured logging idea.

Issues and enchancements

Please follow to main TestKube repository for reporting any issues or discussions

Running executor example

  1. Build and push dockerfile to some repository

  2. Register Executor Custom Resource in your cluster

apiVersion: executor.testkube.io/v1
kind: Executor
metadata:
  name: example-executor
  namespace: testkube
spec:
  executor_type: job
  image: kubeshop/testkube-example-executor:0.0.1 # pass your repository and tag
  types:
  - example/test
  volume_mount_path: /mnt/artifacts-storage
  volume_quantity: 10Gix

Set up volumes as in following example if you want to use artifacts storage (can be downloaded later in dashboard or by kubectl testkube plugin)

Other examples

About

No description, website, or topics provided.

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •