-
Notifications
You must be signed in to change notification settings - Fork 215
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
skip incomplete or broken YAML - warn user #678
Conversation
Co-authored-by: Robert Brennan <accounts@rbren.io>
Hey! Can we merge this PR? I think it's a pretty interesing feature or provide some mecanism to ignore some paths |
Fairwinds Insights CI Report✅ No new Action Items detected! |
pkg/kube/resources.go
Outdated
logrus.Errorf("Error parsing YAML: (%v)", err) | ||
return err | ||
} | ||
return resources.addResourceFromString(spec) |
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.
this will only add Resource from the first spec and ignore others.
@intrand mind signing the CLA? |
signed. looks like there's still a test that's failing @makoscafee |
This PR:
visitFile()
(WalkFunc forfilepath.Walk()
) to log parsing failures and continue (eg, patch files; fixes Polaris fails to parse/ignore Kustomization yaml JSONPatch files #667)