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
Fix possibility of intervals without from/to by requiring when we Build() #28182
Fix possibility of intervals without from/to by requiring when we Build() #28182
Conversation
…ld() This should help anyone forgetting to call From/To and generating an interval without.
/lgtm |
Job Failure Risk Analysis for sha: f4cc1d8
|
/lgtm |
/retest-required |
Missed this earlier: github.com/openshift/origin/pkg/monitortests/node/kubeletlogcollector |
/hold Revision ba1cdba was retested 3 times: holding |
Job Failure Risk Analysis for sha: ba1cdba
|
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: DennisPeriquet, dgoodwin, neisw The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/hold cancel |
@dgoodwin: The following tests failed, say
Full PR test history. Your PR dashboard. Instructions 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. |
Job Failure Risk Analysis for sha: 9811f25
|
74f307c
into
openshift:master
This PR needs to be reverted. Open time intervals for start and end are perfectly valid when you consider cases of "this pod was started before the monitor began" or "this node was still ready when this monitor ended". Doing this limits useful expression from where we are today. This is why the .Clamp method exists if we wish to eliminate open endedness for rendering, but doing it here will prevent us from expressing current and valid intent. |
Ah, the PR doesn't do what the description says it. Do you intend to stop zero value times? |
This should help anyone forgetting to call From/To and generating an
interval without.
Using Build instead of the constructor NewInterval because there are cases where we don't really know it up front.