Make Ingress annotations available in template
This commit is contained in:
parent
6d0243a040
commit
edcc3dfc81
2 changed files with 8 additions and 5 deletions
|
|
@ -668,6 +668,7 @@ stream {
|
|||
set $proxy_upstream_name "{{ buildUpstreamName $server.Hostname $all.Backends $location }}";
|
||||
|
||||
{{ $ing := (getIngressInformation $location.Ingress $path) }}
|
||||
{{/* $ing.Metadata contains the Ingress metadata */}}
|
||||
set $namespace "{{ $ing.Namespace }}";
|
||||
set $ingress_name "{{ $ing.Rule }}";
|
||||
set $service_name "{{ $ing.Service }}";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue