kube-sentry-controller

command module
v0.0.0-...-1425752 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 20, 2020 License: MIT Imports: 14 Imported by: 0

README

kube-sentry-controller

A set of Kubernetes CustomResourceDefinition and a controller for managing Sentry teams, projects, and client keys.

Install

To install the kube-sentry-controller binary, run:

go get github.com/Benbentwo/kube-sentry-controller

Note that while the binary could be used as is, it is mainly provided as an example for how to use the sentrycontroller package. For production deployments you'd typically write your own main that integrates (metrics, logging, ...) with your existing infrastructure.

Usage

Create a Sentry API Auth Token:

https://docs.sentry.io/api/auth/

Configure the CRDs on the cluster:

kubectl apply -f config/crds

Run the controller:

kube-sentry-controller -api-token "${SENTRY_API_TOKEN}"

Create an example team, project, and client key:

sed -i "" "s,SENTRY_ORGANIZATION,my-org," config/samples/sentry.yaml
kubectl -f config/samples/sentry.yaml

Check that the controller has created a secret with the SDN key:

kubectl get secrets example -o yaml

To clean-up, run:

kubectl destroy -f config/samples/sentry.yaml

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg
apis
Package apis contains Kubernetes API groups.
Package apis contains Kubernetes API groups.
apis/sentry
Package sentry contains sentry API versions
Package sentry contains sentry API versions
apis/sentry/v1alpha1
Package v1alpha1 contains API Schema definitions for the sentry v1alpha1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/Benbentwo/kube-sentry-controller/pkg/apis/sentry +k8s:defaulter-gen=TypeMeta +groupName=sentry.sr.github.com Package v1alpha1 contains API Schema definitions for the sentry v1alpha1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/Benbentwo/kube-sentry-controller/pkg/apis/sentry +k8s:defaulter-gen=TypeMeta +groupName=sentry.sr.github.com
Package v1alpha1 contains API Schema definitions for the sentry v1alpha1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/Benbentwo/kube-sentry-controller/pkg/apis/sentry +k8s:defaulter-gen=TypeMeta +groupName=sentry.sr.github.com Package v1alpha1 contains API Schema definitions for the sentry v1alpha1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/Benbentwo/kube-sentry-controller/pkg/apis/sentry +k8s:defaulter-gen=TypeMeta +groupName=sentry.sr.github.com

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL