This document provides guidelines and instructions for setting up the development environment and contributing to the project.
Create .env file in the root directory of the project and add the following environment variables:
QUAY_AUTH_TOKEN=<your-quay-auth-token>
QUAY_USER_NAME=<your-quay-username>To view all available Make targets, run:
make helpTo build and push the operator image to Quay.io, run:
make container-build
make container-pushYou can run the unit tests using the following command:
make testTo run the lint checks, execute:
make lintEnsure KUBECONFIG points to target OpenShift cluster. To deploy the operator, run:
make deployTo create a ConsoleApplication CR, run:
kubectl create -k examples/success.yamlEnsure KUBECONFIG points to target OpenShift cluster. Let's begin by deleting the payload image first with:
kubectl delete -k examples/success.yamlSubsequently, proceed with uninstalling the operator:
make undeploy