The bannedk8skinds
hook has moved to: https://github.com/eitrtechnologies/pre-commit-yamlpolicy
pre-commit hook to deny commits of certain Kubernetes object types
See also: https://github.com/pre-commit/pre-commit
Add this to your .pre-commit-config.yaml
- repo: https://github.com/eitrtechnologies/pre-commit-bannedk8skinds
rev: v1.0.0 # Use the ref you want to point to
hooks:
- id: bannedk8skinds
Deny commits of certain Kubernetes object types. Defaults to Secret
--allow-multiple-documents
- allow yaml files which use the multi-document syntax--kinds
- Specify a comma-separated list of Kubernetes object types which will be denied in a commit to the repo.