Skip to content
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

Add IncompatibleFilters reason for Accepted condition #2150

Merged

Conversation

sunjayBhatia
Copy link
Member

What type of PR is this?

/kind cleanup
/kind documentation

What this PR does / why we need it:

Adds new reason for configuration errors arising from invalid combination of route filters.

Pulled out of #1540 per @robscott

Which issue(s) this PR fixes:

Fixes #1521

Does this PR introduce a user-facing change?:

Add IncompatibleFilters reason for implementations to specify when a route is invalid due to an invalid combination of route filters.

New reason for configuration errors arising from invalid combination of
route filters.

Signed-off-by: Sunjay Bhatia <[email protected]>
@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. kind/documentation Categorizes issue or PR as related to documentation. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Jun 28, 2023
@k8s-ci-robot k8s-ci-robot requested review from kflynn and robscott June 28, 2023 00:25
@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jun 28, 2023
// document that limitation. In all cases where incompatible or unsupported
// filters are specified, implementations MUST add a warning condition to status.
// document that limitation. In cases where incompatible or unsupported
// filters are specified and cause the `Accepted` condition to be set to status
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this section cause the Accepted condition to be set to status False is because you might have a partially valid route, in that case it would still be Accepted=True so doesn't really make sense to set the IncompatibleFilters reason

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I ran into the same problem in #2155 where it would be really useful to be able to communicate "something's not quite right, but we're still able to at least partially reconcile this route". In that case it was if the timeout specified was more precise (ie ms or ns) than the underlying implementation could support.

Copy link
Member

@robscott robscott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @sunjayBhatia! Will defer to someone else for final LGTM.

/cc @arkodg @mlavacca @howardjohn @shaneutt
/approve

// document that limitation. In all cases where incompatible or unsupported
// filters are specified, implementations MUST add a warning condition to status.
// document that limitation. In cases where incompatible or unsupported
// filters are specified and cause the `Accepted` condition to be set to status
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I ran into the same problem in #2155 where it would be really useful to be able to communicate "something's not quite right, but we're still able to at least partially reconcile this route". In that case it was if the timeout specified was more precise (ie ms or ns) than the underlying implementation could support.

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: robscott, sunjayBhatia

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 28, 2023
@robscott robscott added this to the v0.8.0 milestone Jun 28, 2023
cannot support other combinations of filters, they must clearly document that
limitation. In all cases where incompatible or unsupported filters are
specified, implementations MUST add a warning condition to status.
If an implementation can not support a combinations of filters, they must clearly
Copy link
Contributor

@arkodg arkodg Jun 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: cannot (is more widely used)

@arkodg
Copy link
Contributor

arkodg commented Jun 29, 2023

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 29, 2023
@k8s-ci-robot k8s-ci-robot merged commit 8f43a27 into kubernetes-sigs:main Jun 29, 2023
@sunjayBhatia sunjayBhatia deleted the incompatiblefilters-reason branch June 29, 2023 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. kind/documentation Categorizes issue or PR as related to documentation. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

webhook/conformance: Handle incompatible HTTP Filters on a rule
4 participants