Creating your own Workflow Templates
This guide shows two ways to publish your own Test Workflow Templates so they appear in the Dashboard wizard and can be reused across teams.
- Use kubectl for quick, ad-hoc rollout by a platform team.
- Use a small Helm chart to version and ship a curated catalog of templates.
See the Examples & Guides catalog and Workflow Templates docs for built‑in templates.
Option A: Apply a template with kubectl
- Create a
TestWorkflowTemplatewith the required labels so it shows up in the wizard:
Required Labels and Wizard Mapping
The Testkube Dashboard wizard uses specific labels to organize and display templates:
testkube.io/name: The display name shown on the template card in the wizard. Must be a valid Kubernetes label (no spaces, use hyphens or underscores).testkube.io/wizard: enabled: Makes the template visible in the Dashboard wizard. Without this label, the template won't appear in the UI.
Optional annotations that enhance the template card:
testkube.io/categories: Groups templates in the wizard (e.g., "Load & Performance", "API Testing", "Samples")testkube.io/description: Short description shown on the template cardtestkube.io/icon: Icon identifier for the template (e.g., "artillery", "postman")testkube.io/image: Container image shown as exampletestkube.io/example: YAML snippet shown in the template preview (users can copy this content)testkube.io/example-path: Path to example file within the template (accessible as/pathin the UI)
sample--echo--v1.yaml
apiVersion: testworkflows.testkube.io/v1
kind: TestWorkflowTemplate
metadata:
name: sample--echo--v1
labels:
testkube.io/name: Echo-Sample # must be a valid label (no spaces)
testkube.io/wizard: enabled
annotations:
testkube.io/categories: Samples
testkube.io/description: Minimal echo step
spec:
steps:
- name: Echo-hello
run:
image: alpine:3.20
shell: echo hello
- Apply it in the same namespace where Testkube is installed:
kubectl apply -n <your-namespace> -f sample--echo--v1.yaml
- The template will be visible in the wizard with the display name from
testkube.io/name. - Optional annotations that improve the card:
testkube.io/icon,testkube.io/image,testkube.io/example,testkube.io/example-path.