Skip to content

Commit

Permalink
add opa gatekeeper
Browse files Browse the repository at this point in the history
  • Loading branch information
maciaszczykm committed Dec 11, 2024
1 parent 7199384 commit 9b5508e
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 9 deletions.
7 changes: 7 additions & 0 deletions catalogs/security/opa-gatekeeper/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# OPA Gatekeeper

This is a baseline, prod-ready OPA Gatekeeper installation using Plural.

## Contributing

If there are any features or documentation you'd like to add to this setup, please feel free to contribute back at https://github.com/pluralsh/scaffolds.
8 changes: 8 additions & 0 deletions catalogs/security/opa-gatekeeper/helmrepository.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
name: opa-gatekeeper
namespace: apps
spec:
interval: 5m0s
url: https://open-policy-agent.github.io/gatekeeper/charts
5 changes: 0 additions & 5 deletions catalogs/security/trivy-operator/helm/values.yaml.liquid

This file was deleted.

33 changes: 33 additions & 0 deletions setup/catalogs/security/opa-gatekeeper.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
apiVersion: deployments.plural.sh/v1alpha1
kind: PrAutomation
metadata:
name: opa-gatekeeper
spec:
name: opa-gatekeeper
icon: https://www.openpolicyagent.org/img/logos/opa-no-text-color.png
documentation: |
Sets up an OPA Gatekeeper policy controller
creates:
git:
ref: sebastian/prod-2981-set-up-catalog-pipeline # TODO set to main
folder: catalogs/security/opa-gatekeeper
templates:
- source: README.md
destination: documentation/opa-gatekeeper/README.md
external: true
- source: helmrepository.yaml
destination: "bootstrap/apps/opa-gatekeeper/{{ context.cluster }}/helmrepository.yaml"
external: true
repositoryRef:
name: scaffolds
catalogRef:
name: security
scmConnectionRef:
name: plural # you'll need to add this ScmConnection manually before this is functional
title: "OPA Gatekeeper setup ({{ context.cluster }})"
message: "Sets up OPA Gatekeeper on {{ context.cluster }} cluster."
identifier: pluralsh/plrl-dev-aws # FIXME
configuration:
- name: cluster
type: STRING
documentation: the cluster you want to deploy to
5 changes: 1 addition & 4 deletions setup/catalogs/security/trivy-operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ spec:
- source: README.md
destination: documentation/trivy-operator/README.md
external: true
- source: helm/values.yaml.liquid
destination: helm/trivy-operator/{{ context.cluster }}.yaml.liquid
external: true
- source: helmrepository.yaml
destination: "bootstrap/apps/trivy-operator/{{ context.cluster }}/helmrepository.yaml"
external: true
Expand All @@ -31,7 +28,7 @@ spec:
scmConnectionRef:
name: plural # you'll need to add this ScmConnection manually before this is functional
title: "Trivy Operator setup ({{ context.cluster }})"
message: "Sets up Trivy Operator on cluster {{ context.cluster }}."
message: "Sets up Trivy Operator on {{ context.cluster }} cluster."
identifier: pluralsh/plrl-dev-aws # FIXME
configuration:
- name: cluster
Expand Down

0 comments on commit 9b5508e

Please sign in to comment.