Skip to content

Latest commit

 

History

History
46 lines (37 loc) · 1.65 KB

developer-guide.md

File metadata and controls

46 lines (37 loc) · 1.65 KB

Developer Guide

Prerequisites

Build the Operator

In case you want to build the operator from the source code, e.g., to test a fix or a feature you write, you can do so following the instructions below.

The easiest way to build the operator is by using docker command

$ docker build -t <image-tag> -f build/Dockerfile .

If you'd like to test/build the spark-operator locally, follow the instructions below:

$ mkdir -p $GOPATH/src/github.com/AmadeusITGroup
$ cd $GOPATH/src/github.com/AmadeusITGroup
$ git clone [email protected]:AmadeusITGroup/Kubernetes-Kafka-Connect-Operator.git
$ cd Kubernetes-Kafka-Connect-Operator
$ go test ./...
$ docker build -t <image-tag> -f build/Dockerfile .

Update the auto-generated code

To update the auto-generated CRD definitions, run the following command:

$ cd $GOPATH/src/github.com/AmadeusITGroup/Kubernetes-Kafka-Connect-Operator
$ operator-sdk generate crds

If you want to update the auto-generated code like deepcopy funtion, clientset, lister, informer, run the following commands to get the required Kubernetes code generators:

$ go get -u k8s.io/code-generator

Then run the following commands to update the code

$ $GOPATH/src/github.com/AmadeusITGroup/Kubernetes-Kafka-Connect-Operator/hack/update-codegen.sh