Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/utilitywarehouse/gatekeeper-template-manifests
Kustomize base manifests for OPA gatekeeper templates
https://github.com/utilitywarehouse/gatekeeper-template-manifests
Last synced: about 2 hours ago
JSON representation
Kustomize base manifests for OPA gatekeeper templates
- Host: GitHub
- URL: https://github.com/utilitywarehouse/gatekeeper-template-manifests
- Owner: utilitywarehouse
- Created: 2019-09-05T09:27:27.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-06-10T08:18:14.000Z (7 months ago)
- Last Synced: 2024-11-19T21:35:57.565Z (about 1 month ago)
- Language: Open Policy Agent
- Homepage:
- Size: 79.1 KB
- Stars: 2
- Watchers: 11
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gatekeeper-template-manifests
![Github Actions](https://github.com/utilitywarehouse/gatekeeper-template-manifests/actions/workflows/test.yaml/badge.svg)
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
- https://github.com/kubernetes-sigs/kustomize
```
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
```