craigcondit commented on PR #579:
URL: https://github.com/apache/yunikorn-core/pull/579#issuecomment-1604539604
Define your constants in `pkg/common/configs/configs.go`:
```
const (
HealthCheckInterval = "health.checkInterval"
// add here
)
// defaults go here
var DefaultHealthCheckInterval = 30 * time.Second
```
On startup, register a callback to `configs.AddConfigMapCallback("event",
func() { .. })` to apply the configuration. That is guaranteed to be called at
least once before startup. See `pkg/scheduler/health_checker.go` for an example
of how to do this.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]