The ct tool is a command-line application that supports configuration through three layers. If multiple sources are used, the order of precedence is:
- CLI flags (Highest priority)
- Environment variables
- Config file (Lowest priority)
Environment Variables
Environment variables must be prefixed with CT_. Use underscores instead of hyphens (e.g., --chart-dirs becomes CT_CHART_DIRS).
Config Files
ct supports any format compatible with Viper, including JSON, TOML, YAML, HCL, and Java properties files.
If no config file is explicitly specified, ct searches for ct.yaml (or other supported formats) in the following order:
- Current directory
$HOME/.ct/etc/ct
Linting Configuration
Linting requires configuration files for yamllint and yamale. If not specified, these are searched in:
- Current directory
.ct directory in current directory$HOME/.ct/etc/ct