-
Notifications
You must be signed in to change notification settings - Fork 6.4k
fix: updates to health status for Numaplane resources #20544
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: updates to health status for Numaplane resources #20544
Conversation
Signed-off-by: Julie Vogelman <julievogelman0@gmail.com>
❌ Preview Environment deleted from BunnyshellAvailable commands (reply to this comment):
|
Signed-off-by: Julie Vogelman <julievogelman0@gmail.com>
Signed-off-by: Julie Vogelman <julievogelman0@gmail.com>
Signed-off-by: Julie Vogelman <julievogelman0@gmail.com>
Signed-off-by: Julie Vogelman <julievogelman0@gmail.com>
Signed-off-by: Julie Vogelman <julievogelman0@gmail.com>
Signed-off-by: Julie Vogelman <julievogelman0@gmail.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #20544 +/- ##
=========================================
Coverage ? 55.11%
=========================================
Files ? 324
Lines ? 55112
Branches ? 0
=========================================
Hits ? 30375
Misses ? 22127
Partials ? 2610 ☔ View full report in Codecov by Sentry. |
resource_customizations/numaplane.numaproj.io/ISBServiceRollout/health.lua
Outdated
Show resolved
Hide resolved
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
@CodiumAI-Agent /review |
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
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.
One small refactor request for each, otherwise lgtm.
resource_customizations/numaplane.numaproj.io/ISBServiceRollout/health.lua
Outdated
Show resolved
Hide resolved
hs.status = "Progressing" | ||
hs.message = "Not yet reconciled" | ||
return hs |
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.
Move to top, un-nest non-nil block?
resource_customizations/numaplane.numaproj.io/NumaflowControllerRollout/health.lua
Outdated
Show resolved
Hide resolved
resource_customizations/numaplane.numaproj.io/PipelineRollout/health.lua
Outdated
Show resolved
Hide resolved
resource_customizations/numaplane.numaproj.io/ISBServiceRollout/health.lua
Outdated
Show resolved
Hide resolved
Signed-off-by: Julie Vogelman <julievogelman0@gmail.com>
Signed-off-by: Julie Vogelman <julievogelman0@gmail.com>
Signed-off-by: Julie Vogelman <julievogelman0@gmail.com>
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.
Moved nil check LGTM!
* fix: updates to health status for Numaplane resources Signed-off-by: Julie Vogelman <julievogelman0@gmail.com> * health checks Signed-off-by: Julie Vogelman <julievogelman0@gmail.com> * fix testdata path Signed-off-by: Julie Vogelman <julievogelman0@gmail.com> * additional health check tests Signed-off-by: Julie Vogelman <julievogelman0@gmail.com> * temporary file removal Signed-off-by: Julie Vogelman <julievogelman0@gmail.com> * add file renamed Signed-off-by: Julie Vogelman <julievogelman0@gmail.com> * fix: empty commit Signed-off-by: Julie Vogelman <julievogelman0@gmail.com> * move check for no status Signed-off-by: Julie Vogelman <julievogelman0@gmail.com> * fix: empty commit Signed-off-by: Julie Vogelman <julievogelman0@gmail.com> * fix: empty commit Signed-off-by: Julie Vogelman <julievogelman0@gmail.com> --------- Signed-off-by: Julie Vogelman <julievogelman0@gmail.com> Signed-off-by: Adrian Aneci <aneci@adobe.com>
For Numaplane Resources, makes the following changes to health status scripts:
includes more cases that would result in "Progressing"
refactors a bit such that if no cases match, then the result is "Unknown", not "Progressing"
removes the check for
observedGeneration
from the Conditions, as it is already in the overall Status, which tells us if the reconciliation is still "Progressing". What the Condition says is considered valid regardless of its ObservedGeneration.changes to Tests:
-- adds a directory in each
testdata
directory to identify which CRD it is - otherwise, it's hard to tell when a test fails which CRD the failure refers to since all that's output is the local path to the directory-- adds new tests for new cases of "Progressing"
-- updates Message associated with some of the existing tests (however, the "status" returned is the same)
Checklist: