API Version |
Build Status |
Test Coverage |
Go Report Card |
License |
Github Controller is a Kubernetes controller which implements the Kubernetes Resource Model to manage Github repositories, organizations and collaborators. This does so by implementing custom resource definitions (CRDs) for Repository, (Coming Soon Organization, and Team).
-
Repositorywill manage Github repositories -
Control settings for repositories
issues,pull requests,wiki -
Records status of the repo
git clone git@github.com:christopherhein/github-controller.git
cd github-controller
make install deployThe manager expects that you have GITHUB_AUTH_TOKEN exported into the secret named github-controller-github-auth-token with a key of github-token. This token should have permissions to manage repositories in the github org it’s managing.
If you want to create a repo you can kubectl apply -f a manifest that looks like this.
apiVersion: github.go.hein.dev/v1alpha1
kind: Repository
metadata:
name: repository-sample
spec:
organization: orgname
description: Sample repository created with the Github Controller
homepage: org.com/repository-sample
settings:
private: false
issues: true
wiki: false
projects: true
template: false