diff --git a/pkg/constants/constants.go b/pkg/constants/constants.go index 58320013103..6a1c56f6a45 100644 --- a/pkg/constants/constants.go +++ b/pkg/constants/constants.go @@ -79,8 +79,8 @@ var ( AutoscalerClass = KServeAPIGroupName + "/autoscalerClass" AutoscalerMetrics = KServeAPIGroupName + "/metrics" TargetUtilizationPercentage = KServeAPIGroupName + "/targetUtilizationPercentage" - MinScaleAnnotationKey = KnativeAutoscalingAPIGroupName + "/minScale" - MaxScaleAnnotationKey = KnativeAutoscalingAPIGroupName + "/maxScale" + MinScaleAnnotationKey = KnativeAutoscalingAPIGroupName + "/min-scale" + MaxScaleAnnotationKey = KnativeAutoscalingAPIGroupName + "/max-scale" RollOutDurationAnnotationKey = KnativeServingAPIGroupName + "/rollout-duration" EnableMetricAggregation = KServeAPIGroupName + "/enable-metric-aggregation" SetPrometheusAnnotation = KServeAPIGroupName + "/enable-prometheus-scraping" diff --git a/pkg/controller/v1beta1/inferenceservice/controller_test.go b/pkg/controller/v1beta1/inferenceservice/controller_test.go index 1476795191b..cf098b76843 100644 --- a/pkg/controller/v1beta1/inferenceservice/controller_test.go +++ b/pkg/controller/v1beta1/inferenceservice/controller_test.go @@ -201,8 +201,8 @@ var _ = Describe("v1beta1 inference service controller", func() { }, Annotations: map[string]string{ constants.StorageInitializerSourceUriInternalAnnotationKey: *isvc.Spec.Predictor.Model.StorageURI, - "autoscaling.knative.dev/maxScale": "3", - "autoscaling.knative.dev/minScale": "1", + "autoscaling.knative.dev/max-scale": "3", + "autoscaling.knative.dev/min-scale": "1", "autoscaling.knative.dev/class": "kpa.autoscaling.knative.dev", "key1": "val1FromSR", }, @@ -468,8 +468,8 @@ var _ = Describe("v1beta1 inference service controller", func() { }, Annotations: map[string]string{ "autoscaling.knative.dev/class": "kpa.autoscaling.knative.dev", - "autoscaling.knative.dev/maxScale": "3", - "autoscaling.knative.dev/minScale": "1", + "autoscaling.knative.dev/max-scale": "3", + "autoscaling.knative.dev/min-scale": "1", }, }, Spec: knservingv1.RevisionSpec{ @@ -688,8 +688,8 @@ var _ = Describe("v1beta1 inference service controller", func() { }, Annotations: map[string]string{ "autoscaling.knative.dev/class": "kpa.autoscaling.knative.dev", - "autoscaling.knative.dev/maxScale": "3", - "autoscaling.knative.dev/minScale": "1", + "autoscaling.knative.dev/max-scale": "3", + "autoscaling.knative.dev/min-scale": "1", "internal.serving.kserve.io/storage-initializer-sourceuri": "s3://test/mnist/explainer", }, }, @@ -1261,8 +1261,8 @@ var _ = Describe("v1beta1 inference service controller", func() { Annotations: map[string]string{ constants.StorageInitializerSourceUriInternalAnnotationKey: "s3://test/mnist/export", "autoscaling.knative.dev/class": "kpa.autoscaling.knative.dev", - "autoscaling.knative.dev/maxScale": "3", - "autoscaling.knative.dev/minScale": "1", + "autoscaling.knative.dev/max-scale": "3", + "autoscaling.knative.dev/min-scale": "1", "key1": "val1FromSR", "key2": "val2FromISVC", },