-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Updated Readme Signed-off-by: Lucifergene <[email protected]>
- Loading branch information
1 parent
010bbf2
commit 5f4fba4
Showing
3 changed files
with
135 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
# Development Guide | ||
|
||
This document provides guidelines and instructions for setting up the development environment and contributing to the project. | ||
|
||
## Set Environment Variables | ||
|
||
Create `.env` file in the root directory of the project and add the following environment variables: | ||
|
||
```sh | ||
QUAY_AUTH_TOKEN=<your-quay-auth-token> | ||
QUAY_USER_NAME=<your-quay-username> | ||
``` | ||
|
||
## Viewing available Make targets | ||
|
||
To view all available Make targets, run: | ||
|
||
```sh | ||
make help | ||
``` | ||
|
||
## Building Operator image | ||
|
||
To build and push the operator image to Quay.io, run: | ||
|
||
```sh | ||
make container-build | ||
make container-push | ||
``` | ||
|
||
## Running Tests | ||
|
||
You can run the unit tests using the following command: | ||
|
||
```sh | ||
make test | ||
``` | ||
|
||
## Running Lint | ||
|
||
To run the lint checks, execute: | ||
|
||
```sh | ||
make lint | ||
``` | ||
|
||
## Deploying Operator | ||
|
||
Ensure KUBECONFIG points to target OpenShift cluster. To deploy the operator, run: | ||
|
||
```sh | ||
make deploy | ||
``` | ||
|
||
## Create `ConsoleApplication` Custom Resource (CR) | ||
|
||
To create a `ConsoleApplication` CR, run: | ||
|
||
```sh | ||
kubectl create -k examples/success.yaml | ||
``` | ||
|
||
## Uninstalling Operator | ||
|
||
Ensure KUBECONFIG points to target OpenShift cluster. Let's begin by deleting the payload image first with: | ||
|
||
```sh | ||
kubectl delete -k examples/success.yaml | ||
``` | ||
|
||
Subsequently, proceed with uninstalling the operator: | ||
|
||
```sh | ||
make undeploy | ||
``` |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.