Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion charts/linkerd-control-plane/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ controller:
# -- Enables trace collection and export in the proxy
enabled: false
collector:
# -- The collector endpoint to send traces to. Required if tracing is enabled
# -- The collector endpoint to send traces to. Required if tracing is
# enabled. If this is unset and `proxy.tracing.collector.endpoint` is set,
# that endpoint will be re-used here.
endpoint: ""
# -- enabling this omits the NET_ADMIN capability in the PSP
# and the proxy-init container when injecting the proxy;
Expand Down
9 changes: 6 additions & 3 deletions charts/partials/templates/_trace.tpl
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
{{ define "partials.linkerd.trace" -}}
{{ if ((.Values.controller.tracing).enabled) -}}
{{- if empty .Values.controller.tracing.collector.endpoint }}
{{- fail "controller.tracing.collector.endpoint must be set if control plane tracing is enabled" }}
{{- end }}
{{- if (.Values.controller.tracing.collector).endpoint }}
- -trace-collector={{.Values.controller.tracing.collector.endpoint}}
{{- else if ((.Values.proxy.tracing).collector).endpoint }}
- -trace-collector={{.Values.proxy.tracing.collector.endpoint}}
{{- else }}
{{- fail "controller.tracing.collector.endpoint or proxy.tracing.collector.endpoint must be set if control plane tracing is enabled" }}
{{- end }}
{{ end -}}
{{- end }}