-
Bug
-
Resolution: Done-Errata
-
Major
-
4.14.0
-
Moderate
-
No
-
ODC Sprint 3251
-
1
-
Rejected
-
False
-
-
-
Bug Fix
-
In Progress
Description of problem:
Creating a Serverless Deployment with "Scaling" "Min Pods"/"Max Pods" options set, uses deprecated knative annotations "autoscaling.knative.dev/minScale" / "maxScale",
the correct current ones are "autoscaling.knative.dev/min-scale" / "max-scale"
The same problem with "autoscaling.knative.dev/targetUtilizationPercentage" , which should be "autoscaling.knative.dev/target-utilization-percentage"
Prerequisites (if any, like setup, operators/versions):
Serverless operator
Steps to Reproduce
- Install serverless operator
- Create KnativeServing in knative-serving namespace
- create a test "foobar" namespace
- Go to <console>/deploy-image/ns/foobar
- Use gcr.io/knative-samples/helloworld-go as "Image name from external registry" (or any webserver image listening on :8080)
- Choose "Serverless Deployment" for the "resource type"
- Click on "Scaling" in "Click on the names to access advanced options for ..."
- Set "2" for "Min Pods" and "3" for "Max Pods"
- Create
Actual results:
The created ksvc resource has
spec: template: metadata: annotations: autoscaling.knative.dev/maxScale: "3" autoscaling.knative.dev/minScale: "2" autoscaling.knative.dev/targetUtilizationPercentage: "70"
Expected results:
The created ksvc should have
spec: template: metadata: annotations: autoscaling.knative.dev/max-scale: "3" autoscaling.knative.dev/min-scale: "2" autoscaling.knative.dev/target-utilization-percentage: "70"
Reproducibility (Always/Intermittent/Only Once): Always
Build Details:
4.14.8
Workaround:
none required ATM, current serverless still supports the deprecated "minScale"/"maxScale" annotations.
Additional info:
https://issues.redhat.com/browse/SRVKS-910
- links to
-
RHEA-2024:0041 OpenShift Container Platform 4.16.z bug fix update