Skip to content

Add constants for supported Eventing labels and annotations #3321

@antoineco

Description

@antoineco

Problem
We don't have any constant set for common labels and annotations such as

  • messaging.knative.dev/subscribable
  • ...

This can lead to repetition in the code base, especially in projects that use Knative as a dependency.

Persona:
Contributors

Exit Criteria
Supported labels and annotations are defined as public constants inside pkg/apis/(messaging|eventing|...)

Example: https://github.com/knative/serving/blob/3b5be63/pkg/apis/serving/register.go

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

Ref. knative/pkg#1407

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/apikind/cleanupCategorizes issue or PR as related to cleaning up code, process, or technical debt.kind/feature-requestkind/good-first-issueDenotes an issue ready for a new contributor.priority/important-longtermImportant over the long term, but may not be staffed and/or may need multiple releases to complete.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions