Skip to content

CLI Reference | kapitan lint

kapitan lint

Perform a checkup on your inventory or refs.

./kapitan lint
click to expand output
Running yamllint on all inventory files...

.yamllint not found. Using default values
File ./inventory/classes/components/echo-server.yml has the following issues:
        95:29: forbidden implicit octal value "0550" (octal-values)
File ./inventory/classes/terraform/gcp/services.yml has the following issues:
        15:11: duplication of key "enable_compute_service" in mapping (key-duplicates)

Total yamllint issues found: 2

Checking for orphan classes in inventory...

No usage found for the following 6 classes:
{'components.argoproj.cd.argocd-server-oidc',
'components.helm.cert-manager-helm',
'components.rabbitmq-operator.rabbitmq-configuration',
'components.rabbitmq-operator.rabbitmq-operator',
'features.gkms-demo',
'projects.localhost.kubernetes.katacoda'}

Flags

The table below is generated from Kapitan's argument parser at docs-build time, so it always matches the installed version. See also the global flags accepted by every command, and the .kapitan dotfile to set any of these permanently.

Flag Default Choices Description
--fail-on-warning False exit with failure code if warnings exist, default is False
--skip-class-checks False skip checking for unused classes, default is False
--skip-yamllint False skip running yamllint on inventory, default is False
--search-secrets False searches for plaintext secrets in inventory, default is False
--refs-path ./refs set refs path, default is "./refs"
--compiled-path ./compiled set compiled path, default is "./compiled"
--inventory-path ./inventory set inventory path, default is "./inventory"
Share this page