KubeBlocks
is using kubebuilder as the operator framework, before your start to code, suggest to read kubebuilder books.
KubeBlocks
includes a Makefile in the root of the repo. This serves as a high-level interface for common commands. Running make help
will produce a list of make targets with descriptions. These targets will be referenced throughout this document.
kbcli
is a cobra-based command line interface for KubeBlocks
which support to the basic interaction commands such as install/uninstall/upgrade
KubeBlocks and all kinds of actions for KubeBlocks
The kbcli repository: https://github.com/apecloud/kbcli
First, read the Go (Golang) coding guidelines again, looking for any style violations. It's easier to remember a style rule once you've violated it.
Run our suite of linters:
make lint
This is not a fast command. On my machine, at the time of writing, it takes about a full minute to run. You can instead run