Skip to content

Commit 9c6b228

Browse files
[apmpackage] fix booleans for package upgrade (#7004)
* [apmpackage] fix booleans for package upgrade fixes elastic/kibana#122192
1 parent cf9b7dc commit 9c6b228

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

apmpackage/apm/agent/input/template.yml.hbs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ apm-server:
3131
enabled: {{java_attacher_enabled}}
3232
discovery-rules: {{java_attacher_discovery_rules}}
3333
download-agent-version: {{java_attacher_agent_version}}
34-
{{#if enable_rum}}
3534
rum:
3635
allow_headers:
3736
{{#each rum_allow_headers}}
@@ -45,9 +44,7 @@ apm-server:
4544
exclude_from_grouping: {{rum_exclude_from_grouping}}
4645
library_pattern: {{rum_library_pattern}}
4746
response_headers: {{rum_response_headers}}
48-
{{/if}}
4947
shutdown_timeout: {{shutdown_timeout}}
50-
{{#if tls_enabled}}
5148
ssl:
5249
enabled: {{tls_enabled}}
5350
certificate: {{tls_certificate}}
@@ -65,14 +62,11 @@ apm-server:
6562
{{#each tls_curve_types}}
6663
- {{this}}
6764
{{/each}}
68-
{{/if}}
6965
write_timeout: {{write_timeout}}
70-
{{#if tail_sampling_policies}}
7166
sampling:
7267
tail:
73-
enabled: true
68+
enabled: {{#if tail_sampling_policies}}true{{else}}false{{/if}}
7469
{{#if tail_sampling_interval}}
7570
interval: {{tail_sampling_interval}}
7671
{{/if}}
7772
policies: {{tail_sampling_policies}}
78-
{{/if}}

0 commit comments

Comments
 (0)