-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Omit empty config fields and show regex upon re-marshalling to elide secrets #864
Conversation
config/notifiers.go
Outdated
|
||
// Catches all undefined fields and must be empty after parsing. | ||
XXX map[string]interface{} `yaml:",inline" json:"-"` | ||
XXX map[string]interface{} `yaml:",inline" ,omitemptyjson:"-"` |
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.
Is this a typo? I can't find omitemptyjson
in the specs.
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.
Yep that's a typo!
@grobie can you give this a try? |
Can we write a test instead? |
Not sure about default values yet but this should fix and test for the issue regarding regexps printing as |
Any thoughts? |
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.
LGTM, but there is what appears to be some sort of break on the status page that is unrelated.
Disregard the comment about breakage, it was because your version of alertmanager was missing updates from mainline |
Fixes #862