eventing icon indicating copy to clipboard operation
eventing copied to clipboard

Eventtype has SOURCE attr as optional

Open matzew opened this issue 2 years ago • 4 comments

Describe the bug The EventTypeSpec has the source as optional:

	// Source is a URI, it represents the CloudEvents source.
	// +optional
	Source *apis.URL `json:"source,omitempty"`

But since this represents metadata of the CloudEvent spec, this is wrong, since the spec demands a source attribute to be there:

Constraints:

  • REQUIRED
  • MUST be a non-empty URI-reference
  • An absolute URI is RECOMMENDED
  • A clear and concise description of what the bug is.

Expected behavior

I'd expect it is not optional

Additional context

Wit the planned changes to be more CloudEvent spec matching, let's change this behavior. Related issue: https://github.com/knative/eventing/issues/7265

matzew avatar Sep 28 '23 06:09 matzew

/assign

karthikmurali60 avatar Oct 05 '23 15:10 karthikmurali60

@matzew I would like to solve this issue, can I start work on this ?

karthikmurali60 avatar Oct 05 '23 15:10 karthikmurali60

@karthikmurali60 I'd start here: https://github.com/knative/eventing/blob/16d75a9807031432828cba975fe77b9f9cb7a45f/pkg/apis/eventing/v1beta2/eventtype_types.go#L67-L69

However, this will likely be a change in v1beta3, not an update to the existing v1beta2, right @matzew ?

Cali0707 avatar Oct 19 '23 14:10 Cali0707

This issue is stale because it has been open for 90 days with no activity. It will automatically close after 30 more days of inactivity. Reopen the issue with /reopen. Mark the issue as fresh by adding the comment /remove-lifecycle stale.

github-actions[bot] avatar Jan 18 '24 01:01 github-actions[bot]

This will be fixed as part of v1beta3 #7265

pierDipi avatar Mar 25 '24 18:03 pierDipi