Skip to content
This repository has been archived by the owner on Sep 17, 2021. It is now read-only.

utilitywarehouse/gatekeeper-manifests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gatekeeper-manifests

Archived in favour of system-manifests/gatekeeper.

CircleCI

This repository provides Kustomize bases to deploy Open Policy Agent gatekeeper.

Usage

The resources are divided into two bases:

  • cluster - cluster scoped resources
  • namespaced - namespaced resources

Reference them in your kustomization.yaml, like so:

apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
bases:
  - github.com/utilitywarehouse/gatekeeper-manifests/cluster
  - github.com/utilitywarehouse/gatekeeper-manifests/namespaced

Define the gatekeeper configuration suitable for your environment.

Refer to the example/.

Note that you need to provide the ClusterRoleBinding for gatekeeper's service account. This is required in order to keep the base namespace-agnostic.

Update

To update the upstream version, edit HELM_VERSION in the Makefile and run:

make helm

Note: requires helm v3 and yq v3.

This will update the files:

Patch changes on top of the upstream in the patches:

Requires

go get -u sigs.k8s.io/kustomize

Testing

The kustomize build can be tested with make.

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

$ make install-git-hooks

Templates

Our library of ConstraintTemplates can also be pulled in as a base. See gatekeeper-template-manifests.