-
Notifications
You must be signed in to change notification settings - Fork 6.3k
fix(controller): only update lastTransitionTime when needed #23018
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(controller): only update lastTransitionTime when needed #23018
Conversation
❌ Preview Environment deleted from BunnyshellAvailable commands (reply to this comment):
|
6d652f8
to
e4701b3
Compare
e4701b3
to
3494413
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #23018 +/- ##
==========================================
- Coverage 60.00% 60.00% -0.01%
==========================================
Files 343 343
Lines 57848 57847 -1
==========================================
- Hits 34714 34710 -4
- Misses 20358 20362 +4
+ Partials 2776 2775 -1 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> fix tests Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> fix tests Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> fix tests Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> fix tests, lint Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> lint Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
3494413
to
8233906
Compare
// Message is a human-readable informational message describing the health status | ||
Message string `json:"message,omitempty" protobuf:"bytes,2,opt,name=message"` |
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.
Add back the field as deprecated just so the protobuf byte is reserved.
@@ -1787,15 +1787,20 @@ type SyncStatus struct { | |||
} | |||
|
|||
// HealthStatus contains information about the currently observed health state of an application or resource |
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.
super nit
// HealthStatus contains information about the currently observed health state of an application or resource | |
// AppHealthStatus contains information about the currently observed health state of an application or resource |
From my understanding, you are breaking |
@rumstead sharing a single field just made the code very confusing. The actual bug is that we update I'm going to update the PR to make the changes minimal and backwards-compatible. Then I'm going to make an even more minimal 2.14 cherry-pick to just solve the bug with no other changes. |
f8dcda3
to
39968f9
Compare
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> comment Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> simplify, better test Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> e2e test Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> remove unnecessary test - covered elsewhere' Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
39968f9
to
d190760
Compare
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. From my understanding, the change to the protobuf should be backward compatible too.
…#23018) Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> Signed-off-by: Lyheng <lyhengtep@gmail.com>
…#23018) Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
…#23018) Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
…#23018) Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> Signed-off-by: dsuhinin <suhinin.dmitriy@gmail.com>
…#23018) Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> Signed-off-by: dsuhinin <suhinin.dmitriy@gmail.com>
…#23018) Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> Signed-off-by: dsuhinin <suhinin.dmitriy@gmail.com>
Sorry to be commenting on something closed since May, but I'm trying to understand... since this basically undoes #18660 and #21120 is not yet merged, doesn't the deprecation of |
@krancour I don't think this change reverts #18660, I think it brings the implementation in line with the intent of that PR. This PR deprecates two Application CR status fields, but neither of them is a deprecation of any existing behavior. The app health and resource health status fields previously shared a single struct. That struct contained a We never had a reliable indicator of how fresh observations about app health are, unless by mistake as part of a buggy implementation of #18660. |
@crenshaw-dev thanks. I follow. "Reliable indicator of health freshness" (paraphrasing) was a very poor word choice on my part. I agree Unreliable as it was, Thanks for the response. Much appreciated. |
You bet! Thanks for following up for clarification, I didn't make very clear on this PR what it was doing. I wouldn't think of And just to be extra clear, this PR didn't deprecate anything meaningful. It deprecated a couple struct fields that were never used in the first place. The only change in behavior in this PR was to limit |
Checklist: