chrisahl / sre-tools

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sre-tools

This is one of the repository of RHACM SRE Squad.

The one stop tool sre-tools

Ok, ok, name will change...

At the time of writing due to lack of inspiration (to find a better name) sre-tools is the one stop tool in the repository. It's built using ginkgo and gomega abusing the golang test framework.

How to compile it:

If you work on Linux (though this is has been tested for Fedora only) we suggest you to follow Kubernetes convention, hence to clone this repository in ${GOPATH}/src/github.com/open-cluster-manager then with

$ cd ${GOPATH}/src/github.com/open-cluster-manager
$ make build

should build the tool. To run it

 ./sre-tools --kubeconfig=$HOME/.kube/config

should be enough. This doc show the out of cluster mode but the tool will support an in cluster mode where we'll create a Container image to run sre-tools inside the cluster.

If you've followed the instruction in open-cluster-management.io and you're sure you've ran

$kubectl config set-context kind-hub

the only (at the moment) test should pass since it currenty lists managedclusters looking for for cluster1. More to come.

About

License:Apache License 2.0


Languages

Language:Shell 79.8%Language:Smarty 11.6%Language:Go 8.2%Language:Makefile 0.4%