/prow-plugin-pingpong

This is a Prow external-plugin sample.

Primary LanguageGo

prow-plugin-pingpong

This is a Prow external-plugin sample. if you commented /ping on Github, Prow bot reply pong.

You can learn about Prow external-plugin from below links:

Docker image is here: https://hub.docker.com/repository/docker/bells17/pingpong

Deploy plugin

$ kubectl apply -f https://raw.githubusercontent.com/bells17/prow-plugin-pingpong/master/deploy.yaml

(Before deploying this plugin, you need a deployed Prow)

Enable plugin

Append a below setting to plugins.yaml.

external_plugins:
  <org>/<repo>:
  - name: pingpong
    endpoint: http://pingpong.default.svc.cluster.local:8888
    events:
    - issue_comment

And apply this settings as below:

$ kubectl create configmap plugins \
	--from-file=plugins.yaml=plugins.yaml --dry-run -o yaml \
	| kubectl replace configmap plugins -f -