-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Bug 1920300: Allow stream timeout to be set from config #4529
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
Conversation
|
Hi @wgahnagl. Thanks for your PR. I'm waiting for a cri-o member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
/ok-to-test |
Codecov Report
@@ Coverage Diff @@
## master #4529 +/- ##
=======================================
Coverage 40.18% 40.18%
=======================================
Files 115 115
Lines 9327 9339 +12
=======================================
+ Hits 3748 3753 +5
- Misses 5161 5168 +7
Partials 418 418 |
docs/crio.8.md
Outdated
| **--root, -r**="": The CRI-O root directory (default: /var/lib/containers/storage) | ||
|
|
||
| **--runroot**="": The CRI-O state directory (default: /run/containers/storage) | ||
| **--runroot**="": The CRI-O state directory (default: /var/run/containers/storage) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes in the file that aren't related to stream-idle-timeout should be dropped.
d0488d3 to
6b888af
Compare
aa9b20f to
7b74edc
Compare
saschagrunert
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one nit, otherwise LGTM
server/server.go
Outdated
| if config.StreamIdleTimeout != "" { | ||
| idleTimeout, err := time.ParseDuration(config.StreamIdleTimeout) | ||
| if err != nil { | ||
| return nil, fmt.Errorf("unable to parse timeout as duration") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no format included and we'd like to stick to the github.com/pkg/errors package rather than fmt:
| return nil, fmt.Errorf("unable to parse timeout as duration") | |
| return nil, errors.New("unable to parse timeout as duration") |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: saschagrunert, wgahnagl The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
8674ad2 to
7738b39
Compare
|
We need to default this value to 15 minutes to follow security standards. Ref: https://vlab.ncep.noaa.gov/documents/179645/414991/FedRAMP-Rev-4-Baseline-Workbook-FINAL062014.xlsx/1d5c4681-edbe-4878-8797-de1f201b318c?version=1.0&targetExtension=pdf |
|
/retest |
Signed-off-by: Skyler Clark <[email protected]>
|
/retest |
5 similar comments
|
/retest |
|
/retest |
|
/retest |
|
/retest |
|
/retest |
|
/lgtm |
|
@wgahnagl: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
What type of PR is this?
What this PR does / why we need it:
allows the stream timeout to be set by config
Which issue(s) this PR fixes:
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1920300
Special notes for your reviewer:
Does this PR introduce a user-facing change?
allows users to set stream timeout from config