Skip to content

Commit 72a01c1

Browse files
Add Prow config for github.com/rhobs/configuration (#75560)
* Add Prow config for github.com/rhobs/configuration github.com/rhobs/configuration is a private repository holding configuration for the Observatorium resources (which are the underlying infrastructure for the OpenShift Telemeter server). Private GitHub repositories can't configure protected branches which is why we look for Prow to gate the merging of pull requests. Signed-off-by: Simon Pasquier <spasquie@redhat.com> * Remove cherrypicker plugin * Disable branch protection for rhobs/configuration The project is private but on a free plan which doesn't allow to enable branch protection. Signed-off-by: Simon Pasquier <spasquie@redhat.com> --------- Signed-off-by: Simon Pasquier <spasquie@redhat.com>
1 parent b068910 commit 72a01c1

7 files changed

Lines changed: 228 additions & 0 deletions

File tree

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
private: true
2+
expose: true
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# DO NOT EDIT; this file is auto-generated using https://github.com/openshift/ci-tools.
2+
# Fetched from https://github.com/rhobs/configuration root OWNERS
3+
# If the repo had OWNERS_ALIASES then the aliases were expanded
4+
# Logins who are not members of 'openshift' organization were filtered out
5+
# See the OWNERS docs: https://git.k8s.io/community/contributors/guide/owners.md
6+
7+
approvers:
8+
- philipgough
9+
- saswatamcode
10+
- moadz
11+
- xperimental
12+
- JoaoBraveCoding
13+
- dustman9000
14+
- simonpasquier
15+
options: {}
16+
reviewers:
17+
- philipgough
18+
- saswatamcode
19+
- moadz
20+
- xperimental
21+
- JoaoBraveCoding
22+
- dustman9000
23+
- simonpasquier
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
build_root:
2+
image_stream_tag:
3+
name: release
4+
namespace: openshift
5+
tag: rhel-9-release-golang-1.25-openshift-4.22
6+
resources:
7+
'*':
8+
limits:
9+
memory: 4Gi
10+
requests:
11+
cpu: 100m
12+
memory: 200Mi
13+
tests:
14+
- as: build
15+
commands: GOFLAGS= GOLANGCI_LINT_CACHE=/tmp make vendor_jsonnet grafana manifests
16+
prometheusrules format lint validate && git diff --exit-code
17+
container:
18+
from: src
19+
zz_generated_metadata:
20+
branch: main
21+
org: rhobs
22+
repo: configuration
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# DO NOT EDIT; this file is auto-generated using https://github.com/openshift/ci-tools.
2+
# Fetched from https://github.com/rhobs/configuration root OWNERS
3+
# If the repo had OWNERS_ALIASES then the aliases were expanded
4+
# Logins who are not members of 'openshift' organization were filtered out
5+
# See the OWNERS docs: https://git.k8s.io/community/contributors/guide/owners.md
6+
7+
approvers:
8+
- philipgough
9+
- saswatamcode
10+
- moadz
11+
- xperimental
12+
- JoaoBraveCoding
13+
- dustman9000
14+
- simonpasquier
15+
options: {}
16+
reviewers:
17+
- philipgough
18+
- saswatamcode
19+
- moadz
20+
- xperimental
21+
- JoaoBraveCoding
22+
- dustman9000
23+
- simonpasquier
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
presubmits:
2+
rhobs/configuration:
3+
- agent: kubernetes
4+
always_run: true
5+
branches:
6+
- ^main$
7+
- ^main-
8+
cluster: build01
9+
context: ci/prow/build
10+
decorate: true
11+
decoration_config:
12+
skip_cloning: true
13+
labels:
14+
ci.openshift.io/generator: prowgen
15+
pj-rehearse.openshift.io/can-be-rehearsed: "true"
16+
name: pull-ci-rhobs-configuration-main-build
17+
rerun_command: /test build
18+
spec:
19+
containers:
20+
- args:
21+
- --gcs-upload-secret=/secrets/gcs/service-account.json
22+
- --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson
23+
- --oauth-token-path=/usr/local/github-credentials/oauth
24+
- --report-credentials-file=/etc/report/credentials
25+
- --target=build
26+
command:
27+
- ci-operator
28+
env:
29+
- name: HTTP_SERVER_IP
30+
valueFrom:
31+
fieldRef:
32+
fieldPath: status.podIP
33+
image: quay-proxy.ci.openshift.org/openshift/ci:ci_ci-operator_latest
34+
imagePullPolicy: Always
35+
name: ""
36+
ports:
37+
- containerPort: 8080
38+
name: http
39+
resources:
40+
requests:
41+
cpu: 10m
42+
volumeMounts:
43+
- mountPath: /secrets/gcs
44+
name: gcs-credentials
45+
readOnly: true
46+
- mountPath: /usr/local/github-credentials
47+
name: github-credentials-openshift-ci-robot-private-git-cloner
48+
readOnly: true
49+
- mountPath: /secrets/manifest-tool
50+
name: manifest-tool-local-pusher
51+
readOnly: true
52+
- mountPath: /etc/pull-secret
53+
name: pull-secret
54+
readOnly: true
55+
- mountPath: /etc/report
56+
name: result-aggregator
57+
readOnly: true
58+
serviceAccountName: ci-operator
59+
volumes:
60+
- name: github-credentials-openshift-ci-robot-private-git-cloner
61+
secret:
62+
secretName: github-credentials-openshift-ci-robot-private-git-cloner
63+
- name: manifest-tool-local-pusher
64+
secret:
65+
secretName: manifest-tool-local-pusher
66+
- name: pull-secret
67+
secret:
68+
secretName: registry-pull-credentials
69+
- name: result-aggregator
70+
secret:
71+
secretName: result-aggregator
72+
trigger: (?m)^/test( | .* )build,?($|\s.*)
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
approve:
2+
- commandHelpLink: ""
3+
repos:
4+
- rhobs/configuration
5+
require_self_approval: false
6+
external_plugins:
7+
rhobs/configuration:
8+
- endpoint: http://refresh
9+
events:
10+
- issue_comment
11+
name: refresh
12+
- endpoint: http://needs-rebase
13+
events:
14+
- issue_comment
15+
- pull_request
16+
name: needs-rebase
17+
- endpoint: http://payload-testing-prow-plugin
18+
events:
19+
- issue_comment
20+
name: payload-testing-prow-plugin
21+
- endpoint: http://jira-lifecycle-plugin
22+
events:
23+
- issue_comment
24+
- pull_request
25+
name: jira-lifecycle-plugin
26+
- endpoint: http://pipeline-controller
27+
events:
28+
- pull_request
29+
- issue_comment
30+
name: pipeline-controller
31+
- endpoint: http://multi-pr-prow-plugin
32+
events:
33+
- issue_comment
34+
name: multi-pr-prow-plugin
35+
lgtm:
36+
- repos:
37+
- rhobs/configuration
38+
review_acts_as_lgtm: true
39+
plugins:
40+
rhobs/configuration:
41+
plugins:
42+
- assign
43+
- blunderbuss
44+
- cat
45+
- dog
46+
- heart
47+
- golint
48+
- goose
49+
- help
50+
- hold
51+
- jira
52+
- label
53+
- lgtm
54+
- lifecycle
55+
- override
56+
- pony
57+
- retitle
58+
- shrug
59+
- sigmention
60+
- skip
61+
- trigger
62+
- verify-owners
63+
- owners-label
64+
- wip
65+
- yuks
66+
- approve
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
branch-protection:
2+
orgs:
3+
rhobs:
4+
repos:
5+
configuration:
6+
unmanaged: true
7+
tide:
8+
queries:
9+
- labels:
10+
- approved
11+
- lgtm
12+
missingLabels:
13+
- backports/unvalidated-commits
14+
- do-not-merge/hold
15+
- do-not-merge/invalid-owners-file
16+
- do-not-merge/work-in-progress
17+
- jira/invalid-bug
18+
- needs-rebase
19+
repos:
20+
- rhobs/configuration

0 commit comments

Comments
 (0)