Skip to content
This repository has been archived by the owner on May 9, 2023. It is now read-only.
/ konstraint Public archive

An easy way to generate Gatekeeper contraintTemplates from Rego files.

License

Notifications You must be signed in to change notification settings

xunholy/konstraint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Konstraint

Intro

Konstraint is a tool to auto generate Kubernetes Gatekeeper constrainttemplate resources by parsing the Rego files directly.

Installation

Install konstraint using your preferred method.

go get github.com/xUnholy/konstraint

Usage

Use the CLI to generate Gatekeeper constrainttemplate resources:

konstraint template -p example/ -l example/libs -o yaml

Alternatively run the CLI using a Docker image for CI/CD:

docker run --rm --workdir /tmp/workspace \
  -v "$(pwd)":/tmp/workspace \
  xunholy/konstraint:latest \
  template -p example -l example/libs \
  -o yaml

About

An easy way to generate Gatekeeper contraintTemplates from Rego files.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published