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

Cherry-pick #18148 to 7.x: Build config files with Go text/template #18212

Merged
merged 3 commits into from
May 5, 2020

Commits on May 4, 2020

  1. Build config files with Go text/template (elastic#18148)

    Rather than relying on file concatenation followed by Go text/template we'll just
    use Go text/template. This makes is easier to customize a template without having
    to modify libbeat since you can just overwrite a template section (like inject your own
    processors section).
    
    This works by loading all of the templates from `libbeat/_meta/config/*.tmpl` followed
    by templates from `$mybeat/_meta/config/*.tmpl`. Files loaded last take precedence
    (it uses go text/template ParseGlob). Finally each template is created from
    `libbeat/_meta/config/default{., reference, docker}.yml.tmpl` (which can be changed
    if needed, see elastic/agent).
    
    (cherry picked from commit c81adcc)
    andrewkroh committed May 4, 2020
    Configuration menu
    Copy the full SHA
    5f6eef9 View commit details
    Browse the repository at this point in the history

Commits on May 5, 2020

  1. Configuration menu
    Copy the full SHA
    9818309 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4e97a4a View commit details
    Browse the repository at this point in the history