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

Add Prow and job config for bazelbuild/rules_k8s repo #1214

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all 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
4 changes: 4 additions & 0 deletions prow/oss/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ tide:
GoogleCloudPlatform/artifact-registry-yum-plugin: squash
GoogleCloudPlatform/blueprints: squash
kubeflow: squash
bazelbuild/rules_k8s: squash
merge_commit_template:
kubeflow:
title: "{{ .Title }} (#{{ .Number }})"
Expand All @@ -46,6 +47,7 @@ tide:
- GoogleCloudPlatform/oss-test-infra
- GoogleCloudPlatform/testgrid
- GoogleCloudPlatform/k8s-cloud-provider
- bazelbuild/rules_k8s
labels:
- lgtm
- approved
Expand Down Expand Up @@ -210,6 +212,8 @@ managed_webhooks:
auto_accept_invitation: true
# Config for orgs and repos that have been onboarded to this Prow instance.
org_repo_config:
bazelbuild/rules_k8s:
token_created_after: 2021-10-18T00:10:00Z
google/http_pattern_matcher:
token_created_after: 2021-03-15T00:10:00Z
googleforgames/agones:
Expand Down
22 changes: 22 additions & 0 deletions prow/oss/plugins.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ approve:
- googleforgames
- grpc-ecosystem
- chaotoppicks
- bazelbuild
require_self_approval: false
- repos:
- kubeflow/caffe2-operator
Expand All @@ -68,6 +69,7 @@ lgtm:
- googleforgames
- grpc-ecosystem
- chaotoppicks
- bazelbuild
review_acts_as_lgtm: true
- repos:
- GoogleCloudPlatform/testgrid
Expand Down Expand Up @@ -286,3 +288,23 @@ plugins:
- trigger
- verify-owners
- yuks

# Enable the following for any bazelbuild repo (rules_k8s, rules_docker) that sends prow webhooks
# Repos that do not send prow webhooks will see no effect.
bazelbuild:
plugins:
- approve # Allow OWNERS to /approve
- assign # Allow /assign and /cc
- blunderbuss # Auto-assign people
- cat # /meow replies with cat pictures
- dog # /bark replies with dog pictures
- help # Support /help and /good-first-issue
- hold # Support /hold to delay merge
- lgtm # Allow /lgtm
- lifecycle # Allow /lifecycle stale
- override
- size # Auto-label size of PR
- trigger # Allow people to configure CI jobs to /test
- verify-owners # Validates OWNERS file changes in PRs.
- wip # Auto-hold PRs with WIP in title
- yuks # Let prow tell a /joke
8 changes: 8 additions & 0 deletions prow/prowjobs/bazelbuild/rules_k8s/OWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# See the OWNERS docs at https://go.k8s.io/owners

reviewers:
- chizhg
- fejta
approvers:
- chizhg
- fejta
20 changes: 20 additions & 0 deletions prow/prowjobs/bazelbuild/rules_k8s/rules_k8s_config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
presubmits:
bazelbuild/rules_k8s:
- name: pull-rules-k8s-e2e
cluster: gke_rules-k8s_us-central1-f_testing
always_run: true
decorate: true
spec:
serviceAccount: prowjob-default-sa
containers:
- image: gcr.io/rules-k8s/gcloud-bazel:v20210501-v0.6-28-gaf2e97d
args:
- bash
- -c
- |
gcloud container clusters get-credentials testing --zone=us-central1-f --project=rules-k8s \
&& echo "startup --host_jvm_args=-Duser.name=prow" > /root/.bazelrc \
&& ./test-e2e.sh
env:
- name: USER
value: prow