Skip to content
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

Using strict parsing for yaml configs #1433

Merged
merged 1 commit into from
Jan 6, 2020

Conversation

zendern
Copy link
Contributor

@zendern zendern commented Dec 17, 2019

What this PR does / why we need it:
Helps developers find mistakes with config sooner.

Which issue(s) this PR fixes:
Fixes #1289

Special notes for your reviewer:
I didn't add docs but could. Wasn't sure if it really mattered to call out that if you mistype or enter a completely invalid config into the yaml file that you will be presented with an error. This change since it was at the YAML config level goes for both loki and promtail.

Original bug report was just promtail but should be no reason we can't have this feature for both.

Checklist

  • Documentation added
  • Tests updated

@claassistantio
Copy link

claassistantio commented Dec 17, 2019

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@pstibrany pstibrany left a comment

Choose a reason for hiding this comment

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

This would have saved me so much time in the past. Thank you!

@cyriltovena cyriltovena merged commit 282d77b into grafana:master Jan 6, 2020
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.

Strict yaml parsing for config
4 participants