Skip to content

Frontend doesnt include rety policy in payload when creating subΒ #127

@bvandewe

Description

@bvandewe

I tried this:

Create a sub with retry policy:

apiVersion: cloud-streams.io/v1
kind: Subscription
metadata:
  name: mynewsub
spec:
  partition:
    type: by-source
    id: https://event.emitter.com/
  stream:
    offset: -1
  subscriber:
    uri: https://subcriber.mydomain.com/events/pub
  retryPolicy:
    statusCodes: [ 503 ]
    circuitBreaker:
      breakAfter: 3
  breakDuration: PT5S

This happened:

The frontend sends POST /api/resources/v1/subscriptions

{
    "apiVersion": "cloud-streams.io/v1",
    "kind": "Subscription",
    "metadata": {
        "name": "mynewsub"
    },
    "spec": {
        "partition": {
            "type": "by-source",
            "id": "https://event.emitter.com/"
        },
        "stream": {
            "offset": -1
        },
        "subscriber": {
            "uri": "https://subcriber.mydomain.com/events/pub"
        }
    }
}

missing the retryPolicy and breakDuration

I expected this:

As a result, the sub appears without these retryPolicy and breakDuration attributes...

Is there a workaround?

No response

Anything else?

No response

Component(s)

No response

Platform(s)

No response

Community Notes

  • Please vote by adding a πŸ‘ reaction to the issue to help us prioritize.
  • If you are interested to work on this issue, please leave a comment.name: Bug Report 🐞

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions