-
Notifications
You must be signed in to change notification settings - Fork 1.7k
fix(find-configs): log skaffold.yaml parsing errors at debug #6748
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(find-configs): log skaffold.yaml parsing errors at debug #6748
Conversation
Codecov Report
@@ Coverage Diff @@
## main #6748 +/- ##
==========================================
- Coverage 70.48% 69.69% -0.79%
==========================================
Files 515 536 +21
Lines 23150 24311 +1161
==========================================
+ Hits 16317 16944 +627
- Misses 5776 6251 +475
- Partials 1057 1116 +59
Continue to review full report at Codecov.
|
@@ -88,7 +89,16 @@ func findConfigs(directory string) (map[string]string, error) { | |||
} | |||
|
|||
err := walk.From(directory).When(isYaml).Do(func(path string, _ walk.Dirent) error { | |||
if cfgs, err := schema.ParseConfig(path); err == nil && len(cfgs) > 0 { | |||
if ctx.Err() != nil { | |||
return ctx.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.
Can we return an actionable error here?
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.
I only added to fast-exit should the context be cancelled.
05f5788
to
47d7201
Compare
Log any errors in
skaffold find-configs
at debug level to enable diagnosing why askaffold.yaml
is not being recognized.cc: @peterlin741