-
Notifications
You must be signed in to change notification settings - Fork 491
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding new SupportedVersion condition to GatewayClass #2384
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love it, LGTM. Holding though in case we need further review.
/lgtm
/hold
@@ -186,6 +187,49 @@ const ( | |||
GatewayClassReasonWaiting GatewayClassConditionReason = "Waiting" | |||
) | |||
|
|||
const ( | |||
// This condition indicates whether the GatewayClass supports the version(s) | |||
// of Gateway API CRDs present in the cluster. This condition MUST be set by |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this condition "MUST be set", would it make sense to update the conformance tests too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I think we'll want to have corresponding updates to the conformance tests. I'd initially thought those should be a separate PR, but they may be simple enough to combine here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm aware of the dilemma with generally not wanting to rely on information from CRDs, but I'm also aware we don't have an alternative to get this feature. Also if we ever needed to change it, it would be mostly on implementations. Generally, if we ever move off CRDs I think having to change this will be the least of problems we have to contend with.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: robscott, shaneutt The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
I think that we have no option than to require something like this; I'm working on an implementer's guide that will lay out some suggestions for how to determine the required information in the right way. I like the Condition idea because it allows implementations to mark the GatewayClass as I also agree that it would be nice to have conformance tests for this behavior, but I think that they may be harder to build than it seems (since we don't have any way to install different versions of the CRDs in the testing suite). So I am going to merge this as-is, and create an issue for follow-up conformance testing of this Condition. /unhold |
What type of PR is this?
/kind documentation
/kind feature
What this PR does / why we need it:
This is intended to fix #2077 by adding a new SupportedVersion condition on GatewayClass and corresponding documentation.
Which issue(s) this PR fixes:
Fixes #2077
Does this PR introduce a user-facing change?:
/hold for consensus