Skip to content

Latest commit

 

History

History
87 lines (60 loc) · 1.92 KB

CONTRIBUTING.md

File metadata and controls

87 lines (60 loc) · 1.92 KB

Contributing to Eclipse Che Operator

Quick Start

git clone https://github.com/eclipse-che/che-operator.git
cd che-operator
make build  # Build the operator binary
make test   # Run unit tests to verify setup

Run unit tests

make test

Format the code and fix imports

make fmt

Run static code analyzers

make lint

Update development resources

You have to update development resources if you updated any files in config folder or api/v2/checluster_types.go file:

make update-dev-resources

On macOS, run it inside a container:

build/scripts/docker-run.sh make update-dev-resources

Build Che operator image

make docker-build IMG=<YOUR_OPERATOR_IMAGE>

Deploy Che operator from the source code

For OpenShift cluster:

build/scripts/oc-tests/oc-test.sh --install-from sources

For Kubernetes cluster:

build/scripts/minikube-tests/test-operator-from-sources.sh

Debug Che operator

You can run/debug this operator on your local machine (without deploying to a k8s cluster).

make debug

Then use VSCode debug configuration Che Operator to attach to a running process.

Pull requests

Use the pull request template and fill in all sections, including steps to deploy and test the change. See also Red Hat compliance and responsible AI.