Skip to content

Commit

Permalink
Add support for falco-aws-terraform repo
Browse files Browse the repository at this point in the history
Following the example of
https://github.com/falcosecurity/test-infra#create-a-presubmits-job-that-runs-tests-on-prs
and #515.

Signed-off-by: Mark Stemm <mark.stemm@gmail.com>
  • Loading branch information
mstemm authored and poiana committed Apr 8, 2022
1 parent 5d6fb7c commit ed81e40
Show file tree
Hide file tree
Showing 4 changed files with 91 additions and 0 deletions.
19 changes: 19 additions & 0 deletions config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,10 @@ branch-protection:
branches:
master:
protect: true
falco-aws-terraform:
branches:
master:
protect: true
falco-exporter:
branches:
master:
Expand Down Expand Up @@ -261,6 +265,7 @@ tide:
falcosecurity/falco: rebase
falcosecurity/falcosidekick: rebase
falcosecurity/falcosidekick-ui: rebase
falcosecurity/falco-aws-terraform: rebase
falcosecurity/falco-exporter: rebase
falcosecurity/falcoctl: rebase
falcosecurity/falco-website: rebase
Expand Down Expand Up @@ -531,6 +536,20 @@ tide:
- do-not-merge/release-note-label-needed
- needs-rebase
reviewApprovedRequired: true
- repos:
- falcosecurity/falco-aws-terraform
labels:
- approved
- lgtm
- "dco-signoff: yes"
missingLabels:
- do-not-merge
- do-not-merge/hold
- do-not-merge/invalid-owners-file
- do-not-merge/work-in-progress
- do-not-merge/release-note-label-needed
- needs-rebase
reviewApprovedRequired: true
- repos:
- falcosecurity/falco-exporter
labels:
Expand Down
20 changes: 20 additions & 0 deletions config/jobs/build-aws-terraform/build-aws-terraform.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
presubmits:
falcosecurity/falco-aws-terraform:
- name: build-aws-terraform
decorate: true
skip_report: false
agent: kubernetes
always_run: true # Run for every PR, but master
path_alias: github.com/falcosecurity/falco-aws-terraform
spec:
containers:
- command:
- /home/prow/go/src/github.com/falcosecurity/falco-aws-terraform/presubmit.sh
image: hashicorp/terraform:latest
imagePullPolicy: Always
resources:
requests:
cpu: 1500m #m5large is 2vpcu and 8gb ram so this 75% of a node
memory: 3Gi
nodeSelector:
Archtype: "x86"
15 changes: 15 additions & 0 deletions config/org.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ orgs:
allow_squash_merge: false
description: Prometheus Metrics Exporter for Falco output events
has_projects: true
falco-aws-terraform:
default_branch: main
has_projects: true
falco-website:
description: Hugo content to generate website content. Hosted by the CNCF
has_projects: true
Expand Down Expand Up @@ -289,6 +292,17 @@ orgs:
privacy: closed
repos:
evolution: maintain
falco-aws-terraform-maintainers:
description: ""
maintainers:
- mstemm
- leogr
- jasondellaluce
- loris
- zuc
privacy: closed
repos:
falco-aws-terraform: maintain
falco-exporter-maintainers:
description: maintainers of falco-exporter
maintainers:
Expand Down Expand Up @@ -399,6 +413,7 @@ orgs:
event-generator: admin
evolution: admin
falco: admin
falco-aws-terraform: admin
falco-exporter: admin
falco-website: admin
falcoctl: admin
Expand Down
37 changes: 37 additions & 0 deletions config/plugins.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ approve:
- falcosecurity/falcoctl
- falcosecurity/falcosidekick
- falcosecurity/falcosidekick-ui
- falcosecurity/falco-aws-terraform
- falcosecurity/falco-exporter
- falcosecurity/falco-website
- falcosecurity/katacoda-scenarios
Expand Down Expand Up @@ -80,6 +81,7 @@ lgtm:
- falcosecurity/falcoctl
- falcosecurity/falcosidekick
- falcosecurity/falcosidekick-ui
- falcosecurity/falco-aws-terraform
- falcosecurity/falco-exporter
- falcosecurity/falco-website
- falcosecurity/katacoda-scenarios
Expand Down Expand Up @@ -221,6 +223,14 @@ require_matching_label:
missing_comment: |
There is not a label identifying the kind of this PR.
Please specify it either using `/kind <group>` or manually from the side menu.
- missing_label: needs-kind
org: falcosecurity
repo: falco-aws-terraform
issues: true
regexp: ^kind/
missing_comment: |
There is not a label identifying the kind of this issue.
Please specify it either using `/kind <group>` or manually from the side menu.
- missing_label: needs-kind
org: falcosecurity
repo: falco-exporter
Expand Down Expand Up @@ -653,6 +663,29 @@ plugins:
- verify-owners
- welcome
- wip
falcosecurity/falco-aws-terraform:
plugins:
- approve
- assign
- blunderbuss
- branchcleaner
- cat
- dco
- dog
- goose
- help
- hold
- label
- lifecycle
- lgtm
- mergecommitblocker
- require-matching-label
- retitle
- size
- trigger
- verify-owners
- welcome
- wip
falcosecurity/falco-exporter:
plugins:
- approve
Expand Down Expand Up @@ -989,6 +1022,10 @@ external_plugins:
- name: needs-rebase
events:
- pull_request
falcosecurity/falco-aws-terraform:
- name: needs-rebase
events:
- pull_request
falcosecurity/falco-exporter:
- name: needs-rebase
events:
Expand Down

0 comments on commit ed81e40

Please sign in to comment.