We are in the process of enabling this repo for community contribution. See wiki here.
This project manages discovered clusters
- go version v1.13+
- operator-sdk version v1.3.0
- yq v4.4.x
- docker
- quay credentials for https://quay.io/organization/rhibmcollab and https://quay.io/organization/open-cluster-management
- Connection to an existing Kubernetes cluster
To run, export your Docker/Quay credentials and your OpenShift Cluster Manager API Token
$ export DOCKER_USER=<DOCKER_USER>
$ export DOCKER_PASS=<DOCKER_PASS>
$ export OCM_API_TOKEN=<OpenShift Cluster Manager API Token>
The OpenShift Cluster Manager API Token can be retrieved from here.
It is also recommended to set a unique version label when building the image
$ export VERSION=<A_UNIQUE_VERSION>
The image can be built and pushed with
$ make docker-build
$ make docker-push
Be sure you are logged in to a Kubernetes cluster, then run
$ make install
$ make deploy
This will create the CRDs, RBAC, and deployment
To run the image locally instead, run
$ make run
Once the deployment is running a default DiscoveryConfig and DiscoveredClusterRefresh can be created with:
$ make samples