File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,6 +29,11 @@ import (
2929 "github.com/hawtio/hawtio-operator/pkg/util"
3030)
3131
32+ // DefaultPollingInterval is the default polling interval
33+ // of the updater if no override has been specified with
34+ // the UPDATE_POLLING_INTERVAL environment variable
35+ const DefaultPollingInterval = 12 * time .Hour
36+
3237// logLevelEnvVar is the constant for env variable OPERATOR_LOG_LEVEL
3338// which specifies the level of the operator logging.
3439// An empty value means the operator runs with a level of "Info".
@@ -294,7 +299,7 @@ func getLogLevel() zapcore.Level {
294299}
295300
296301func getUpdateInterval () time.Duration {
297- updatePollingInterval := 12 * time . Hour
302+ updatePollingInterval := DefaultPollingInterval
298303 updatePollingIntervalStr , found := os .LookupEnv (updatePollingIntervalEnvVar )
299304 if found {
300305 if updatePollingIntervalStr == "0" {
You can’t perform that action at this time.
0 commit comments