-
Notifications
You must be signed in to change notification settings - Fork 14
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
Improve Conditions Returned By ApplicationGroup #313
Conversation
3676dab
to
166aac4
Compare
@jonathan-innis Thanks for adding
|
Done @mahalrs 😄 Thanks for the reminder |
25c2e7c
to
ec291c8
Compare
e073768
to
0f969e3
Compare
0f969e3
to
9f69894
Compare
83374ea
to
b905adb
Compare
b905adb
to
44bbec1
Compare
Codecov Report
@@ Coverage Diff @@
## main #313 +/- ##
==========================================
- Coverage 24.04% 22.09% -1.96%
==========================================
Files 12 14 +2
Lines 786 878 +92
==========================================
+ Hits 189 194 +5
- Misses 591 678 +87
Partials 6 6
Continue to review full report at Codecov.
|
05aee4f
to
91c3924
Compare
pkg/helpers/reconcile.go
Outdated
@@ -220,7 +217,7 @@ func (helper *ReconcileHelper) reconcileApplications() error { | |||
|
|||
if err := scc.Validate(); err != nil { | |||
ll.Error(err, "failed to validate application subchart for staging registry") | |||
err = fmt.Errorf("failed to validate application subchart for staging registry : %w", err) | |||
err = fmt.Errorf("failed to validate application subchart for staging registry") |
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.
Why are we no longer wrapping the error returned by Validate? I see it in more lines below.
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.
Looks good to me 🚀
A qn regarding the error changes though - why are we not wrapping them?
Let me actually change this, this is a good point. I want the log error and the user-returned condition error to be different though. Log error should be wrapped, user-friendly error shouldn't be |
@nitishm Added wrapping back, removed duplicate log lines though |
835bac5
to
ec4267f
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.
🚀 🚀
Edit: @nitishm - Closes #328
WorkflowFailed
RollbackWorkflowSucceeded
condition