Skip to content

Commit

Permalink
config: add owners config (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rustin170506 authored Oct 28, 2020
1 parent 83dd91f commit aa36b18
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion cmd/ticommunitylgtm/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func gatherOptions() options {
fs := flag.NewFlagSet(os.Args[0], flag.ExitOnError)
fs.IntVar(&o.port, "port", 80, "Port to listen on.")
fs.StringVar(&o.externalPluginsConfig, "external-plugins-config",
"/etc/plugins/external-plugins.yaml", "Path to external plugin config file.")
"/etc/plugins/external_plugins_config.yaml", "Path to external plugin config file.")
fs.BoolVar(&o.dryRun, "dry-run", true, "Dry run for testing. Uses API tokens but does not mutate.")
fs.StringVar(&o.webhookSecretFile, "hmac-secret-file",
"/etc/webhook/hmac", "Path to the file containing the GitHub HMAC secret.")
Expand Down
2 changes: 1 addition & 1 deletion cmd/ticommunitymerge/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func gatherOptions() options {
fs := flag.NewFlagSet(os.Args[0], flag.ExitOnError)
fs.IntVar(&o.port, "port", 80, "Port to listen on.")
fs.StringVar(&o.externalPluginsConfig, "external-plugins-config",
"/etc/plugins/external-plugins.yaml", "Path to external plugin config file.")
"/etc/plugins/external_plugins_config.yaml", "Path to external plugin config file.")
fs.BoolVar(&o.dryRun, "dry-run", true, "Dry run for testing. Uses API tokens but does not mutate.")
fs.StringVar(&o.webhookSecretFile, "hmac-secret-file",
"/etc/webhook/hmac", "Path to the file containing the GitHub HMAC secret.")
Expand Down
2 changes: 1 addition & 1 deletion cmd/ticommunityowners/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func gatherOptions() options {
fs.IntVar(&o.port, "port", 80, "Port to listen on.")
fs.BoolVar(&o.dryRun, "dry-run", true, "Dry run for testing. Uses API tokens but does not mutate.")
fs.StringVar(&o.externalPluginsConfig, "external-plugins-config",
"/etc/plugins/external-plugins.yaml", "Path to external plugin config file.")
"/etc/plugins/external_plugins_config.yaml", "Path to external plugin config file.")
fs.StringVar(&o.webhookSecretFile, "hmac-secret-file",
"/etc/webhook/hmac", "Path to the file containing the GitHub HMAC secret.")

Expand Down
2 changes: 1 addition & 1 deletion configs/prow/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ configs: config/config.yaml
kubectl create configmap config -n prow --from-file=config.yaml=config/config.yaml --dry-run -o yaml | kubectl replace configmap config -n prow -f -

external-plugins-config: config/external_plugins_config.yaml
kubectl create configmap external-plugins-config -n prow --from-file=external-plugins.yaml=config/external_plugins_config.yaml --dry-run -o yaml | kubectl replace configmap external-plugins-config -n prow -f -
kubectl create configmap external-plugins-config -n prow --from-file=external_plugins_config.yaml=config/external_plugins_config.yaml --dry-run -o yaml | kubectl replace configmap external-plugins-config -n prow -f -

labels: config/labels.yaml
kubectl create configmap labels-config -n prow --from-file=labels.yaml=config/labels.yaml --dry-run -o yaml | kubectl replace configmap labels-config -n prow -f -
Expand Down
2 changes: 1 addition & 1 deletion configs/prow/cluster/ti_community_lgtm_deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ spec:
terminationGracePeriodSeconds: 180
containers:
- name: ti-community-lgtm
image: rustinliu/ti-community-lgtm-prow-plugin:v0.3.1
image: rustinliu/ti-community-prow-lgtm-plugin:v0.5.0
imagePullPolicy: Always
args:
- --dry-run=false
Expand Down
2 changes: 1 addition & 1 deletion configs/prow/cluster/ti_community_merge_deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ spec:
terminationGracePeriodSeconds: 180
containers:
- name: ti-community-merge
image: rustinliu/ti-community-merge-prow-plugin:v0.1.1
image: rustinliu/ti-community-prow-merge-plugin:v0.5.0
imagePullPolicy: Always
args:
- --dry-run=false
Expand Down
2 changes: 1 addition & 1 deletion configs/prow/cluster/ti_community_owners_deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ spec:
terminationGracePeriodSeconds: 180
containers:
- name: ti-community-owners
image: rustinliu/ti-community-owners-prow-plugin:v0.0.5
image: rustinliu/ti-community-prow-owners-plugin:v0.5.0
imagePullPolicy: Always
args:
- --dry-run=false
Expand Down
7 changes: 6 additions & 1 deletion configs/prow/config/external_plugins_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,9 @@ ti-community-merge:
- repos:
- tikv/community
store_tree_hash: true
pull_owners_url: https://bots.tidb.io/ti-community-bot
pull_owners_url: https://bots.tidb.io/ti-community-bot

ti-community-owners:
- repos:
- tidb-community-bots/test-dev
sig_endpoint: https://bots.tidb.io/ti-community-bot

0 comments on commit aa36b18

Please sign in to comment.