kubectl-ai
kubectl-ai copied to clipboard
add yaml validation
-
make sure the output is a valid (kubernetes) yaml by validating the yaml. example: https://github.com/yannh/kubeconform
-
if llm outputs non-valid yaml,
- prompt if user wants to retry and/or
- use the error for feedback back to llm for llm to fix its own mistake