Local Commands¶
Commands that render and inspect templates without connecting to a Kubernetes cluster.
Contents¶
| Command | Description |
|---|---|
| template | Render Helm templates |
| apps | Resolve app-id patterns to matching apps |
| find | Query rendered resources with CEL filters |
| source | Print unrendered template files from disk |
| config | Show global.hydra configuration |
| values | Display computed Helm values |
| list | Print sorted resource IDs |
| refs | List transitive references |
| inspect | Interactive TUI for browsing references |
| review | Validate rendered refs and ownership |
| test | Run application tests (test refs for ref-parser golden files) |
| export | Export dependency model for all clusters |
Common Usage¶
# Render a single app
hydra local template prod.cluster-infra.ingress-nginx
# List all apps of cluster prod
hydra local apps 'prod.**'
# Render all apps on a cluster
hydra local template 'prod.**'
# Search rendered resources
hydra local find 'prod.**' --include 'kind == "Deployment"' --pick 'name' --uniq
# Browse interactively
hydra local inspect prod
No Cluster Required¶
All hydra local commands work entirely offline. They render from the charts-repository and gitops-repository without contacting any Kubernetes API. This makes them safe for development and CI environments.