This repository contain pre-commit hooks , witch helps for work with k8s manifests, for example, with Gitops flux approach
This hook automatically fix files for add mark of yaml server language in start of yaml document for well known custom kinds crd witch get in copyleft catalog . It usefull for IDE like vim and Visual Studio Code.
To use this hook add config below in .pre-commit-config.yaml
of your code project
repos:
- repo: https://github.com/w1ndblow/pre-commit-k8s-cdr
rev: 0.0.3
hooks:
- id: fix-mark-k8s-crd-yaml