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: add more header condition validations #2617

Merged
merged 1 commit into from
Jun 22, 2020

Conversation

skriss
Copy link
Member

@skriss skriss commented Jun 19, 2020

Follow-up from #2600 (comment) (specifically item 3).

Detect additional invalid header condition scenarios and write them
to the proxy's status, specifically for:

  • routes with both Exact and NotExact conditions with the same
    value for the same header
  • routes with both Contains and NotContains conditions with the
    same value for the same header

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

@codecov
Copy link

codecov bot commented Jun 19, 2020

Codecov Report

Merging #2617 into master will increase coverage by 0.04%.
The diff coverage is 88.88%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2617      +/-   ##
==========================================
+ Coverage   76.73%   76.77%   +0.04%     
==========================================
  Files          71       71              
  Lines        5511     5538      +27     
==========================================
+ Hits         4229     4252      +23     
- Misses       1197     1199       +2     
- Partials       85       87       +2     
Impacted Files Coverage Δ
internal/dag/conditions.go 95.83% <88.23%> (-4.17%) ⬇️
internal/dag/builder.go 92.06% <100.00%> (ø)

Copy link
Member

@stevesloka stevesloka left a comment

Choose a reason for hiding this comment

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

/lgtm with fixing up the one small spelling lint error.

Detect additional invalid header condition scenarios and write them
to the proxy's status, specifically for:
- routes with both Exact and NotExact conditions with the same
value for the same header
- routes with both Contains and NotContains conditions with the
same value for the same header

Signed-off-by: Steve Kriss <krisss@vmware.com>
@skriss skriss force-pushed the more-header-validations branch from 4d025a6 to 5b7ab28 Compare June 22, 2020 15:50
@skriss
Copy link
Member Author

skriss commented Jun 22, 2020

fixed typo

@skriss skriss merged commit 127d063 into projectcontour:master Jun 22, 2020
@skriss skriss deleted the more-header-validations branch June 22, 2020 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants