The following software are required for local development.
-
Run the following command to install GCC Compiler on Linux:
sudo apt-get update && sudo apt-get install build-essential -y
Run the following command to build and push the images.
make build-all-image-and-push REGISTRY=<your-container-registry> STAGINGVERSION=<staging-version>
REGISTRY
: Optional. Specifies your container or artifact registry. If not set, the default isgcr.io/<your-project-id>
. Ensure you are logged into your registry with the necessary image pull/push permissions.STAGINGVERSION
: Optional. Defines a build version. If not provided, a staging version will be automatically generated based on the commit hash.
Refer to Lustre CSI Driver Manual Installation documentation.
Refer to Test documentation.
Follow the following steps to update go modules:
- Open the go.mod file in Visual Studio Code.
- Click "Check for upgrades" above the first
require
block. - Hover over the module with available upgrade. Click "Quick Fix" to apply the upgrade.
- If you upgraded any
k8s.io
modules, make sure the version is also updated in thereplace
block. You need to do this step because lack of semantic versioning preventsgo mod
from finding newer releases. - Run
go mod tidy
to ensure that the listed dependencies are really still needed. - Run
go mod vendor
to update vendor directory. - Resolve any issues that may be introduced by the new modules.
Refer to Troubleshooting documentation.