Skip to content

Commit

Permalink
apis: switch from Invalid reason to Unsupported
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemorris committed May 2, 2024
1 parent 896ad6d commit 4c83e43
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions apis/v1/gatewayclass_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ const (
//
// Possible reasons for this condition to be False are:
//
// * "Invalid"
// * "InvalidParameters"
// * "Unsupported"
// * "UnsupportedVersion"
//
// Possible reasons for this condition to be Unknown are:
Expand All @@ -179,10 +179,6 @@ const (
// true.
GatewayClassReasonAccepted GatewayClassConditionReason = "Accepted"

// This reason is used with the "Accepted" condition when the
// GatewayClass was not accepted, with more detail in the message.
GatewayClassReasonInvalid GatewayClassConditionReason = "Invalid"

// This reason is used with the "Accepted" condition when the GatewayClass
// was not accepted because the parametersRef field refers to a nonexistent
// or unsupported resource or kind, or when the data within that resource is
Expand All @@ -195,6 +191,11 @@ const (
// GatewayClass.
GatewayClassReasonPending GatewayClassConditionReason = "Pending"

// This reason is used with the "Accepted" condition when the GatewayClass
// was not accepted because the implementation does not support a
// user-defined GatewayClass.
GatewayClassReasonUnsupported GatewayClassConditionReason = "Unsupported"

// Deprecated: Use "Pending" instead.
GatewayClassReasonWaiting GatewayClassConditionReason = "Waiting"
)
Expand Down

0 comments on commit 4c83e43

Please sign in to comment.