Currently, the lease duration used in lease.NewKubernetes is hardcoded through an empty lease.Options{} struct in pkg/export/setup/setup.go, which defaults to 15 seconds.
It would be helpful to allow configuring LeaseDuration via environment variable, CLI flag, or a field in HAOptions. This would make it easier to adapt the operator to different environments without needing to modify the code directly.
Thanks for the great work on this project!
Currently, the lease duration used in lease.NewKubernetes is hardcoded through an empty lease.Options{} struct in pkg/export/setup/setup.go, which defaults to 15 seconds.
It would be helpful to allow configuring LeaseDuration via environment variable, CLI flag, or a field in HAOptions. This would make it easier to adapt the operator to different environments without needing to modify the code directly.
Thanks for the great work on this project!