summaryrefslogtreecommitdiff
path: root/robusta_krr/strategies
diff options
context:
space:
mode:
authorMykola Martynov <mykola@herdwatch.com>2024-03-19 18:56:38 +0200
committerGitHub <noreply@github.com>2024-03-19 18:56:38 +0200
commitc63589857942cc4f46744919ef73aa60dd44258b (patch)
tree6e86e552cc31247e4256efa1ccf9ac46fda980cc /robusta_krr/strategies
parent0251ffc903efff22b965503ed2db92d5404d5529 (diff)
use alias when available for strategy setting (#235)
* Add --allow_hpa flag * use `--allow-hpa` option * use OptionInfo instead of Option to support different name for same option * revert back allow_hpa field definition * fix issue when there is no underscore exist in option name --------- Co-authored-by: Robusta Runner <aantny@gmail.com>
Diffstat (limited to 'robusta_krr/strategies')
-rw-r--r--robusta_krr/strategies/simple.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/robusta_krr/strategies/simple.py b/robusta_krr/strategies/simple.py
index 8bbd08d..64e58ac 100644
--- a/robusta_krr/strategies/simple.py
+++ b/robusta_krr/strategies/simple.py
@@ -21,7 +21,6 @@ from robusta_krr.core.integrations.prometheus.metrics import (
PrometheusMetric,
)
-
class SimpleStrategySettings(StrategySettings):
cpu_percentile: float = pd.Field(99, gt=0, le=100, description="The percentile to use for the CPU recommendation.")
memory_buffer_percentage: float = pd.Field(
@@ -66,7 +65,7 @@ class SimpleStrategy(BaseStrategy[SimpleStrategySettings]):
This strategy does not work with objects with HPA defined (Horizontal Pod Autoscaler).
If HPA is defined for CPU or Memory, the strategy will return "?" for that resource.
- You can override this behaviour by passing the --allow_hpa flag
+ You can override this behaviour by passing the --allow-hpa flag
Learn more: [underline]https://github.com/robusta-dev/krr#algorithm[/underline]
"""