Skip to content

Latest commit

 

History

History
56 lines (42 loc) · 1.26 KB

README.md

File metadata and controls

56 lines (42 loc) · 1.26 KB

Discovery

This project manages discovered clusters

Prerequisites

Installing

Required Variables

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>

Building Image

The image can be built and pushed with

$ make docker-build
$ make docker-push

Installing

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