status

package
v0.5.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2023 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// GatewayClassConditionAccepted - This condition indicates whether the
	// GatewayClass has been accepted by the controller requested in the
	// spec.controller field.
	//
	// This condition defaults to Unknown, and MUST be set by a controller when it
	// sees a GatewayClass using its controller string. The status of this condition
	// MUST be set to True if the controller will support provisioning Gateways
	// using this class. Otherwise, this status MUST be set to False. If the status
	// is set to False, the controller SHOULD set a Message and Reason as an
	// explanation.
	//
	// [spec]
	GatewayClassConditionAccepted = "Accepted"
	// GatewayClassConditionReasonAccepted - This reason is used with the
	// “Accepted” condition when the condition is true.
	//
	// [spec]
	GatewayClassConditionReasonAccepted = "Accepted"
	// GatewayClassConditionReasonInvalidParameters - This reason is used with the
	// “Accepted” condition when the GatewayClass was not accepted because the
	// parametersRef field was invalid, with more detail in the message.
	//
	// [spec]
	GatewayClassConditionReasonInvalidParameters = "InvalidParameters"
	// GatewayClassConditionReasonWaiting - This reason is used with the
	// “Accepted” condition when the requested controller has not yet made a
	// decision about whether to admit the GatewayClass. It is the default Reason on
	// a new GatewayClass.
	//
	// [spec]
	GatewayClassConditionReasonWaiting = "Waiting"
)
View Source
const (
	// GatewayConditionReady - This condition is true when the Gateway is expected
	// to be able to serve traffic. Note that this does not indicate that the
	// Gateway configuration is current or even complete (e.g. the controller may
	// still not have reconciled the latest version, or some parts of the
	// configuration could be missing).
	//
	// If both the “ListenersNotValid” and “ListenersNotReady” reasons are
	// true, the Gateway controller should prefer the “ListenersNotValid”
	// reason.
	//
	// [spec]
	GatewayConditionReady = "Ready"
	// GatewayConditionReasonReady - This reason is used with the “Ready”
	// condition when the condition is true.
	//
	// [spec]
	GatewayConditionReasonReady = "Ready"
	// GatewayConditionReasonListenersNotValid - This reason is used with the
	// “Ready” condition when one or more Listeners have an invalid or
	// unsupported configuration and cannot be configured on the Gateway.
	//
	// [spec]
	GatewayConditionReasonListenersNotValid = "ListenersNotValid"
	// GatewayConditionReasonListenersNotReady - This reason is used with the
	// “Ready” condition when one or more Listeners are not ready to serve
	// traffic.
	//
	// [spec]
	GatewayConditionReasonListenersNotReady = "ListenersNotReady"
	// GatewayConditionReasonAddressNotAssigned - This reason is used with the
	// “Ready” condition when none of the requested addresses have been assigned
	// to the Gateway. This reason can be used to express a range of circumstances,
	// including (but not limited to) IPAM address exhaustion, invalid or
	// unsupported address requests, or a named address not being found.
	//
	// [spec]
	GatewayConditionReasonAddressNotAssigned = "AddressNotAssigned"
)
View Source
const (
	// GatewayConditionScheduled - This condition is true when the controller
	// managing the Gateway has scheduled the Gateway to the underlying network
	// infrastructure.
	//
	// [spec]
	GatewayConditionScheduled = "Scheduled"
	// GatewayConditionReasonScheduled - This reason is used with the
	// “Scheduled” condition when the condition is true.
	//
	// [spec]
	GatewayConditionReasonScheduled = "Scheduled"
	// GatewayConditionReasonNotReconciled - This reason is used with the
	// “Scheduled” condition when no controller has reconciled the Gateway.
	//
	// [spec]
	GatewayConditionReasonNotReconciled = "NotReconciled"
	// GatewayConditionReasonPodFailed - This reason is used when the underlying pod
	// on the gateway has failed.
	//
	// [custom]
	GatewayConditionReasonPodFailed = "PodFailed"
	// GatewayConditionReasonUnknown - This reason is used when the underlying pod
	// has an unhandled pod status.
	//
	// [custom]
	GatewayConditionReasonUnknown = "Unknown"
	// GatewayConditionReasonNoResources - This reason is used with the
	// “Scheduled” condition when the Gateway is not scheduled because
	// insufficient infrastructure resources are available.
	//
	// [spec]
	GatewayConditionReasonNoResources = "NoResources"
)
View Source
const (
	// GatewayConditionInSync - This condition is true when the Gateway has
	// successfully synced externally.
	//
	// [spec]
	GatewayConditionInSync = "InSync"
	// GatewayConditionReasonInSync - This reason is used with the “InSync”
	// condition when the condition is true.
	//
	// [spec]
	GatewayConditionReasonInSync = "InSync"
	// GatewayConditionReasonSyncError - This reason is used with the "InSync"
	// condition when there has been an error encountered synchronizing the Gateway.
	//
	// [spec]
	GatewayConditionReasonSyncError = "SyncError"
)
View Source
const (
	// RouteConditionAccepted - This condition indicates whether the route has been
	// accepted or rejected by a Gateway, and why.
	//
	// [spec]
	RouteConditionAccepted = "Accepted"
	// RouteConditionReasonAccepted - This reason is used with the "Accepted"
	// condition when the condition is True.
	//
	// [custom]
	RouteConditionReasonAccepted = "Accepted"
	// RouteConditionReasonInvalidRouteKind - This reason is used when a Route is
	// rejected from binding to a Listener because it does not match a Listener's
	// allowed route kinds.
	//
	// [custom]
	RouteConditionReasonInvalidRouteKind = "InvalidRouteKind"
	// RouteConditionReasonListenerNamespacePolicy - This reason is used when a
	// Route is rejected from binding to a Gateway because it does not match a
	// Listener's namespace attachment policy.
	//
	// [custom]
	RouteConditionReasonListenerNamespacePolicy = "ListenerNamespacePolicy"
	// RouteConditionReasonListenerHostnameMismatch - This reason is used when a
	// Route is rejected from binding to a Listener becasue it does not match a
	// Listener's hostname.
	//
	// [custom]
	RouteConditionReasonListenerHostnameMismatch = "ListenerHostnameMismatch"
	// RouteConditionReasonBindError - This reason is used when there is a generic
	// binding error for a Route.
	//
	// [custom]
	RouteConditionReasonBindError = "BindError"
)
View Source
const (
	// RouteConditionResolvedRefs - This condition indicates whether the controller
	// was able to resolve all the object references for the Route.
	//
	// [spec]
	RouteConditionResolvedRefs = "ResolvedRefs"
	// RouteConditionReasonResolvedRefs - This reason is used with the
	// "ResolvedRefs" condition when the condition is True.
	//
	// [custom]
	RouteConditionReasonResolvedRefs = "ResolvedRefs"
	// RouteConditionReasonErrors - This reason is used when multiple resolution
	// errors occur of varying types. See the condition message for more details.
	//
	// [custom]
	RouteConditionReasonErrors = "Errors"
	// RouteConditionReasonServiceNotFound - This reason is used when a Route
	// references Kubernetes services that the controller cannot resolve.
	//
	// [custom]
	RouteConditionReasonServiceNotFound = "ServiceNotFound"
	// RouteConditionReasonConsulServiceNotFound - This reason is used when a Route
	// references services that the controller cannot resolve as services inside of
	// Consul.
	//
	// [custom]
	RouteConditionReasonConsulServiceNotFound = "ConsulServiceNotFound"
	// RouteConditionReasonRefNotPermitted - This reason is used with the
	// “ResolvedRefs” condition when one of the Listener’s Routes has a
	// BackendRef to an object in another namespace, where the object in the other
	// namespace does not have a ReferenceGrant explicitly allowing the reference.
	//
	// [spec]
	RouteConditionReasonRefNotPermitted = "RefNotPermitted"
	// RouteConditionReasonInvalidKind - This reason is used when a Route references
	// a backend with an unsupported group or kind.
	//
	// [spec]
	RouteConditionReasonInvalidKind = "InvalidKind"
	// RouteConditionReasonBackendNotFound - This reason is used when a Route
	// references a backend with a supported kind but that does not exist.
	//
	// [spec]
	RouteConditionReasonBackendNotFound = "BackendNotFound"
)
View Source
const (
	// ListenerConditionConflicted - This condition indicates that the controller
	// was unable to resolve conflicting specification requirements for this
	// Listener. If a Listener is conflicted, its network port should not be
	// configured on any network elements.
	//
	// [spec]
	ListenerConditionConflicted = "Conflicted"
	// ListenerConditionReasonNoConflicts - This reason is used with the
	// “Conflicted” condition when the condition is False.
	//
	// [spec]
	ListenerConditionReasonNoConflicts = "NoConflicts"
	// ListenerConditionReasonHostnameConflict - This reason is used with the
	// “Conflicted” condition when the Listener conflicts with hostnames in
	// other Listeners. For example, this reason would be used when multiple
	// Listeners on the same port use example.com in the hostname field.
	//
	// [spec]
	ListenerConditionReasonHostnameConflict = "HostnameConflict"
	// ListenerConditionReasonProtocolConflict - This reason is used with the
	// “Conflicted” condition when multiple Listeners are specified with the
	// same Listener port number, but have conflicting protocol specifications.
	//
	// [spec]
	ListenerConditionReasonProtocolConflict = "ProtocolConflict"
	// ListenerConditionReasonRouteConflict - This reason is used with the
	// “Conflicted” condition when the route resources selected for this
	// Listener conflict with other specified properties of the Listener (e.g.
	// Protocol). For example, a Listener that specifies “UDP” as the protocol
	// but a route selector that resolves “TCPRoute” objects.
	//
	// [spec]
	ListenerConditionReasonRouteConflict = "RouteConflict"
)
View Source
const (
	// ListenerConditionDetached - This condition indicates that, even though the
	// listener is syntactically and semantically valid, the controller is not able
	// to configure it on the underlying Gateway infrastructure.
	//
	// A Listener is specified as a logical requirement, but needs to be configured
	// on a network endpoint (i.e. address and port) by a controller. The controller
	// may be unable to attach the Listener if it specifies an unsupported
	// requirement, or prerequisite resources are not available.
	//
	// [spec]
	ListenerConditionDetached = "Detached"
	// ListenerConditionReasonAttached - This reason is used with the “Detached”
	// condition when the condition is False.
	//
	// [spec]
	ListenerConditionReasonAttached = "Attached"
	// ListenerConditionReasonPortUnavailable - This reason is used with the
	// “Detached” condition when the Listener requests a port that cannot be
	// used on the Gateway. This reason could be used in a number of instances,
	// including:
	//
	// - The port is already in use.
	//
	// - The port is not supported by the implementation.
	//
	// [spec]
	ListenerConditionReasonPortUnavailable = "PortUnavailable"
	// ListenerConditionReasonUnsupportedExtension - This reason is used with the
	// “Detached” condition when the controller detects that an
	// implementation-specific Listener extension is being requested, but is not
	// able to support the extension.
	//
	// [spec]
	ListenerConditionReasonUnsupportedExtension = "UnsupportedExtension"
	// ListenerConditionReasonUnsupportedProtocol - This reason is used with the
	// “Detached” condition when the Listener could not be attached to be
	// Gateway because its protocol type is not supported.
	//
	// [spec]
	ListenerConditionReasonUnsupportedProtocol = "UnsupportedProtocol"
	// ListenerConditionReasonUnsupportedAddress - This reason is used with the
	// “Detached” condition when the Listener could not be attached to the
	// Gateway because the requested address is not supported. This reason could be
	// used in a number of instances, including:
	//
	// - The address is already in use.
	//
	// - The type of address is not supported by the implementation.
	//
	// [spec]
	ListenerConditionReasonUnsupportedAddress = "UnsupportedAddress"
)
View Source
const (
	// ListenerConditionReady - This condition indicates whether the Listener has
	// been configured on the Gateway.
	//
	// [spec]
	ListenerConditionReady = "Ready"
	// ListenerConditionReasonReady - This reason is used with the “Ready”
	// condition when the condition is true.
	//
	// [spec]
	ListenerConditionReasonReady = "Ready"
	// ListenerConditionReasonInvalid - This reason is used with the “Ready”
	// condition when the Listener is syntactically or semantically invalid.
	//
	// [spec]
	ListenerConditionReasonInvalid = "Invalid"
	// ListenerConditionReasonPending - This reason is used with the “Ready”
	// condition when the Listener is not yet not online and ready to accept client
	// traffic.
	//
	// [spec]
	ListenerConditionReasonPending = "Pending"
)
View Source
const (
	// ListenerConditionResolvedRefs - This condition indicates whether the
	// controller was able to resolve all the object references for the Listener.
	//
	// [spec]
	ListenerConditionResolvedRefs = "ResolvedRefs"
	// ListenerConditionReasonResolvedRefs - This reason is used with the
	// “ResolvedRefs” condition when the condition is true.
	//
	// [spec]
	ListenerConditionReasonResolvedRefs = "ResolvedRefs"
	// ListenerConditionReasonInvalidCertificateRef - This reason is used with the
	// “ResolvedRefs” condition when the Listener has a TLS configuration with
	// at least one TLS CertificateRef that is invalid or cannot be resolved.
	//
	// [spec]
	ListenerConditionReasonInvalidCertificateRef = "InvalidCertificateRef"
	// ListenerConditionReasonInvalidRouteKinds - This reason is used with the
	// “ResolvedRefs” condition when an invalid or unsupported Route kind is
	// specified by the Listener.
	//
	// [spec]
	ListenerConditionReasonInvalidRouteKinds = "InvalidRouteKinds"
	// ListenerConditionReasonRefNotPermitted - This reason is used with the
	// “ResolvedRefs” condition when one of the Listener’s Routes has a
	// BackendRef to an object in another namespace, where the object in the other
	// namespace does not have a ReferenceGrant explicitly allowing the reference.
	//
	// [spec]
	ListenerConditionReasonRefNotPermitted = "RefNotPermitted"
)

Variables

This section is empty.

Functions

func ConditionsEqual

func ConditionsEqual(a, b []metav1.Condition) bool

func GatewayStatusEqual

func GatewayStatusEqual(a, b gwv1beta1.GatewayStatus) bool

func ListenerStatusesEqual

func ListenerStatusesEqual(a, b []gwv1beta1.ListenerStatus) bool

func RouteStatusEqual

func RouteStatusEqual(a, b gwv1alpha2.RouteStatus) bool

Types

type GatewayClassAcceptedStatus

type GatewayClassAcceptedStatus struct {
	// This reason is used with the “Accepted” condition when the GatewayClass
	// was not accepted because the parametersRef field was invalid, with more
	// detail in the message.
	//
	// [spec]
	InvalidParameters error
	// This reason is used with the “Accepted” condition when the requested
	// controller has not yet made a decision about whether to admit the
	// GatewayClass. It is the default Reason on a new GatewayClass.
	//
	// [spec]
	Waiting error
}

GatewayClassAcceptedStatus - This condition indicates whether the GatewayClass has been accepted by the controller requested in the spec.controller field.

This condition defaults to Unknown, and MUST be set by a controller when it sees a GatewayClass using its controller string. The status of this condition MUST be set to True if the controller will support provisioning Gateways using this class. Otherwise, this status MUST be set to False. If the status is set to False, the controller SHOULD set a Message and Reason as an explanation.

[spec]

func (GatewayClassAcceptedStatus) Condition

func (s GatewayClassAcceptedStatus) Condition(generation int64) meta.Condition

Condition returns the status condition of the GatewayClassAcceptedStatus based off of the underlying errors that are set.

func (GatewayClassAcceptedStatus) HasError

func (s GatewayClassAcceptedStatus) HasError() bool

HasError returns whether any of the GatewayClassAcceptedStatus errors are set.

func (GatewayClassAcceptedStatus) MarshalJSON

func (s GatewayClassAcceptedStatus) MarshalJSON() ([]byte, error)

MarshalJSON marshals a GatewayClassAcceptedStatus value to JSON

func (*GatewayClassAcceptedStatus) UnmarshalJSON

func (s *GatewayClassAcceptedStatus) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals a GatewayClassAcceptedStatus from JSON

type GatewayClassStatus

type GatewayClassStatus struct {
	// This condition indicates whether the GatewayClass has been accepted by the
	// controller requested in the spec.controller field.
	//
	// This condition defaults to Unknown, and MUST be set by a controller when it
	// sees a GatewayClass using its controller string. The status of this condition
	// MUST be set to True if the controller will support provisioning Gateways
	// using this class. Otherwise, this status MUST be set to False. If the status
	// is set to False, the controller SHOULD set a Message and Reason as an
	// explanation.
	Accepted GatewayClassAcceptedStatus
}

GatewayClassStatus - Defines the observed state of a GatewayClass.

func (GatewayClassStatus) Conditions

func (s GatewayClassStatus) Conditions(generation int64) []meta.Condition

Conditions returns the aggregated status conditions of the GatewayClassStatus.

type GatewayInSyncStatus

type GatewayInSyncStatus struct {
	// This reason is used with the "InSync" condition when there has been an error
	// encountered synchronizing the Gateway.
	//
	// [spec]
	SyncError error
}

GatewayInSyncStatus - This condition is true when the Gateway has successfully synced externally.

[spec]

func (GatewayInSyncStatus) Condition

func (s GatewayInSyncStatus) Condition(generation int64) meta.Condition

Condition returns the status condition of the GatewayInSyncStatus based off of the underlying errors that are set.

func (GatewayInSyncStatus) HasError

func (s GatewayInSyncStatus) HasError() bool

HasError returns whether any of the GatewayInSyncStatus errors are set.

func (GatewayInSyncStatus) MarshalJSON

func (s GatewayInSyncStatus) MarshalJSON() ([]byte, error)

MarshalJSON marshals a GatewayInSyncStatus value to JSON

func (*GatewayInSyncStatus) UnmarshalJSON

func (s *GatewayInSyncStatus) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals a GatewayInSyncStatus from JSON

type GatewayReadyStatus

type GatewayReadyStatus struct {
	// This reason is used with the “Ready” condition when one or more Listeners
	// have an invalid or unsupported configuration and cannot be configured on the
	// Gateway.
	//
	// [spec]
	ListenersNotValid error
	// This reason is used with the “Ready” condition when one or more Listeners
	// are not ready to serve traffic.
	//
	// [spec]
	ListenersNotReady error
	// This reason is used with the “Ready” condition when none of the requested
	// addresses have been assigned to the Gateway. This reason can be used to
	// express a range of circumstances, including (but not limited to) IPAM address
	// exhaustion, invalid or unsupported address requests, or a named address not
	// being found.
	//
	// [spec]
	AddressNotAssigned error
}

GatewayReadyStatus - This condition is true when the Gateway is expected to be able to serve traffic. Note that this does not indicate that the Gateway configuration is current or even complete (e.g. the controller may still not have reconciled the latest version, or some parts of the configuration could be missing).

If both the “ListenersNotValid” and “ListenersNotReady” reasons are true, the Gateway controller should prefer the “ListenersNotValid” reason.

[spec]

func (GatewayReadyStatus) Condition

func (s GatewayReadyStatus) Condition(generation int64) meta.Condition

Condition returns the status condition of the GatewayReadyStatus based off of the underlying errors that are set.

func (GatewayReadyStatus) HasError

func (s GatewayReadyStatus) HasError() bool

HasError returns whether any of the GatewayReadyStatus errors are set.

func (GatewayReadyStatus) MarshalJSON

func (s GatewayReadyStatus) MarshalJSON() ([]byte, error)

MarshalJSON marshals a GatewayReadyStatus value to JSON

func (*GatewayReadyStatus) UnmarshalJSON

func (s *GatewayReadyStatus) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals a GatewayReadyStatus from JSON

type GatewayScheduledStatus

type GatewayScheduledStatus struct {
	// This reason is used with the “Scheduled” condition when no controller has
	// reconciled the Gateway.
	//
	// [spec]
	NotReconciled error
	// This reason is used when the underlying pod on the gateway has failed.
	//
	// [custom]
	PodFailed error
	// This reason is used when the underlying pod has an unhandled pod status.
	//
	// [custom]
	Unknown error
	// This reason is used with the “Scheduled” condition when the Gateway is
	// not scheduled because insufficient infrastructure resources are available.
	//
	// [spec]
	NoResources error
}

GatewayScheduledStatus - This condition is true when the controller managing the Gateway has scheduled the Gateway to the underlying network infrastructure.

[spec]

func (GatewayScheduledStatus) Condition

func (s GatewayScheduledStatus) Condition(generation int64) meta.Condition

Condition returns the status condition of the GatewayScheduledStatus based off of the underlying errors that are set.

func (GatewayScheduledStatus) HasError

func (s GatewayScheduledStatus) HasError() bool

HasError returns whether any of the GatewayScheduledStatus errors are set.

func (GatewayScheduledStatus) MarshalJSON

func (s GatewayScheduledStatus) MarshalJSON() ([]byte, error)

MarshalJSON marshals a GatewayScheduledStatus value to JSON

func (*GatewayScheduledStatus) UnmarshalJSON

func (s *GatewayScheduledStatus) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals a GatewayScheduledStatus from JSON

type GatewayStatus

type GatewayStatus struct {
	// This condition is true when the Gateway is expected to be able to serve
	// traffic. Note that this does not indicate that the Gateway configuration is
	// current or even complete (e.g. the controller may still not have reconciled
	// the latest version, or some parts of the configuration could be missing).
	//
	// If both the “ListenersNotValid” and “ListenersNotReady” reasons are
	// true, the Gateway controller should prefer the “ListenersNotValid”
	// reason.
	Ready GatewayReadyStatus
	// This condition is true when the controller managing the Gateway has scheduled
	// the Gateway to the underlying network infrastructure.
	Scheduled GatewayScheduledStatus
	// This condition is true when the Gateway has successfully synced externally.
	InSync GatewayInSyncStatus
}

GatewayStatus - Defines the observed state of a Gateway.

func (GatewayStatus) Conditions

func (s GatewayStatus) Conditions(generation int64) []meta.Condition

Conditions returns the aggregated status conditions of the GatewayStatus.

type ListenerConflictedStatus

type ListenerConflictedStatus struct {
	// This reason is used with the “Conflicted” condition when the Listener
	// conflicts with hostnames in other Listeners. For example, this reason would
	// be used when multiple Listeners on the same port use example.com in the
	// hostname field.
	//
	// [spec]
	HostnameConflict error
	// This reason is used with the “Conflicted” condition when multiple
	// Listeners are specified with the same Listener port number, but have
	// conflicting protocol specifications.
	//
	// [spec]
	ProtocolConflict error
	// This reason is used with the “Conflicted” condition when the route
	// resources selected for this Listener conflict with other specified properties
	// of the Listener (e.g. Protocol). For example, a Listener that specifies
	// “UDP” as the protocol but a route selector that resolves “TCPRoute”
	// objects.
	//
	// [spec]
	RouteConflict error
}

ListenerConflictedStatus - This condition indicates that the controller was unable to resolve conflicting specification requirements for this Listener. If a Listener is conflicted, its network port should not be configured on any network elements.

[spec]

func (ListenerConflictedStatus) Condition

func (s ListenerConflictedStatus) Condition(generation int64) meta.Condition

Condition returns the status condition of the ListenerConflictedStatus based off of the underlying errors that are set.

func (ListenerConflictedStatus) HasError

func (s ListenerConflictedStatus) HasError() bool

HasError returns whether any of the ListenerConflictedStatus errors are set.

func (ListenerConflictedStatus) MarshalJSON

func (s ListenerConflictedStatus) MarshalJSON() ([]byte, error)

MarshalJSON marshals a ListenerConflictedStatus value to JSON

func (*ListenerConflictedStatus) UnmarshalJSON

func (s *ListenerConflictedStatus) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals a ListenerConflictedStatus from JSON

type ListenerDetachedStatus

type ListenerDetachedStatus struct {
	// This reason is used with the “Detached” condition when the Listener
	// requests a port that cannot be used on the Gateway. This reason could be used
	// in a number of instances, including:
	//
	// - The port is already in use.
	//
	// - The port is not supported by the implementation.
	//
	// [spec]
	PortUnavailable error
	// This reason is used with the “Detached” condition when the controller
	// detects that an implementation-specific Listener extension is being
	// requested, but is not able to support the extension.
	//
	// [spec]
	UnsupportedExtension error
	// This reason is used with the “Detached” condition when the Listener could
	// not be attached to be Gateway because its protocol type is not supported.
	//
	// [spec]
	UnsupportedProtocol error
	// This reason is used with the “Detached” condition when the Listener could
	// not be attached to the Gateway because the requested address is not
	// supported. This reason could be used in a number of instances, including:
	//
	// - The address is already in use.
	//
	// - The type of address is not supported by the implementation.
	//
	// [spec]
	UnsupportedAddress error
}

ListenerDetachedStatus - This condition indicates that, even though the listener is syntactically and semantically valid, the controller is not able to configure it on the underlying Gateway infrastructure.

A Listener is specified as a logical requirement, but needs to be configured on a network endpoint (i.e. address and port) by a controller. The controller may be unable to attach the Listener if it specifies an unsupported requirement, or prerequisite resources are not available.

[spec]

func (ListenerDetachedStatus) Condition

func (s ListenerDetachedStatus) Condition(generation int64) meta.Condition

Condition returns the status condition of the ListenerDetachedStatus based off of the underlying errors that are set.

func (ListenerDetachedStatus) HasError

func (s ListenerDetachedStatus) HasError() bool

HasError returns whether any of the ListenerDetachedStatus errors are set.

func (ListenerDetachedStatus) MarshalJSON

func (s ListenerDetachedStatus) MarshalJSON() ([]byte, error)

MarshalJSON marshals a ListenerDetachedStatus value to JSON

func (*ListenerDetachedStatus) UnmarshalJSON

func (s *ListenerDetachedStatus) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals a ListenerDetachedStatus from JSON

type ListenerReadyStatus

type ListenerReadyStatus struct {
	// This reason is used with the “Ready” condition when the Listener is
	// syntactically or semantically invalid.
	//
	// [spec]
	Invalid error
	// This reason is used with the “Ready” condition when the Listener is not
	// yet not online and ready to accept client traffic.
	//
	// [spec]
	Pending error
}

ListenerReadyStatus - This condition indicates whether the Listener has been configured on the Gateway.

[spec]

func (ListenerReadyStatus) Condition

func (s ListenerReadyStatus) Condition(generation int64) meta.Condition

Condition returns the status condition of the ListenerReadyStatus based off of the underlying errors that are set.

func (ListenerReadyStatus) HasError

func (s ListenerReadyStatus) HasError() bool

HasError returns whether any of the ListenerReadyStatus errors are set.

func (ListenerReadyStatus) MarshalJSON

func (s ListenerReadyStatus) MarshalJSON() ([]byte, error)

MarshalJSON marshals a ListenerReadyStatus value to JSON

func (*ListenerReadyStatus) UnmarshalJSON

func (s *ListenerReadyStatus) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals a ListenerReadyStatus from JSON

type ListenerResolvedRefsStatus

type ListenerResolvedRefsStatus struct {
	// This reason is used with the “ResolvedRefs” condition when the Listener
	// has a TLS configuration with at least one TLS CertificateRef that is invalid
	// or cannot be resolved.
	//
	// [spec]
	InvalidCertificateRef error
	// This reason is used with the “ResolvedRefs” condition when an invalid or
	// unsupported Route kind is specified by the Listener.
	//
	// [spec]
	InvalidRouteKinds error
	// This reason is used with the “ResolvedRefs” condition when one of the
	// Listener’s Routes has a BackendRef to an object in another namespace, where
	// the object in the other namespace does not have a ReferenceGrant explicitly
	// allowing the reference.
	//
	// [spec]
	RefNotPermitted error
}

ListenerResolvedRefsStatus - This condition indicates whether the controller was able to resolve all the object references for the Listener.

[spec]

func (ListenerResolvedRefsStatus) Condition

func (s ListenerResolvedRefsStatus) Condition(generation int64) meta.Condition

Condition returns the status condition of the ListenerResolvedRefsStatus based off of the underlying errors that are set.

func (ListenerResolvedRefsStatus) HasError

func (s ListenerResolvedRefsStatus) HasError() bool

HasError returns whether any of the ListenerResolvedRefsStatus errors are set.

func (ListenerResolvedRefsStatus) MarshalJSON

func (s ListenerResolvedRefsStatus) MarshalJSON() ([]byte, error)

MarshalJSON marshals a ListenerResolvedRefsStatus value to JSON

func (*ListenerResolvedRefsStatus) UnmarshalJSON

func (s *ListenerResolvedRefsStatus) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals a ListenerResolvedRefsStatus from JSON

type ListenerStatus

type ListenerStatus struct {
	// This condition indicates that the controller was unable to resolve
	// conflicting specification requirements for this Listener. If a Listener is
	// conflicted, its network port should not be configured on any network
	// elements.
	Conflicted ListenerConflictedStatus
	// This condition indicates that, even though the listener is syntactically and
	// semantically valid, the controller is not able to configure it on the
	// underlying Gateway infrastructure.
	//
	// A Listener is specified as a logical requirement, but needs to be configured
	// on a network endpoint (i.e. address and port) by a controller. The controller
	// may be unable to attach the Listener if it specifies an unsupported
	// requirement, or prerequisite resources are not available.
	Detached ListenerDetachedStatus
	// This condition indicates whether the Listener has been configured on the
	// Gateway.
	Ready ListenerReadyStatus
	// This condition indicates whether the controller was able to resolve all the
	// object references for the Listener.
	ResolvedRefs ListenerResolvedRefsStatus
}

ListenerStatus - The status associated with a Listener.

func (ListenerStatus) Conditions

func (s ListenerStatus) Conditions(generation int64) []meta.Condition

Conditions returns the aggregated status conditions of the ListenerStatus.

func (ListenerStatus) Valid

func (s ListenerStatus) Valid() bool

Valid returns whether all of the required conditions for the ListenerStatus are satisfied.

type RouteAcceptedStatus

type RouteAcceptedStatus struct {
	// This reason is used when a Route is rejected from binding to a Listener
	// because it does not match a Listener's allowed route kinds.
	//
	// [custom]
	InvalidRouteKind error
	// This reason is used when a Route is rejected from binding to a Gateway
	// because it does not match a Listener's namespace attachment policy.
	//
	// [custom]
	ListenerNamespacePolicy error
	// This reason is used when a Route is rejected from binding to a Listener
	// becasue it does not match a Listener's hostname.
	//
	// [custom]
	ListenerHostnameMismatch error
	// This reason is used when there is a generic binding error for a Route.
	//
	// [custom]
	BindError error
}

RouteAcceptedStatus - This condition indicates whether the route has been accepted or rejected by a Gateway, and why.

[spec]

func (RouteAcceptedStatus) Condition

func (s RouteAcceptedStatus) Condition(generation int64) meta.Condition

Condition returns the status condition of the RouteAcceptedStatus based off of the underlying errors that are set.

func (RouteAcceptedStatus) MarshalJSON

func (s RouteAcceptedStatus) MarshalJSON() ([]byte, error)

MarshalJSON marshals a RouteAcceptedStatus value to JSON

func (*RouteAcceptedStatus) UnmarshalJSON

func (s *RouteAcceptedStatus) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals a RouteAcceptedStatus from JSON

type RouteResolvedRefsStatus

type RouteResolvedRefsStatus struct {
	// This reason is used when multiple resolution errors occur of varying types.
	// See the condition message for more details.
	//
	// [custom]
	Errors error
	// This reason is used when a Route references Kubernetes services that the
	// controller cannot resolve.
	//
	// [custom]
	ServiceNotFound error
	// This reason is used when a Route references services that the controller
	// cannot resolve as services inside of Consul.
	//
	// [custom]
	ConsulServiceNotFound error
	// This reason is used with the “ResolvedRefs” condition when one of the
	// Listener’s Routes has a BackendRef to an object in another namespace, where
	// the object in the other namespace does not have a ReferenceGrant explicitly
	// allowing the reference.
	//
	// [spec]
	RefNotPermitted error
	// This reason is used when a Route references a backend with an unsupported
	// group or kind.
	//
	// [spec]
	InvalidKind error
	// This reason is used when a Route references a backend with a supported kind
	// but that does not exist.
	//
	// [spec]
	BackendNotFound error
}

RouteResolvedRefsStatus - This condition indicates whether the controller was able to resolve all the object references for the Route.

[spec]

func (RouteResolvedRefsStatus) Condition

func (s RouteResolvedRefsStatus) Condition(generation int64) meta.Condition

Condition returns the status condition of the RouteResolvedRefsStatus based off of the underlying errors that are set.

func (RouteResolvedRefsStatus) HasError

func (s RouteResolvedRefsStatus) HasError() bool

HasError returns whether any of the RouteResolvedRefsStatus errors are set.

func (RouteResolvedRefsStatus) MarshalJSON

func (s RouteResolvedRefsStatus) MarshalJSON() ([]byte, error)

MarshalJSON marshals a RouteResolvedRefsStatus value to JSON

func (*RouteResolvedRefsStatus) UnmarshalJSON

func (s *RouteResolvedRefsStatus) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals a RouteResolvedRefsStatus from JSON

type RouteStatus

type RouteStatus struct {
	// This condition indicates whether the route has been accepted or rejected by a
	// Gateway, and why.
	Accepted RouteAcceptedStatus
	// This condition indicates whether the controller was able to resolve all the
	// object references for the Route.
	ResolvedRefs RouteResolvedRefsStatus
}

RouteStatus - The status associated with a Route with respect to a given parent.

func (RouteStatus) Conditions

func (s RouteStatus) Conditions(generation int64) []meta.Condition

Conditions returns the aggregated status conditions of the RouteStatus.

type RouteStatuses

type RouteStatuses map[string]*RouteStatus

func (RouteStatuses) BindFailed

func (r RouteStatuses) BindFailed(resolutionErrors *service.ResolutionErrors, err error, id string)

func (RouteStatuses) Bound

func (r RouteStatuses) Bound(id string)

func (RouteStatuses) NeedsUpdate

func (r RouteStatuses) NeedsUpdate(routeStatus gwv1alpha2.RouteStatus, controllerName string, generation int64) (gwv1alpha2.RouteStatus, bool)

func (RouteStatuses) Remove

func (r RouteStatuses) Remove(id string)

func (RouteStatuses) Statuses

func (r RouteStatuses) Statuses(controllerName string, generation int64) []gwv1alpha2.RouteParentStatus

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL