Skip to content

Commit

Permalink
feat(tikv/*): add job to sync prow OWNERS files (#2953)
Browse files Browse the repository at this point in the history
Signed-off-by: wuhuizuo <wuhuizuo@126.com>

Signed-off-by: wuhuizuo <wuhuizuo@126.com>
  • Loading branch information
wuhuizuo committed May 7, 2024
1 parent 0331217 commit c0cd1bd
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 6 deletions.
11 changes: 6 additions & 5 deletions prow-jobs/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,16 @@ configMapGenerator:
- ti-community-infra-periodics.yaml
- ti-community-infra-test-infra-postsubmits.yaml
- ti-community-infra-test-infra-presubmits.yaml
- tikv-community-postsubmits.yaml
- tikv-migration-latest-presubmits.yaml
- tikv-pd-latest-presubmits.yaml
- tikv-pd-release-6.1-presubmits.yaml
- tikv-pd-release-6.5-fips-presubmits.yaml
- tikv-pd-release-6.5-presubmits.yaml
- tikv-pd-release-7.1-presubmits.yaml
- tikv-tikv-latest-presubmits.yaml
- tikv-tikv-release-6.1-presubmits.yaml
- tikv-tikv-release-6.5-presubmits.yaml
- tikv-tikv-release-7.1-presubmits.yaml
- tikv-tikv-release-7.5-presubmits.yaml
- tikv-tikv-release-8.1-presubmits.yaml
- tikv-pd-latest-presubmits.yaml
- tikv-pd-release-6.1-presubmits.yaml
- tikv-pd-release-6.5-fips-presubmits.yaml
- tikv-pd-release-6.5-presubmits.yaml
- tikv-pd-release-7.1-presubmits.yaml
2 changes: 1 addition & 1 deletion prow-jobs/pingcap-community-postsubmits.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ postsubmits:
spec:
containers:
- name: main
image: denoland/deno:1.41.0
image: denoland/deno:1.43.1
command: [deno, run, --allow-all, https://github.com/PingCAP-QE/ci/raw/main/scripts/pingcap/community/update-prow-owners.ts]
args:
- --owner=pingcap
Expand Down
32 changes: 32 additions & 0 deletions prow-jobs/tikv-community-postsubmits.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# struct ref: https://pkg.go.dev/k8s.io/test-infra/prow/config#Presubmit
postsubmits:
tikv/community:
- name: create-updating-owners-pr
decorate: true
max_concurrency: 1
run_if_changed: teams/.*/team\.json
branches:
- master
spec:
containers:
- name: main
image: denoland/deno:1.43.1
command: [deno, run, --allow-all, https://github.com/PingCAP-QE/ci/raw/main/scripts/pingcap/community/update-prow-owners.ts]
args:
- --owner=tikv
- --github_private_token=$(GITHUB_API_TOKEN)
- --inputs=teams/pd/team.json
- --inputs=teams/tikv/team.json
env:
- name: GITHUB_API_TOKEN
valueFrom:
secretKeyRef:
key: token
name: github-token
resources:
limits:
cpu: "1"
memory: 1Gi
requests:
cpu: "1"
memory: 1Gi

0 comments on commit c0cd1bd

Please sign in to comment.