Skip to content

utilitywarehouse/gatekeeper-template-manifests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gatekeeper-template-manifests

Github Actions

This repository provides a library of Open Policy Agent gatekeeper ConstraintTemplates as a Kustomize base.

Usage

Reference the base in your kustomization.yaml, like so:

apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
bases:
  - github.com/utilitywarehouse/gatekeeper-template-manifests/base?ref=1.2.4

Refer to the example/.

Requires

go get -u sigs.k8s.io/kustomize

Testing

The rego policies, ConstraintTemplates and kustomize build can be tested with make.

Or the tests can be ran separately:

$ make opa
$ make template
$ make kustomize

You can also install a pre-push git hook that will run the tests on push:

$ make install-git-hooks

About

Kustomize base manifests for OPA gatekeeper templates

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages