mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-06 06:46:26 +01:00
18 lines
1.0 KiB
Plaintext
18 lines
1.0 KiB
Plaintext
:_mod-docs-content-type: ASSEMBLY
|
|
[id="serverless-functions-attributes"]
|
|
= Adding annotations to functions
|
|
include::_attributes/common-attributes.adoc[]
|
|
:context: serverless-functions-annotations
|
|
|
|
toc::[]
|
|
|
|
You can add Kubernetes annotations to a deployed Serverless function. Annotations enable you to attach arbitrary metadata to a function, for example, a note about the function's purpose. Annotations are added to the `annotations` section of the `func.yaml` configuration file.
|
|
|
|
There are two limitations of the function annotation feature:
|
|
|
|
* After a function annotation propagates to the corresponding Knative service on the cluster, it cannot be removed from the service by deleting it from the `func.yaml` file. You must remove the annotation from the Knative service by modifying the YAML file of the service directly, or by using the {product-title} web console.
|
|
|
|
* You cannot set annotations that are set by Knative, for example, the `autoscaling` annotations.
|
|
|
|
include::modules/serverless-functions-adding-annotations.adoc[leveloffset=+1]
|