Thanks to visit codestin.com
Credit goes to github.com

Skip to content

jkhelil/tekton-assist

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tekton Assistant

Tekton Assistant helps explain failed Pipelines/TaskRuns and guide remediation.

Tekton Assistant Overview

  • Pipeline Failure Analysis (Explain my failed pipeline)
    • Retrieves and analyzes logs, status, and events for a failed PipelineRun/TaskRun
    • Identifies the failed step and extracts relevant error messages
    • Produces a concise summary (e.g., "Step 'build' failed due to missing dependency X")
    • Suggests actionable fixes (e.g., permissions, image pull errors)
    • Examples: "Check if secret 'docker-creds' exists in namespace Y", "Verify registry authentication"

Using Gemini LLM

Build for local testing

go build ./cmd/diagnose

Use command line for local testing

OPENAI_API_KEY="$GEMINI_API_KEY" go run ./cmd/diagnose serve \
  --openai-base-url "https://generativelanguage.googleapis.com/v1beta/openai/" \
  --openai-model "gemini-2.5-flash" --debug

Deploy for local testing

KO_DOCKER_REPO=kind.local make apply

Test the deployment

curl -s "http://localhost:8080/taskrun/explainFailure?namespace=default&taskrun=pipelinerun-go-golangci-lint" | jq

About

Tekton AI Assitant

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • Go 92.4%
  • Makefile 4.3%
  • Smarty 2.3%
  • Shell 1.0%