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

internal/dag: use RefNotPermitted reason when applicable #4482

Merged
merged 2 commits into from
Apr 18, 2022

Conversation

skriss
Copy link
Member

@skriss skriss commented Apr 18, 2022

When an HTTPRoute or TLSRoute has a cross-namespace
backend ref that's not permitted by a ReferencePolicy,
use the RefNotPermitted condition reason.

Closes #4479.

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

ref. kubernetes-sigs/gateway-api#1081 (comment)

@skriss skriss requested a review from a team as a code owner April 18, 2022 15:42
@skriss skriss requested review from tsaarni, youngnick and sunjayBhatia and removed request for a team April 18, 2022 15:42
@skriss skriss added the release-note/small A small change that needs one line of explanation in the release notes. label Apr 18, 2022
skriss added 2 commits April 18, 2022 16:20
When an HTTPRoute or TLSRoute has a cross-namespace
backend ref that's not permitted by a ReferencePolicy,
use the RefNotPermitted condition reason.

Closes projectcontour#4479.

Signed-off-by: Steve Kriss <krisss@vmware.com>
Signed-off-by: Steve Kriss <krisss@vmware.com>
@skriss skriss force-pushed the route-refnotpermitted branch from 9446577 to ac79f75 Compare April 18, 2022 16:20
@codecov
Copy link

codecov bot commented Apr 18, 2022

Codecov Report

Merging #4482 (ac79f75) into main (893a513) will increase coverage by 0.01%.
The diff coverage is 92.30%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #4482      +/-   ##
==========================================
+ Coverage   76.65%   76.67%   +0.01%     
==========================================
  Files         139      139              
  Lines       12490    12500      +10     
==========================================
+ Hits         9574     9584      +10     
  Misses       2669     2669              
  Partials      247      247              
Impacted Files Coverage Δ
internal/provisioner/model/model.go 86.95% <ø> (ø)
internal/dag/gatewayapi_processor.go 95.61% <91.30%> (+0.06%) ⬆️
internal/provisioner/controller/gateway.go 48.93% <100.00%> (ø)
...provisioner/objects/contourconfig/contourconfig.go 86.79% <100.00%> (ø)

@skriss skriss merged commit 325b777 into projectcontour:main Apr 18, 2022
@skriss skriss deleted the route-refnotpermitted branch April 18, 2022 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

Gateway API: use "RefNotPermitted" condition reason for invalid cross-namespace refs
2 participants