Move function resource presets from labels to annotations #15407
Labels
area/serverless
Issues or PRs related to serverless
duplicate
This issue or pull request already exists
kind/cleanup
Categorizes issue or PR as related to cleaning up code, process, or technical debt.
Description
Function resource presets should be based on annotations, not on labels.
serverless.kyma-project.io/replicas-preset
serverless.kyma-project.io/xxx-resources-preset
label is used log warning - no need to migratespec.templates.xxxTemplate.resources
For example, annotating function with :
serverless.kyma-project.io/function-resources-preset=L
should apply matching resources on runtime pod.
serverless.kyma-project.io/build-resources-preset=L
should apply matching resources on build pod.
Reasons
Labels should be used only for resource filtering, not to drive functionalities.
Related issues
Depends on #15402
Related to #15282
Related proposal : https://github.com/kyma-project/kyma/blob/main/components/function-controller/design/subresources_templates_proposal.md
The text was updated successfully, but these errors were encountered: