Drop validation logic for Function's spec.replicas #251
Labels
area/serverless
Issues or PRs related to serverless
kind/cleanup
Categorizes issue or PR as related to cleaning up code, process, or technical debt.
Description
Get rid of validation for spec.replicas (between ScaleConfig.min/max values)
Reasons
A
spec.scaleConfig
indicates that function scaling is delegated to HPA - and it is HPA that should controll spec.replicas field and it will never go beyond the min.max values. In casespec.scaleConfig
is missing, user (manually) or external scaler drives scaling and there should be no internal constraints for the amount of replicas.Also - our goal is to remove serverless webhook ( see the linked epic )
Attachments
The text was updated successfully, but these errors were encountered: