Skip to content
This repository has been archived by the owner on Aug 5, 2022. It is now read-only.

puppetlabs/pre-commit-docker-kustomize

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pre-commit-docker-kustomize

This is a pre-commit hook forked from https://github.com/dmitri-lerko/pre-commit-docker-kustomize.

Docker image is based on https://github.com/lyft/kustomizer, but added github.com into known hosts and not running this image as root. This modification allows for remote refs in your kustomize. Other git providers will probably won't work and require further changes. Please raise an issue.

Example of .pre-commit-config.yaml that verifies that 3 overlays are not broken

# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
-   repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v2.4.0
    hooks:
    -   id: check-yaml
        args: [--allow-multiple-documents]
    -   id: check-added-large-files
-   repo: https://github.com/puppetlabs/pre-commit-docker-kustomize
    rev: v4.5.5
    hooks:
    -   id: kustomize
        name: kustomize-development
        args: [overlays/development]
        verbose: false
    -   id: kustomize
        name: kustomize-staging
        args: [overlays/staging]
        verbose: false
    -   id: kustomize
        name: kustomize-production
        args: [overlays/production]
        verbose: false

About

pre-commit hook which runs kustomize docker image (use with https://github.com/pre-commit/pre-commit)

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dockerfile 100.0%