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
chore: improve log in argo-cd/applicationset/generators/generator_spec_processor.go #10906
chore: improve log in argo-cd/applicationset/generators/generator_spec_processor.go #10906
Conversation
Signed-off-by: Karengineering <49111213+karengineering@users.noreply.github.com>
@@ -28,7 +28,7 @@ type TransformResult struct { | |||
func Transform(requestedGenerator argoprojiov1alpha1.ApplicationSetGenerator, allGenerators map[string]Generator, baseTemplate argoprojiov1alpha1.ApplicationSetTemplate, appSet *argoprojiov1alpha1.ApplicationSet, genParams map[string]interface{}) ([]TransformResult, error) { | |||
selector, err := metav1.LabelSelectorAsSelector(requestedGenerator.Selector) | |||
if err != nil { | |||
return nil, err | |||
return nil, fmt.Errorf("error transforming spec generator: %w", err) |
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.
@karengineering could you add a fmt
import to the top of this file?
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.
return nil, fmt.Errorf("error transforming spec generator: %w", err) | |
return nil, fmt.Errorf("error parsing label selector: %w", err) |
I think this is a bit more specific to the error being throw.
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.
updated @crenshaw-dev
Signed-off-by: Karengineering <49111213+karengineering@users.noreply.github.com>
…neering/argo-cd into wrap-error-generatorspec
Codecov ReportBase: 45.82% // Head: 45.62% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #10906 +/- ##
==========================================
- Coverage 45.82% 45.62% -0.21%
==========================================
Files 236 236
Lines 28698 28699 +1
==========================================
- Hits 13150 13093 -57
- Misses 13738 13805 +67
+ Partials 1810 1801 -9
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
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.
Thanks, @karengineering!
…c_processor.go (argoproj#10906) * wrap error object to include context for generator_spec_processor.go Signed-off-by: Karengineering <49111213+karengineering@users.noreply.github.com> * addressing PR comments Signed-off-by: Karengineering <49111213+karengineering@users.noreply.github.com> Signed-off-by: Karengineering <49111213+karengineering@users.noreply.github.com> Signed-off-by: Nicholas Johnson <nbjohnson10@gmail.com>
Signed-off-by: Karengineering 49111213+karengineering@users.noreply.github.com
Fix for #10592
Note on DCO:
If the DCO action in the integration test fails, one or more of your commits are not signed off. Please click on the Details link next to the DCO action for instructions on how to resolve this.
Checklist: