KubeLinterStorage#
- class phalanx.storage.kube_linter.KubeLinterStorage(config_path)#
Bases:
objectStorage layer for running kube-linter.
kube-linter checks rendered Kubernetes resources for problems that helm lint cannot see, such as two environment variables with the same name in one container. The checks to run are configured in the
.kube-linter.yamlfile at the root of the Phalanx repository.- Parameters:
config_path (
Path) – Path to the kube-linter configuration file.
Methods Summary
lint_application(application, environment, ...)Run kube-linter on the resources of an application.
Methods Documentation
- lint_application(application, environment, resources)#
Run kube-linter on the resources of an application.
Any lint errors are sent to standard output, and a failure message is printed to standard error.
- Parameters:
- Returns:
Whether the check passed.
- Return type: