Helm:debug

From kagenti/kagenti · View interactive version

Helm:debug is an AI agent skill from the GitHub repository kagenti/kagenti. Debug Helm chart issues - template rendering, value overrides, hook failures

How to use this skill

Skill file

Debug Helm Charts

Context-Safe Execution (MANDATORY)

Helm template output can be hundreds of lines. Always redirect to files:

export LOG_DIR="${LOG_DIR:-${WORKSPACE_DIR:-/tmp}/rossoctl-helm}"
mkdir -p "$LOG_DIR"

# Redirect helm template output
helm template rossoctl charts/rossoctl -n rossoctl-system > $LOG_DIR/rendered.yaml 2>&1 && echo "OK" || echo "FAIL"
# Analyze in subagent: Task(subagent_type='Explore') with Grep to find specific templates/values

When to Use

Template Debugging

Render templates locally without installing:

helm template rossoctl charts/rossoctl -n rossoctl-system -f charts/rossoctl/.secrets.yaml

Render a specific template:

helm template rossoctl charts/rossoctl -n rossoctl-system -s templates/ui-oauth-secret-job.yaml

Compare rendered output with what's deployed:

helm get manifest rossoctl -n rossoctl-system

Value Debugging

Show computed values:

helm get values rossoctl -n rossoctl-system

Show all values (including defaults):

helm get values rossoctl -n rossoctl-system -a

Show chart default values:

helm show values charts/rossoctl

Release Debugging

Check release status:

helm status rossoctl -n rossoctl-system

Check release history:

helm history rossoctl -n rossoctl-system

Hook Debugging

Hooks run as Jobs. Check their status:

kubectl get jobs -n rossoctl-system

Check hook job logs:

kubectl logs -n rossoctl-system job/<hook-job-name>

Dependency Issues

Update chart dependencies:

helm dependency update charts/rossoctl

List dependencies:

helm dependency list charts/rossoctl

Common Issues

| Issue | Cause | Fix |

|-------|-------|-----|

| UPGRADE FAILED: another operation in progress | Stale lock | kubectl delete secret -n rossoctl-system -l status=pending-upgrade |

| Template render error | Bad YAML indent | Use helm template to see exact error |

| Values not applied | Wrong -f order | Later files override earlier ones |

| Hook timeout | Job takes too long | Check job logs, increase timeout |

Related Skills

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.