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: 3 months 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 (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-09-27T15:37:24.000Z (about 3 years ago)
- Last Synced: 2024-05-29T08:10:17.456Z (6 months ago)
- Language: Open Policy Agent
- Homepage:
- Size: 87.9 KB
- Stars: 2
- Watchers: 11
- Forks: 1
- Open Issues: 1
-
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
```