Skip to content

john-pachec0/pre-commit-hooks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

pre-commit-hooks

Helpful hooks when working with kustomize

Installation

  1. Copy .pre-commit-config.yaml from this repo
  2. pre-commit uninstall to remove old config
  3. From within the git repo you want to install the hooks in, run pre-commit install -c <path-to-config>/.pre-commit-config.yaml

Explanation of hooks

  • id: delete-me Removes any files with deleteme in the name. Useful if you use the command kustomize build . > deleteme.yaml to test kustomize config
  • id: miss-kusto Checks if there are any committed yaml files that exist in a directory with a kustomization.yaml file that are not included in that file.
  • id: software-docks Generates a DOCS.md file with the software and versions maintained via ARGS in Dockerfile. It is assumed that ARGs are being used to install software, but care must be taken to keep ARGs updated or else documentation will not be accurate.

ARGs should be in format _VERSION="x.x.x"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages