Class ListenerSetSpec
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.gatewayapi.v1.ListenerSetSpec
-
- All Implemented Interfaces:
Editable<ListenerSetSpecBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class ListenerSetSpec extends Object implements Editable<ListenerSetSpecBuilder>, KubernetesResource
ListenerSetSpec defines the desired state of a ListenerSet.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ListenerSetSpec()No args constructor for use in serializationListenerSetSpec(List<ListenerEntry> listeners, ParentGatewayReference parentRef)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListenerSetSpecBuilderedit()Map<String,Object>getAdditionalProperties()List<ListenerEntry>getListeners()Listeners associated with this ListenerSet.ParentGatewayReferencegetParentRef()ListenerSetSpec defines the desired state of a ListenerSet.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetListeners(List<ListenerEntry> listeners)Listeners associated with this ListenerSet.voidsetParentRef(ParentGatewayReference parentRef)ListenerSetSpec defines the desired state of a ListenerSet.ListenerSetSpecBuildertoBuilder()
-
-
-
Constructor Detail
-
ListenerSetSpec
public ListenerSetSpec()
No args constructor for use in serialization
-
ListenerSetSpec
public ListenerSetSpec(List<ListenerEntry> listeners, ParentGatewayReference parentRef)
-
-
Method Detail
-
getListeners
public List<ListenerEntry> getListeners()
Listeners associated with this ListenerSet. Listeners define logical endpoints that are bound on this referenced parent Gateway's addresses.Listeners in a `Gateway` and their attached `ListenerSets` are concatenated as a list when programming the underlying infrastructure. Each listener name does not need to be unique across the Gateway and ListenerSets. See ListenerEntry.Name for more details.
Implementations MUST treat the parent Gateway as having the merged list of all listeners from itself and attached ListenerSets using the following precedence:
1. "parent" Gateway 2. ListenerSet ordered by creation time (oldest first) 3. ListenerSet ordered alphabetically by "{namespace}/{name}".
An implementation MAY reject listeners by setting the ListenerEntryStatus `Accepted` condition to False with the Reason `TooManyListeners`
If a listener has a conflict, this will be reported in the Status.ListenerEntryStatus setting the `Conflicted` condition to True.
Implementations SHOULD be cautious about what information from the parent or siblings are reported to avoid accidentally leaking sensitive information that the child would not otherwise have access to. This can include contents of secrets etc.
-
setListeners
public void setListeners(List<ListenerEntry> listeners)
Listeners associated with this ListenerSet. Listeners define logical endpoints that are bound on this referenced parent Gateway's addresses.Listeners in a `Gateway` and their attached `ListenerSets` are concatenated as a list when programming the underlying infrastructure. Each listener name does not need to be unique across the Gateway and ListenerSets. See ListenerEntry.Name for more details.
Implementations MUST treat the parent Gateway as having the merged list of all listeners from itself and attached ListenerSets using the following precedence:
1. "parent" Gateway 2. ListenerSet ordered by creation time (oldest first) 3. ListenerSet ordered alphabetically by "{namespace}/{name}".
An implementation MAY reject listeners by setting the ListenerEntryStatus `Accepted` condition to False with the Reason `TooManyListeners`
If a listener has a conflict, this will be reported in the Status.ListenerEntryStatus setting the `Conflicted` condition to True.
Implementations SHOULD be cautious about what information from the parent or siblings are reported to avoid accidentally leaking sensitive information that the child would not otherwise have access to. This can include contents of secrets etc.
-
getParentRef
public ParentGatewayReference getParentRef()
ListenerSetSpec defines the desired state of a ListenerSet.
-
setParentRef
public void setParentRef(ParentGatewayReference parentRef)
ListenerSetSpec defines the desired state of a ListenerSet.
-
edit
public ListenerSetSpecBuilder edit()
- Specified by:
editin interfaceEditable<ListenerSetSpecBuilder>
-
toBuilder
public ListenerSetSpecBuilder toBuilder()
-
-