Skip to content

[SonataFlow] Upgrade the Knative custom functions to have visibility over the returned status code and headers #3938

@oEscal

Description

@oEscal

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"
    }
  ]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    📋 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions