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

Gateway API: add support for ReferenceGrant #4580

Merged
merged 1 commit into from
Jun 16, 2022

Conversation

skriss
Copy link
Member

@skriss skriss commented Jun 15, 2022

Adds support for the renamed ReferenceGrant
resource while retaining support for
ReferencePolicy, to allow for a seamless
migration. ReferencePolicy support will
be removed in a subsequent release.

Updates #4555.

Signed-off-by: Steve Kriss krisss@vmware.com

@codecov
Copy link

codecov bot commented Jun 15, 2022

Codecov Report

Merging #4580 (1a44f15) into main (7d339cb) will decrease coverage by 0.18%.
The diff coverage is 88.67%.

❗ Current head 1a44f15 differs from pull request most recent head 469df35. Consider uploading reports for the commit 469df35 to get more accurate results

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #4580      +/-   ##
==========================================
- Coverage   77.00%   76.82%   -0.19%     
==========================================
  Files         140      140              
  Lines       12784    12813      +29     
==========================================
- Hits         9844     9843       -1     
- Misses       2684     2713      +29     
- Partials      256      257       +1     
Impacted Files Coverage Δ
cmd/contour/serve.go 13.00% <0.00%> (-0.05%) ⬇️
internal/status/routeconditions.go 17.72% <0.00%> (ø)
internal/dag/gatewayapi_processor.go 93.05% <96.87%> (-2.39%) ⬇️
internal/dag/cache.go 92.59% <100.00%> (-2.15%) ⬇️
internal/gatewayapi/helpers.go 100.00% <100.00%> (ø)
...ovisioner/objects/rbac/clusterrole/cluster_role.go 70.49% <100.00%> (ø)
internal/sorter/sorter.go 97.57% <0.00%> (-1.22%) ⬇️

Adds support for the renamed ReferenceGrant
resource while retaining support for
ReferencePolicy, to allow for a seamless
migration. ReferencePolicy support will
be removed in a subsequent release.

Updates projectcontour#4555.

Signed-off-by: Steve Kriss <krisss@vmware.com>
@skriss skriss force-pushed the gw-api-refgrant branch from 807619a to 469df35 Compare June 16, 2022 14:16
@skriss skriss marked this pull request as ready for review June 16, 2022 14:17
@skriss skriss requested a review from a team as a code owner June 16, 2022 14:17
@skriss skriss requested review from tsaarni and sunjayBhatia and removed request for a team June 16, 2022 14:17
@skriss skriss added release-note/small A small change that needs one line of explanation in the release notes. release-note/deprecation A deprecation or removal that needs about a paragraph of explanation in the release notes. labels Jun 16, 2022
@@ -1424,7 +1424,7 @@ func TestDAGInsertGatewayAPI(t *testing.T) {
},
),
},
"HTTPRoute references a backend in a different namespace, no ReferencePolicy": {
"HTTPRoute references a backend in a different namespace, no ReferenceGrant": {
Copy link
Member Author

Choose a reason for hiding this comment

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

I decided to just switch these tests over rather than duplicate them, since the old ones will go away soon, but I can do the former if folks think it's necessary.

Copy link
Member

@sunjayBhatia sunjayBhatia left a comment

Choose a reason for hiding this comment

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

LGTM

just thinking out loud, since referencepolicy/grant is an "allow list" rather than a block list, there can't be really any conflicts between different instances of either, so seems pretty simple to have both working etc. and remove referencepolicy next next (1.23.0) version

@skriss skriss merged commit c74c33a into projectcontour:main Jun 16, 2022
@skriss skriss deleted the gw-api-refgrant branch June 16, 2022 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note/deprecation A deprecation or removal that needs about a paragraph of explanation in the release notes. release-note/small A small change that needs one line of explanation in the release notes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants