-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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: Child apps should not affect parent app's health by default (#3781) #4448
fix: Child apps should not affect parent app's health by default (#3781) #4448
Conversation
Signed-off-by: Keith Chong <kykchong@redhat.com>
Codecov Report
@@ Coverage Diff @@
## master #4448 +/- ##
==========================================
- Coverage 41.29% 41.18% -0.11%
==========================================
Files 122 122
Lines 16584 16584
==========================================
- Hits 6848 6830 -18
- Misses 8750 8772 +22
+ Partials 986 982 -4
Continue to review full report at Codecov.
|
Would there be a way to change this default? the idea that there is one place to see the state of the whole cluster is something we rely on |
I propose to delete the built-in application health check instead of introducing special for child application health. @OmerKahani, in this case, you can add custom health check using lua script. Given that application CRD health assessment causes confusion for so may Argo CD users , this seems like a good compromise. What do you think? |
@alexmt, I presume you mean to essentially remove that if statement at line 51, because that specifically checks for the Application. If you remove that, then the App will revert back to missing or unknown, if the children are worse than healthy (missing or unknown), which then means the children will affect the parent's status. |
@alexmt , is this what you had in mind? Because you don't want any child application's unhealthy state (unknown, missing, and degraded) to affect the parent, then if at least one child is healthy, then the parent is healthy, like in the screenshot below? There is also the case where if all child apps have missing states, then it seems acceptable that the parent should have a missing state too. |
Thanks @alexmt for clarifying what you wanted. The intended behaviour is that the health status no longer appears on the child apps. |
Closing this PR because the fix is in the gitops-engine. See argoproj/gitops-engine#153 @OmerKahani, please add your comments to issue #3781, regarding @alexmt 's question. |
The refactor piece to pull in the newer version of the gitops-engine will be done in a different PR. |
Signed-off-by: Keith Chong kykchong@redhat.com
Checklist:
Fix is for #3781
For checklist item 3 above, from what I could tell, no UI or CLI changes are necessary.
See screenshots in the issue that show the before and after behaviour.