Skip to content

Commit

Permalink
[installer, helm] Ensure jaeger is disabled by default
Browse files Browse the repository at this point in the history
  • Loading branch information
geropl committed Feb 14, 2022
1 parent fa15397 commit f3db54d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions chart/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,9 @@ env:
value: {{ $tracing.samplerType }}
- name: JAEGER_SAMPLER_PARAM
value: "{{ $tracing.samplerParam }}"
{{- else }}
- name: JAEGER_DISABLED
value: "true"
{{- end }}
{{- end -}}

Expand Down
1 change: 1 addition & 0 deletions installer/pkg/common/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ func DefaultEnv(cfg *config.Config) []corev1.EnvVar {

func TracingEnv(context *RenderContext) (res []corev1.EnvVar) {
if context.Config.Observability.Tracing == nil {
res = append(res, corev1.EnvVar{Name: "JAEGER_DISABLED", Value: "true"})
return
}

Expand Down

0 comments on commit f3db54d

Please sign in to comment.