release lint
Lint a directory of application manifest files. For more information, see Linter Rules.
Usage
replicated release lint --yaml-dir YAML_DIR [flags]
YAML_DIR
corresponds to the root directory of the YAML application manifest files.- Returns exit code 1 when an error in linting is discovered. Otherwise, returns exit codse 0 (such as for info and warning messages).
Flag | Type (if applicable) | Description |
---|---|---|
--yaml-dir | path | The directory containing multiple YAML manifest files for a release. (Required) |
--fail-on | string | The minimum severity of a linting rule to cause a non-zero exit code. Supported values are info , warn , error , none . Default: Error |
-h, --help | Help for the command. |
Examples
replicated release lint --yaml-dir ./manifests --fail-on error
RULE TYPE LINE MESSAGE
config-spec warn Missing config spec
replicas-1 info 10 Found Replicas 1
container-resource-requests info 27 Missing resource requests