Skip to content

Sequence should support delivery specification  #2302

@lionelvillard

Description

@lionelvillard

Problem
Sequence does not support deadLetterSink

Persona:
Which persona is this feature for?

Exit Criteria
A measurable (binary) test that would indicate that the problem has been resolved.

A sequence with dead letter sink.

Time Estimate (optional):
How many developer-days do you think this may take to resolve?
a day

Additional context (optional)
Add any other context about the feature request here.

It should be possible to specify different delivery options per step. Either we do it this way:

apiVersion: flows.knative.dev/v1alpha1
kind: Sequence
metadata:
  name: sequence
spec:
  steps:
  - ref:
      apiVersion: serving.knative.dev/v1alpha1
      kind: Service
      name: step1
    delivery:
      deadLetterSink:
         uri: dls1.example.com
 - ref:
      apiVersion: serving.knative.dev/v1alpha1
      kind: Service
      name: step2
    delivery:
      deadLetterSink:
        uri: dls2.example.com

or to be more aligned with parallel, we could do it this way (not backward compatible!):

apiVersion: flows.knative.dev/v1alpha1
kind: Sequence
metadata:
  name: sequence
spec:
  steps:
  - subscriber:
      ref:
        apiVersion: serving.knative.dev/v1alpha1
        kind: Service
        name: step1
   delivery:
     deadLetterSink:
       uri: dls1.example.com
 - subscriber:
      ref:
        apiVersion: serving.knative.dev/v1alpha1
        kind: Service
        name: step2
    delivery:
      deadLetterSink:
        uri: dls2.example.com

It should also be possible to specify delivery spec for the whole sequence

apiVersion: flows.knative.dev/v1alpha1
kind: Sequence
metadata:
  name: sequence
spec:
  delivery:
    deadLetterSink:
      uri: dls-sequence.example.com

@vaikas @n3wscott what do you guys think?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions