Documentation ¶
Index ¶
- Constants
- func ConvertConditions(conds []Condition, observedGeneration int64, transitionTime metav1.Time) []metav1.Condition
- type Condition
- func DeduplicateConditions(conds []Condition) []Condition
- func NewDefaultGatewayClassConditions() []Condition
- func NewGatewayClassConflict() Condition
- func NewGatewayClassSupportedVersionBestEffort(recommendedVersion string) []Condition
- func NewGatewayClassUnsupportedVersion(recommendedVersion string) []Condition
Constants ¶
const ( // GatewayClassReasonGatewayClassConflict indicates there are multiple GatewayClass resources // that reference this controller, and we ignored the resource in question and picked the // GatewayClass that is referenced in the command-line argument. // This reason is used with GatewayClassConditionAccepted (false). GatewayClassReasonGatewayClassConflict v1.GatewayClassConditionReason = "GatewayClassConflict" // GatewayClassMessageGatewayClassConflict is a message that describes GatewayClassReasonGatewayClassConflict. GatewayClassMessageGatewayClassConflict = "The resource is ignored due to a conflicting GatewayClass resource" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Condition ¶
type Condition struct { Type string Status metav1.ConditionStatus Reason string Message string }
Condition defines a condition to be reported in the status of resources.
func DeduplicateConditions ¶ added in v1.1.0
DeduplicateConditions removes duplicate conditions based on the condition type. The last condition wins. The order of conditions is preserved.
func NewDefaultGatewayClassConditions ¶
func NewDefaultGatewayClassConditions() []Condition
NewDefaultGatewayClassConditions returns Conditions that indicate that the GatewayClass is accepted and that the Gateway API CRD versions are supported.
func NewGatewayClassConflict ¶
func NewGatewayClassConflict() Condition
NewGatewayClassConflict returns a Condition that indicates that the GatewayClass is not accepted due to a conflict with another GatewayClass.
func NewGatewayClassSupportedVersionBestEffort ¶ added in v1.1.0
NewGatewayClassSupportedVersionBestEffort returns a Condition that indicates that the GatewayClass is accepted, but the Gateway API CRD versions are not supported. This means NGF will attempt to generate configuration, but it does not guarantee support.
func NewGatewayClassUnsupportedVersion ¶ added in v1.1.0
NewGatewayClassUnsupportedVersion returns Conditions that indicate that the GatewayClass is not accepted because the Gateway API CRD versions are not supported. NGF will not generate configuration in this case.