Merge pull request #4732 from willthames/enable-opentracing-annotation

Allow enabling/disabling opentracing for ingresses
This commit is contained in:
Kubernetes Prow Robot 2019-11-26 17:31:21 -08:00 committed by GitHub
commit b286c2a336
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 218 additions and 0 deletions

View file

@ -966,8 +966,17 @@ stream {
set $location_path {{ $location.Path | escapeLiteralDollar | quote }};
{{ if $all.Cfg.EnableOpentracing }}
{{ if and $location.Opentracing.Set (not $location.Opentracing.Enabled) }}
opentracing off;
{{ else }}
{{ opentracingPropagateContext $location }};
{{ end }}
{{ else }}
{{ if and $location.Opentracing.Set $location.Opentracing.Enabled }}
opentracing on;
{{ opentracingPropagateContext $location }};
{{ end }}
{{ end }}
{{ if $location.Mirror.URI }}
mirror {{ $location.Mirror.URI }};