-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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 ReportAttention: 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>
Checklist: