This extension simplifies orchestrating Knative objects within Serverless Workflow.
apiVersion: ...
kind: ServerlessWorkflow
metadata:
name: ...
namespace: ecommerce # use by the resolver
Parameter | Description | Type | Required |
---|---|---|---|
operation | must be knative | string | yes |
destination | Destination | yes when operation is knative |
Addressable objects receive requests delivered over HTTP to an address defined in their status.address.url
field.
Knative services, brokers and channels are example of addressable objects.
A Destination is an interface which is used consistently through Knative Eventing to reference an event delivery destination. A Destination eventually resolves the supplied information to an URL, and may be an absolute URL or relative to an Addressable object reference; it also supports a Kubernetes Service object reference (as a special case). An absolute URL in a Destination may be used to reference cluster-external resources such as a virtual machine or SaaS service.
Parameter | Description | Type | Required |
---|---|---|---|
ref | An ObjectReference to a cluster resource | Reference | no |
uri | A URL (possibly relative to ref) | string | no |
Parameter | Description | Type | Required |
---|---|---|---|
apiVersion | ApiVersion of the target reference. | string | yes |
kind | Kind of the target reference. | string | yes |
name | Name of the target reference. | string | yes |
namespace | Namespace of the target resource. If unspecified, defaults to the same namespace | string | no |
The resolution of a Destination into a URI string follows these steps:
ref
exists, the base URL is resolved as follows:
apiVersion
is v1
and kind
is Service
then the resolved base URL is http://<name>.<namespace>.svc.<clusterDomainName>
status.address.url
on the object identified by apiVersion
, kind
, name
and optionally namespace
fieldsref
does not exist, the base URL is empty.uri
exists
uri
is absoluteref
does not exist, the resolved URL is uri
uri
, as described here (find link)
- name: processOrder
operation: knative:services.v1.serving.knative.dev/[default]/processOrder/init
type: custom
metadata:
asCloudEvent: false
path: /init
functions:
- name: processOrder
operation: knative:brokers.v1.eventing.knative.dev/mybroker?asCloudEvent=true
type: custom
states:
- name: send event
type: operation
actions:
functionRef:
refName: processOrder
arguments:
type: com.hospital.patient.heartRateMonitor
source: hospitalMonitorSystem
id: ${ }
data: ${ . }
What Knative expects in the request and error handling.
or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Syncing