Thank you for contributing. This project is a Go CLI built with Cobra.
- Go version from go.mod
- Access to a Kubernetes cluster with Fluid installed (for manual testing)
kubectlconfigured for that cluster
make build # produces bin/fluid
make test # unit tests (race detector in CI)
make fmt vet # format and static analysis
make install-plugin # install fluid onto PATHRun a single package:
go test ./pkg/inspect/... -v -count=1Command text lives in cmd/fluid/root/:
Short,Long, andExampleon eachcobra.Command- Flag descriptions on
cmd.Flags()
Users rely on fluid <command> --help; keep examples copy-pasteable.
| Path | Purpose |
|---|---|
| README.md | Quickstart and links |
| docs/ | Guides (hand-written) |
| docs/reference/ | Auto-generated; do not edit by hand |
After changing commands or flags:
make docs
git add docs/reference/CI runs make docs and fails if docs/reference/ is out of date.
See test/e2e/test.md for manual e2e scenarios (when documented).
- Use the PR template checklist
- Run
make testandmake docsbefore pushing - One logical change per PR when possible
- Link related Fluid or fluid-cli issues
- Match existing copyright headers and package layout
go fmton all touched Go files- Prefer extending existing packages over new abstractions
By contributing, you agree that your contributions are licensed under the Apache License 2.0.