Development

If you are developing VolSync, there are a few options to get up-and-running. All of these options will assume the use of a local kind cluster.

Once you have kind installed, there is a convenient script in the hack/ directory that will get a cluster running and properly configured.

$ ./hack/setup-kind-cluster.sh

Once you have a cluster running, you can either build and deploy the operator in the cluster, or you can run the operator locally against the cluster.

The below command will build all containers (operator and movers) from the local source, inject them into the running kind cluster, then use the local helm templates to start the operator.

# Build, inject, and run
$ ./hack/run-in-kind.sh

If you will be working with the Rclone or Restic movers, you may want to deploy Minio in the kind cluster to act as an object repository. It can be started via:

$ ./hack/run-minio.sh