Skip to content

Skip yaml blocks without any metadata #127

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

Merged
merged 1 commit into from
Mar 19, 2019
Merged

Conversation

travisgroth
Copy link
Contributor

@travisgroth travisgroth commented Mar 11, 2019

Fixes the variant of #48 reported by bfin, jcalahan and adidenko.

If you have templates that wind up containing only comments, they should be skipped. This change checks to see if the metadata is completely empty to detect effectively blank yaml content.

To do this without an extraneous comparison variable, I had to unshadow the metadata type. This resulted in a few extra cosmetic changes in the diff.

@travisgroth
Copy link
Contributor Author

@databus23 @mumoshu would love to get this merged in if you don't have any objections. While I think the error is harmless, it would be nice to get rid of the confusing output. If you want any changes before accepting, let me know.

Copy link
Collaborator

@mumoshu mumoshu left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks a lot for your patience, and contribution!

@ekeih
Copy link

ekeih commented May 13, 2019

Hey @mumoshu, first of all I want to say thanks for this super helpful helm plugin!
Is there any chance you could tag a new release that includes this fix? It would help us a lot.
Thanks in advance
Max

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants