-
Notifications
You must be signed in to change notification settings - Fork 242
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
Update DataSource LastTransitionTime when populated PVC is updated #2381
Conversation
…ated Signed-off-by: Arnon Gilboa <agilboa@redhat.com>
So it looks like there is no good way of detecting that the current PVC has changed, which in turn leads us to doing what you did. Would it make sense to add a |
so why not add a mutating webhook to reset the Ready condition whenever source PVC is updated? |
I think a new status field is a better solution. If the resource never transitioned from not ready to ready, the transition time should not change. |
Signed-off-by: Arnon Gilboa <agilboa@redhat.com>
added |
/retest |
1 similar comment
/retest |
/lgtm |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: awels 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 |
@@ -443,6 +443,8 @@ type DataSourceSource struct { | |||
|
|||
// DataSourceStatus provides the most recently observed status of the DataSource | |||
type DataSourceStatus struct { | |||
// Source is the current source of the data referenced by the DataSource | |||
Source DataSourceSource `json:"source"` |
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.
Making this field required in the JSON, breaks API backward compatibility. Can you consider marking it as omitempty
?
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.
Sure, sorry I missed it.
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.
Signed-off-by: Arnon Gilboa agilboa@redhat.com
What this PR does / why we need it:
The
DataSourceReady
conditionLastTransitionTime
does not show a timestamp of the last source PVC update. It only shows a timestamp for its initial population, although the PVC name is updated.Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #
Special notes for your reviewer:
Release note: