-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add readme file and AH annotations to Helm chart (#235)
Signed-off-by: Sergio Castaño Arteaga <[email protected]>
- Loading branch information
Showing
3 changed files
with
95 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
# GitVote | ||
|
||
[GitVote](https://gitvote.dev) is a GitHub application that allows holding a vote on issues and pull requests. | ||
|
||
## Introduction | ||
|
||
This chart bootstraps a GitVote deployment on a [Kubernetes](http://kubernetes.io) cluster using the [Helm](https://helm.sh) package manager. | ||
|
||
## Prerequisites | ||
|
||
Before installing this chart, you need to [setup a GitHub application](https://docs.github.com/en/apps/creating-github-apps/creating-github-apps/creating-a-github-app). The application requires the following permissions [to be set](https://docs.github.com/en/apps/maintaining-github-apps/editing-a-github-apps-permissions): | ||
|
||
Repository: | ||
|
||
- **Checks**: *read/write* | ||
- **Contents**: *read* | ||
- **Issues**: *read/write* | ||
- **Metadata**: *read* | ||
- **Pull requests**: *read/write* | ||
|
||
Organization: | ||
|
||
- **Members**: *read* | ||
|
||
In addition to those permissions, it must also be subscribed to the following events: | ||
|
||
- *Issue Comment* | ||
- *Issues* | ||
- *Pull Request* | ||
|
||
GitVote expects GitHub events to be sent to the `/api/events` endpoint. In the GitHub application, please enable `webhook` and set the target URL to your exposed endpoint (ie: <https://example.com/api/events>). You will need to define a random secret for the webhook (you can use the following command to do it: `openssl rand -hex 32`). Please note your webhook secret, as well as the GitHub application ID and private key, as you'll need them in the next step when installing the chart. | ||
|
||
Once your GitHub application is ready and GitVote has been deployed, you can install it in the organizations or repositories you need. | ||
|
||
## Installing the chart | ||
|
||
Create a values file (`my-values.yaml`) that includes the configuration values required from your GitHub application: | ||
|
||
```yaml | ||
gitvote: | ||
github: | ||
appID: 123456 # Replace with your GitHub app ID | ||
appPrivateKey: |- | ||
-----BEGIN RSA PRIVATE KEY----- | ||
... | ||
YOUR_APP_PRIVATE_KEY | ||
... | ||
-----END RSA PRIVATE KEY----- | ||
webhookSecret: "your-webhook-secret" | ||
``` | ||
To install the chart with the release name `my-gitvote` run: | ||
|
||
```bash | ||
$ helm repo add gitvote https://cncf.github.io/gitvote/ | ||
$ helm install --values my-values.yaml my-gitvote gitvote/gitvote | ||
``` | ||
|
||
The command above deploys GitVote on the Kubernetes cluster using the default configuration values and the GitHub application configuration provided. Please see the [chart's default values file](https://github.com/cncf/gitvote/blob/main/charts/gitvote/values.yaml) for a list of all the configurable parameters of the chart and their default values. | ||
|
||
## Uninstalling the chart | ||
|
||
To uninstall the `my-gitvote` deployment run: | ||
|
||
```bash | ||
$ helm uninstall my-gitvote | ||
``` | ||
|
||
This command removes all the Kubernetes components associated with the chart and deletes the release. | ||
|
||
## How GitVote works | ||
|
||
For more information about how GitVote works from a user's perspective please see the [repository's README file](https://github.com/cncf/gitvote#readme). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters