This chart deploys an Apache Fluss cluster on Kubernetes, following Helm best practices.
For how to build your local Fluss image and use it in Minikube refer to the official documentation.
Refer to the official documentation as well for configuration values.
We use the helm-unittest plugin for testing Fluss Helm charts. You can run tests locally via:
# From the /helm folder: docker run -ti --rm -v $(pwd):/apps helmunittest/helm-unittest .
The chart runs the validation checks at install or upgrade time using templates in _validate.tpl file.
The warnings are printed to the user, but errors abort the deployment.
To add new validations, for example for a new feature:
fluss.<feature>.validateWarning or fluss.<feature>.validateError templates in the feature _<feature>.tpl template file.include calls to fluss.validateWarning or fluss.validateError in _validate.tpl template file.For example, for the security checks, include and update these methods in the _validate.tpl file:
{{- define "fluss.validateWarning" -}}
...
{{- $messages = append $messages (include "fluss.security.validateWarning" .) -}}
...
{{- end -}}
{{- define "fluss.validateError" -}}
...
{{- $messages = append $messages (include "fluss.security.validateError" .) -}}
...
{{- end -}}
Follow the development section for local development.
Every contribution should add a unit test to the tests folder.
Whether relevant, update the official documentation.