Description
This feature is to expand feature #3936 to Knative custom functions.
Implementation ideas
Since Knative custom functions have their specific way of defining the function properties, fail_on_status_error, return_headers, and return_status_code must be defined within the operation parameters. Therefore, considering the current parameters nomenclature style, they can be named as follows: failOnStatusError, returnStatusCode, and returnHeaders.
An example of how to use them:
"functions": [
{
"name": "greet",
"type": "custom",
"operation": "knative:services.v1.serving.knative.dev/custom-function-knative-service?failOnStatusError=false&returnStatusCode=true&returnHeaders=false"
}
]