Commands of CRAFT

craft version

Usage :

craft version

Displays the information about craft, namely version, revision, build user, build date & time, go version.

craft init

Usage :

craft init

Initialises a new project with sample controller.json and resource.json

craft create

Usage :

craft create -c "controller.json" -r "resource.json --podDockerFile "dockerFile" -p

Creates operator source code in $GOPATH/src, builds operator.yaml, builds and pushes operator and resource docker images.

craft build

Has 3 sub commands, code, deploy and image.

build code

Usage:

craft build code -c "controller.json" -r "resource.json

Creates code in $GOPATH/src/operator.

build deploy

Usage:

craft build deploy -c "controller.json" -r "resource.json

Builds operator.yaml for deployment onto cluster.

build image

Usage:

craft build image -b -c "controller.json" --podDockerFile "dockerFile"

Builds operator and resource docker images.

validate

Usage:

craft validate -v "operator.yaml"

Validates operator.yaml to see if everything is in shape