init
The init command validates and normalizes a manifest file.
Usage
Description
The init command performs the following actions:
- Validates that the manifest file is properly formatted
- Checks that all required fields are present
- Normalizes image references (adds
latesttag if missing) - Validates that chart references are properly formatted
- Analyzes Helm charts for container image references
- Warns about potential missing images in the manifest
Image Reference Analysis
When you run the init command with a manifest that includes Helm charts, Capsailer will provide information about the image reference rewriting feature and warn you about potential missing images. This helps ensure that all required images are included in your manifest.
For example, if you have a Redis chart in your manifest but no Redis image, the init command will suggest adding the Redis image to your manifest.
Options
| Option | Description |
|---|---|
--manifest |
Path to the manifest file (required) |
--output |
Path to write the normalized manifest (optional) |
Examples
# Validate a manifest file
capsailer init --manifest manifest.yaml
# Validate and write the normalized manifest to a new file
capsailer init --manifest manifest.yaml --output normalized-manifest.yaml
Exit Codes
| Code | Description |
|---|---|
| 0 | Success |
| 1 | Invalid manifest format |
| 2 | Missing required fields |