The fallback mechanism should only work if the metric type is AverageValue, which is the default (according to the docs).
If you do not explicitly declare the metric type, KEDA prints the following error:
2024-08-02T15:01:04Z ERROR scaledobject-validation-webhook validation error {"name": "foo", "error": "MetricType=, but Fallback can only be enabled for triggers with metric of type AverageValue"}****
Expected Behavior
KEDA should interpret an empty metricType as the default AverageValue.
Actual Behavior
KEDA prints an error
Steps to Reproduce the Problem
Create a ScaledObject with fallback enabled (but without explicitly declaring the metricType of the scaler)
Error is printed
Logs from KEDA operator
2024-08-02T15:01:04Z ERROR scaledobject-validation-webhook validation error {"name": "foo", "error": "MetricType=, but Fallback can only be enabled for triggers with metric of type AverageValue"}
Report
The fallback mechanism should only work if the metric type is AverageValue, which is the default (according to the docs).
If you do not explicitly declare the metric type, KEDA prints the following error:
Expected Behavior
KEDA should interpret an empty metricType as the default AverageValue.
Actual Behavior
KEDA prints an error
Steps to Reproduce the Problem
Logs from KEDA operator
KEDA Version
2.14.1
Kubernetes Version
None
Platform
Any
Scaler Details
No response
Anything else?
No response