apimeister / tibco-ems-operator

A Kubernetes operator for Tibco EMS.
Apache License 2.0
4 stars 2 forks source link

Add option to configure cooldown time #16

Open christopher-drews opened 2 years ago

christopher-drews commented 2 years ago

In order to avoid repeated restarts during automated tests, please add a possibility to configure the cooldown time. As of now this is only relevant for test scenarios therefore a global setting could be sufficient.

Suggestion: in scaler/mod.rs:

//const COOLDOWN_PERIOD_SECONDS: u64 = 60;
const COOLDOWN_PERIOD_SECONDS: u64 = env_var!(optional "COOLDOWN_PERIOD_SECONDS",default: "60").parse::<u64>().expect("Parsing env var COOLDOWN_PERIOD_SECONDS");