command
module
Version:
v1.0.1
Opens a new window with list of versions in this module.
Published: Jul 16, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 13
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
This is a Kubernetes Controller to add a comment to pull request when Argo CD performs sync operations.
Getting Started
Prerequisite
Argo CD is running in your Kubernetes cluster.
Setup
To deploy the manifest:
kubectl apply -f https://github.com/int128/argocd-commenter/releases/download/v0.3.0/argocd-commenter.yaml
You need to create either Personal Access Token or GitHub App.
- Personal Access Token
- Belong to a user
- Share the rate limit in a user
- GitHub App
- Belong to a user or organization
- Have each rate limit for an installation
Option 1: Personal Access Token
- Open https://github.com/settings/tokens
- Generate a new token
- Create a secret as follows:
kubectl -n argocd-commenter-system create secret generic controller-manager \
--from-literal="GITHUB_TOKEN=$YOUR_PERSONAL_ACCESS_TOKEN"
Option 2: GitHub App
- Create your GitHub App from either link:
- Get the App ID from the setting page
- Download a private key of the GitHub App
- Set a custom badge for the GitHub App
- Install your GitHub App on your repository or organization
- Get the Installation ID from the URL, like
https://github.com/settings/installations/ID
- Create a secret as follows:
kubectl -n argocd-commenter-system create secret generic controller-manager \
--from-literal="GITHUB_APP_ID=$YOUR_GITHUB_APP_ID" \
--from-literal="GITHUB_APP_INSTALLATION_ID=$YOUR_GITHUB_APP_INSTALLATION_ID" \
--from-file="GITHUB_APP_PRIVATE_KEY=/path/to/private-key.pem"
Verify setup
Make sure the controller is running.
kubectl -n argocd-commenter-system rollout status deployment argocd-commenter-controller-manager
Contribution
This is an open source software. Feel free to contribute to it.
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
|
|
pkg
|
|
|
|
Click to show internal directories.
Click to hide internal directories.