Skip to content

Eventing TLS: Update Addressable and AddressStatus #2711

@pierDipi

Description

@pierDipi

As the Eventing TLS feature track describes we should update Addressable and AddressStatus types as follow:

// Addressable provides a generic mechanism for a custom resource
// definition to indicate a destination for message delivery.
//
// Addressable is the schema for the destination information. This is
// typically stored in the object's `status`, as this information may
// be generated by the controller.
type Addressable struct {
	// Name is the name of the address.
	Name *string `json:"name,omitempty"`

	URL *apis.URL `json:"url,omitempty"`

	// Certification Authority (CA) certificates in PEM format
// according to https://www.rfc-editor.org/rfc/rfc7468.
// +optional
	CACerts *string `json:”CACerts,omitempty”`
}
// AddressStatus shows how we expect folks to embed Addressable in
// their Status field.
type AddressStatus struct {
        // …
        // If addresses is present, address will be ignored by clients.
	Address *Addressable `json:"address,omitempty"`

	// List of addresses for different protocols (HTTP and HTTPS)
	// +optional
	Addresses []Addressable `json:addresses,omitempty”`
}

Additional Info

/good-first-issue
/kind feature
/area API

Metadata

Metadata

Assignees

Labels

area/APIgood first issueDenotes an issue ready for a new contributor, according to the "help wanted" guidelines.help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.kind/feature

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions