Skip to content

Commit 02d7b10

Browse files
committed
Add Prow and job config for bazelbuild/rules_k8s repo
1 parent 6b5f606 commit 02d7b10

File tree

4 files changed

+51
-0
lines changed

4 files changed

+51
-0
lines changed

prow/oss/config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ tide:
2525
GoogleCloudPlatform/artifact-registry-yum-plugin: squash
2626
GoogleCloudPlatform/blueprints: squash
2727
kubeflow: squash
28+
bazelbuild/rules_k8s: squash
2829
merge_commit_template:
2930
kubeflow:
3031
title: "{{ .Title }} (#{{ .Number }})"
@@ -46,6 +47,7 @@ tide:
4647
- GoogleCloudPlatform/oss-test-infra
4748
- GoogleCloudPlatform/testgrid
4849
- GoogleCloudPlatform/k8s-cloud-provider
50+
- bazelbuild/rules_k8s
4951
labels:
5052
- lgtm
5153
- approved
@@ -210,6 +212,8 @@ managed_webhooks:
210212
auto_accept_invitation: true
211213
# Config for orgs and repos that have been onboarded to this Prow instance.
212214
org_repo_config:
215+
bazelbuild/rules_k8s:
216+
token_created_after: 2021-10-18T00:10:00Z
213217
google/http_pattern_matcher:
214218
token_created_after: 2021-03-15T00:10:00Z
215219
googleforgames/agones:

prow/oss/plugins.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,3 +286,23 @@ plugins:
286286
- trigger
287287
- verify-owners
288288
- yuks
289+
290+
# Enable the following for any bazelbuild repo (rules_k8s, rules_docker) that sends prow webhooks
291+
# Repos that do not send prow webhooks will see no effect.
292+
bazelbuild:
293+
plugins:
294+
- approve # Allow OWNERS to /approve
295+
- assign # Allow /assign and /cc
296+
- blunderbuss # Auto-assign people
297+
- cat # /meow replies with cat pictures
298+
- dog # /bark replies with dog pictures
299+
- help # Support /help and /good-first-issue
300+
- hold # Support /hold to delay merge
301+
- lgtm # Allow /lgtm
302+
- lifecycle # Allow /lifecycle stale
303+
- override
304+
- size # Auto-label size of PR
305+
- trigger # Allow people to configure CI jobs to /test
306+
- verify-owners # Validates OWNERS file changes in PRs.
307+
- wip # Auto-hold PRs with WIP in title
308+
- yuks # Let prow tell a /joke
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# See the OWNERS docs at https://go.k8s.io/owners
2+
3+
reviewers:
4+
- chizhg
5+
- fejta
6+
approvers:
7+
- chizhg
8+
- fejta
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
presubmits:
2+
bazelbuild/rules_k8s:
3+
- name: pull-rules-k8s-e2e
4+
always_run: true
5+
decorate: true
6+
spec:
7+
serviceAccount: prowjob-default-sa
8+
containers:
9+
- image: gcr.io/rules-k8s/gcloud-bazel:v20210501-v0.6-28-gaf2e97d
10+
args:
11+
- bash
12+
- -c
13+
- |
14+
gcloud container clusters get-credentials testing --zone=us-central1-f --project=rules-k8s \
15+
&& echo "startup --host_jvm_args=-Duser.name=prow" > /root/.bazelrc \
16+
&& ./test-e2e.sh
17+
env:
18+
- name: USER
19+
value: prow

0 commit comments

Comments
 (0)