An open API service indexing awesome lists of open source software.

https://github.com/dippynark/scm-controller

Manage SCM resources with Kubernetes
https://github.com/dippynark/scm-controller

Last synced: over 1 year ago
JSON representation

Manage SCM resources with Kubernetes

Awesome Lists containing this project

README

          

# SCM Controller

SCM Controller allows management of Source Control Management resources using Kubernetes. Currently only GitHubWebhooks
are supported.

[Kubebuilder](https://github.com/kubernetes-sigs/kubebuilder) was used to scaffold this project:

```sh
kubebuilder init --domain dippynark.co.uk
kubebuilder create api --group scm --version v1alpha1 --kind GitHubWebhook
kubebuilder create webhook --group scm --version v1alpha1 --kind GitHubWebhook --defaulting --programmatic-validation
```

## Create GitHubWebhook

1. Create a GitHub personal access token with `admin:repo_hook` scope:
[https://github.com/settings/tokens/new?scopes=write:repo_hook](https://github.com/settings/tokens/new?scopes=admin:repo_hook).
Admin is needed for webhook deletion.

1. Create a Kubernetes Secret containing the personal access token:

```sh
kubectl create namespace scm-controller-system \
-o yaml \
--dry-run=client \
| kubectl apply -f -
kubectl apply -f - <