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

apis: add kubebuilder regex validation for timeout strings #2913

Merged
merged 1 commit into from
Sep 17, 2020

Conversation

skriss
Copy link
Member

@skriss skriss commented Sep 16, 2020

Adds kubebuilder regex validations for all timeout string API
fields.

Closes #2728

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

@codecov
Copy link

codecov bot commented Sep 16, 2020

Codecov Report

Merging #2913 into main will decrease coverage by 0.03%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2913      +/-   ##
==========================================
- Coverage   76.33%   76.30%   -0.04%     
==========================================
  Files          83       83              
  Lines        6344     6344              
==========================================
- Hits         4843     4841       -2     
- Misses       1407     1408       +1     
- Partials       94       95       +1     
Impacted Files Coverage Δ
internal/dag/cache.go 95.90% <0.00%> (-0.69%) ⬇️

@skriss skriss added the release-note Denotes a PR that will be considered when it comes time to generate release notes. label Sep 16, 2020
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

This would be great to have functional tests for this to cover as well.

@skriss
Copy link
Member Author

skriss commented Sep 16, 2020

This would be great to have functional tests for this to cover as well.

Yep, good idea. Still need to wrap my brain around how to add new test cases there as I haven't done it yet.

Copy link
Member

@youngnick youngnick left a comment

Choose a reason for hiding this comment

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

LGTM, nice work.

@skriss skriss force-pushed the timeout-regex-validations branch 2 times, most recently from 406ebe3 to fc20477 Compare September 17, 2020 14:34
@skriss
Copy link
Member Author

skriss commented Sep 17, 2020

@stevesloka I'll file a followup issue to look at adding an integration test for this.

Adds kubebuilder regex validations for all timeout string API
fields.

Closes projectcontour#2728

Signed-off-by: Steve Kriss <krisss@vmware.com>
@skriss skriss force-pushed the timeout-regex-validations branch from fc20477 to 9479e63 Compare September 17, 2020 14:36
@skriss
Copy link
Member Author

skriss commented Sep 17, 2020

ignoring SNI integration test flake.

@skriss skriss merged commit 28bed07 into projectcontour:main Sep 17, 2020
@skriss skriss deleted the timeout-regex-validations branch September 21, 2020 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note Denotes a PR that will be considered when it comes time to generate release notes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

improve validation around user-specified timeout values
3 participants