Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

Catch KeyErrors when trying to load manifest #47

Merged
merged 1 commit into from Oct 5, 2021

Conversation

TimJones
Copy link

If any YAML file is not a Kubernetes object manifest file, kubediff fails with an exception. This PR allows for processing to continue and the YAML file is simply passed over.

@bboreham
Copy link
Contributor

bboreham commented Apr 5, 2018

Thanks for the PR!

Wouldn't it be better to report that there is a yaml file which cannot be parsed? I imagine it depends on the situation, but I wouldn't want a mis-match to be silenced just because I had also introduced a formatting error.

@imjoseangel
Copy link
Contributor

@TimJones I think is a good one to implement. Could you please rebase and launch again? Thank you!

@TimJones
Copy link
Author

TimJones commented Oct 4, 2021

@imjoseangel Wow, blast from the past on this one! I've rebased to master now.

Copy link
Contributor

@imjoseangel imjoseangel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM @dholbach

@dholbach dholbach merged commit 5b99440 into weaveworks:master Oct 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants