elastic / elastic/package-spec

Prevent clashes between template fields and stream/input fields

Open
#85 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
20
Forks
93
Avg merge
15h 10m
Merged PRs (30d)
12

Description

Consider the following:

`manifest.yml`
```yml
policy_templates:
- name: apm-server
inputs:
- type: apm
vars:
- name: name
default: my-default-name
template_path: ./agent/input/template.yml.hbs
```

`agent/input/template.yml.hbs`
```yml
name: {{name}}
```

There will be a clash between the `name` field in the template (package-defined) and the `name` field in the input (spec-defined)

Same thing occurs for data streams templates. This scenario should be detected and avoided.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.