-
Notifications
You must be signed in to change notification settings - Fork 472
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
apis: add GatewayClassConditionReason Unsupported #3048
apis: add GatewayClassConditionReason Unsupported #3048
Conversation
@mikemorris: The label(s) In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@mikemorris: GitHub didn't allow me to request PR reviews from the following users: snehachhabria. Note that only kubernetes-sigs members and repo collaborators can review this PR, and authors cannot review their own PRs. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
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.
Thanks @mikemorris!
apis/v1/gatewayclass_types.go
Outdated
// GatewayClass was not accepted, with more detail in the message. | ||
GatewayClassReasonInvalid GatewayClassConditionReason = "Invalid" |
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 there's not really much to a GatewayClass, it may be slightly more accurate to use "Unsupported" here if custom GatewayClasses just aren't supported. I think either are probably fine here, interested in what others think.
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'd be happy with Unsupported
instead if folks would prefer that!
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 feel Unsupported
is a better than Invalid
as its a more accurate reason even if a message is or is not provided. Invalid can have a wider scope.
Clarify description for when GatewayClassConditionReason InvalidParameters should be preferred.
1fe4585
to
e08357c
Compare
e08357c
to
1debac4
Compare
a0728d1
to
4c83e43
Compare
/retest Is this Docker builder removal timeout issue with CI documented anywhere as needing a fix yet? |
@mikemorris would it be ok if we held off on merging this until post-v1.1? I'm completely on board with the change, but hate to make any changes to CRDs/API Spec between RC2 and final release. Maybe implementations could just manually add this condition until it was formally added here? |
Nope, I think I asked about in Slack once, but really unsure who could help us figure this one out. As a short term fix, it might be worth splitting out our docker build verification into a separate task that doesn't run with the rest of our verification. We'd just need to rework our Makefile a bit and add a new task here: https://github.com/kubernetes/test-infra/blob/master/config/jobs/kubernetes-sigs/gateway-api/gateway-api-config.yaml. |
Sure, no objections to that! |
Thanks @mikemorris! /lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mikemorris, robscott 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 |
* apis: add GatewayClassConditionReason Invalid Clarify description for when GatewayClassConditionReason InvalidParameters should be preferred. * doc: clarify expected behavior for bad reference in GatewayClass ParametersRef * docs: GatewayClass SHOULD be rejected with InvalidParameters reason * apis: switch from Invalid reason to Unsupported * fixup codegen and yamllint --------- Co-authored-by: Mike Morris <1149913+mikemorris@users.noreply.github.com>
* apis: add GatewayClassConditionReason Invalid Clarify description for when GatewayClassConditionReason InvalidParameters should be preferred. * doc: clarify expected behavior for bad reference in GatewayClass ParametersRef * docs: GatewayClass SHOULD be rejected with InvalidParameters reason * apis: switch from Invalid reason to Unsupported * fixup codegen and yamllint --------- Co-authored-by: Mike Morris <1149913+mikemorris@users.noreply.github.com>
...and clarifies the description for when GatewayClassConditionReason InvalidParameters should be preferred.
I considered adding something like
GatewayClassConditionType ResolvedRefs
withGatewayClassConditionType InvalidParametersRef
as a more spec-consistent way to handle an invalidparametersRef
reference as distinct from malformed content, but that felt like too big a change given that the documentation for theparametersRef
field currently states:EDIT: Although now that I read that, that sentence needs to be reworded to be accurate.
What type of PR is this?
/kind documentation
/area conformance
What this PR does / why we need it:
Adds an appropriate reason for implementations (such as those of cloud vendors) which provide their own fixed GatewayClass offerings and do not support manually created GatewayClass resources.
Which issue(s) this PR fixes:
Provides an appropriate status condition reason to set for the
GatewayClassObservedGeneration
test currently skipped and blocking Azure Application Gateway for Containers full conformance in #3021Does this PR introduce a user-facing change?:
/cc @robscott @youngnick @snehachhabria