Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wip: Introduce the in-repo-config for evolution repo #841

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,19 @@ sinker:
max_pod_age: 24h
terminated_pod_ttl: 2h

in_repo_config:
enabled:
# The key can be one of "*" for "globally", "org" or "org/repo".
# The narrowest match is used. Here the key is "kubernetes/kubernetes".
falcosecurity/evolution: true

# Clusters must be allowed before they can be used. Here we allow the "default"
# cluster globally. This setting also allows using "*" for "globally", "org" or "org/repo" as key.
# All clusters that are allowed for the specific repo, its org or
# globally can be used.
allowed_clusters:
falcosecurity/evolution: ["default"]

branch-protection:
enforce_admins: true # rules apply to admins too!
restrictions: # restrict who can push
Expand Down
51 changes: 34 additions & 17 deletions config/jobs/check-prow-config/check-prow-config.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,39 @@
presubmits:
falcosecurity/test-infra:
- name: check-prow-config
branches:
- ^master$
decorate: true
skip_report: false
always_run: true
spec:
containers:
- image: gcr.io/k8s-prow/checkconfig:v20220901-5db9cf5fa2
command:
- checkconfig
args:
- --config-path=config/config.yaml
- --job-config-path=config/jobs
- --plugin-config=config/plugins.yaml
nodeSelector:
Archtype: "x86"
- name: check-prow-config
branches:
- ^master$
decorate: true
skip_report: false
always_run: true
spec:
containers:
- image: gcr.io/k8s-prow/checkconfig:v20220901-5db9cf5fa2
command:
- checkconfig
args:
- --config-path=config/config.yaml
- --job-config-path=config/jobs
- --plugin-config=config/plugins.yaml
nodeSelector:
Archtype: "x86"
falcosecurity/evolution:
- name: check-prow-config-evolution
maxgio92 marked this conversation as resolved.
Show resolved Hide resolved
always_run: true
decorate: true
extra_refs:
- org: falcosecurity
repo: test-infra
base_ref: master
spec:
containers:
- image: gcr.io/k8s-prow/checkconfig:v20220901-5db9cf5fa2
command:
- checkconfig
args:
- --plugin-config=../test-infra/config/plugins.yaml
- --config-path=../test-infra/config/config.yaml
- --prow-yaml-repo-name=$(REPO_OWNER)/$(REPO_NAME)
periodics:
- name: check-prow-config-periodic
interval: 1h
Expand Down