- go version v1.13+.
- docker version 17.03+.
- kubectl version v1.14.1+.
- kubebuilder v2.0.1+
- Make sure kubebuilder is installed.
- Run
make testin the project root directory.
- Be sure to run
make updateormake testbefore you finish a commit. - If CRDs in
deploy/crdsare updated, the same file names located indeploy/olm-catalog/ibm-block-csi-operatormust be updated accordingly. - If
role.yaml,role_binding.yaml, oroperator.yamlindeployare updated, the ClusterServiceVersion(CSV) file indeploy/olm-catalog/ibm-block-csi-operatormust be updated accordingly. - If
README.mdis updated, ClusterServiceVersion(CSV) file indeploy/olm-catalog/ibm-block-csi-operatormust be updated accordingly. - Run
operator-sdk addto add a new API or controller, for more details, please refer to https://github.com/operator-framework/operator-sdk. - Run
operator-sdk generate k8sandoperator-sdk generate crdsafter you change something inpkg/apis.
This repository makes use of the Operator Framework and its packaging concept for Operators. Make sure you read the following guides before packaging the operator and uploading to OperatorHub.