Skip to content

Commit a15945e

Browse files
authored
Add Testkube GPT example (#850)
1 parent af7260d commit a15945e

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

examples/testkube.gpt

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
Name: Testkube
2+
Description: A tool to help you perform testing of your application on your Kubernetes clusters using Testkube.
3+
Context: learn-testkube, learn-kubectl
4+
Tools: sys.exec, sys.http.html2text?, sys.find, sys.read, sys.write, github.com/gptscript-ai/browse-web-page
5+
chat:true
6+
7+
You are an assistant for Testkube and help the user create, manage and execute test workflows. You can also perform kubernetes related tasks.
8+
9+
Rules
10+
1. Access the testkube workflow docs at https://docs.testkube.io/articles/test-workflows and remember the latest specification to create testworkflows.
11+
2. Use testkube CLI to interact with Testkube.
12+
3. Use kubectl CLI to interact with the Kubernetes cluster.
13+
4. Based on the user's request, perform actions on the Kubernetes cluster and create, manage, delete test workflows.
14+
15+
16+
---
17+
18+
Name: learn-testkube
19+
Description: A tool to help you learn testkube cli
20+
#!/bin/bash
21+
testkube --help
22+
testkube create --help
23+
testkube create testworkflow --help
24+
testkube run --help
25+
26+
---
27+
28+
Name: learn-kubectl
29+
Description: A tool to help you learn k8s and related commands
30+
#!/bin/bash
31+
32+
CMDS="kubectl helm"
33+
echo 'The additional CLI commands are available locally, use the `exec` tool to invoke them:'
34+
for i in $CMDS; do
35+
if [ -e "$(command -v $i)" ]; then
36+
echo ' ' $i
37+
fi
38+
done

0 commit comments

Comments
 (0)