example/

directory
v1.11.30-beta005 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: MIT, MIT

README

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

Directories

Path Synopsis
cmd
pkg

Jump to

Keyboard shortcuts

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