acs-engine/.prowci
Michalis Kargakis 3c4d8d41ca Prow updates (#3189)
* Use implicit self approvals and lgtm acts as approve

* Sync k8s manifests with cluster state
2018-06-06 10:29:48 -07:00
..
.gitignore Setup prow CI (#2923) 2018-05-23 15:53:53 -07:00
Makefile Setup prow CI (#2923) 2018-05-23 15:53:53 -07:00
README.md Setup prow CI (#2923) 2018-05-23 15:53:53 -07:00
config.yaml Drop redundant prowjob namespace (#3160) 2018-06-04 16:57:52 -04:00
deck.yaml Setup prow CI (#2923) 2018-05-23 15:53:53 -07:00
hook.yaml Prow updates (#3189) 2018-06-06 10:29:48 -07:00
ingress.yaml Setup prow CI (#2923) 2018-05-23 15:53:53 -07:00
plugins.yaml Prow updates (#3189) 2018-06-06 10:29:48 -07:00
tide.yaml Prow updates (#3189) 2018-06-06 10:29:48 -07:00

README.md

Prow

Prow is a CI system that offers various features such as rich Github automation, and running tests in Jenkins or on a Kubernetes cluster. You can read more about Prow in upstream docs.

acs-engine setup

Prow is optimized to run as a Kubernetes application. There are some pre-installation steps that need to happen in a new Kubernetes cluster before deploying Prow. These involve setting up an Ingress controller and a mechanism to do TLS. The Azure docs explain how to setup Ingress with TLS on top of a Kubernetes cluster in Azure.

A Github webhook also needs to be setup in the repo that points to dns-name/hook. dns-name is the DNS name setup during the DNS configuration of the Ingress controller. The Github webhook also needs to send application/json type of payloads and use a secret. This secret is going to be used by Prow to decrypt the payload inside Kubernetes.

Another secret that needs to be setup is a Github token from the bot account that is going to manage PRs and issues. The token needs the repo and read:org scopes enabled. The bot account also needs to be added as a collaborator in the repository it is going to manage.

To automate the installation of Prow, store the webhook secret as hmac and the bot token as oauth inside the .prowci directory. Then, installing Prow involves running the following command:

make prow

What is installed

hook is installed that manages receiving webhooks from Github and reacting appropriately on Github. deck is installed as the Prow frontend. Last, tide is also installed that takes care of merging pull requests that pass all tests and satisfy a set of label requirements.