-
Notifications
You must be signed in to change notification settings - Fork 460
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 StartedAt and FinishedAt of the container status #724
Conversation
Welcome @Iceber! |
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.
Which container runtime did you use for the tests? I did a local test with CRI-O (master) and the resulting dates for a created container were:
"startedAt": "1970-01-01T01:00:00+01:00",
"finishedAt": "1970-01-01T01:00:00+01:00",
I think we're good to move forward with that change. We could say that it's a breaking change but I would not expect someone to rely on the date parsing output if the container state does not match.
I did the tests with the The You can use --debug to see the returned data |
And kubernetes sometimes ignores startedAt and finishedAt when dealing with I'm thinking about whether to show |
In that case it would't be a "breaking change". I like that. 👍 |
@saschagrunert update to show |
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.
/lgtm
/hold for the tests
/hold cancel the CI failures are not related to this change, I'll follow-up on those. |
Signed-off-by: Iceber Gu <wei.cai-nat@daocloud.io>
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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Iceber, saschagrunert 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 |
Signed-off-by: Iceber Gu wei.cai-nat@daocloud.io
What type of PR is this?
/kind bug
What this PR does / why we need it:
Finished time is always
1754-08-31T06:49:24.128654848+08:05
in the run and create states, becauseFinishedAt
is-6795364578871345152
Which issue(s) this PR fixes:
Special notes for your reviewer:
Fixed output in the running state:
Does this PR introduce a user-facing change?