Make Ingress annotations available in template
This commit is contained in:
parent
6d0243a040
commit
edcc3dfc81
2 changed files with 8 additions and 5 deletions
|
|
@ -592,9 +592,10 @@ func isValidClientBodyBufferSize(input interface{}) bool {
|
|||
}
|
||||
|
||||
type ingressInformation struct {
|
||||
Namespace string
|
||||
Rule string
|
||||
Service string
|
||||
Namespace string
|
||||
Rule string
|
||||
Service string
|
||||
Annotations map[string]string
|
||||
}
|
||||
|
||||
func getIngressInformation(i, p interface{}) *ingressInformation {
|
||||
|
|
@ -616,8 +617,9 @@ func getIngressInformation(i, p interface{}) *ingressInformation {
|
|||
}
|
||||
|
||||
info := &ingressInformation{
|
||||
Namespace: ing.GetNamespace(),
|
||||
Rule: ing.GetName(),
|
||||
Namespace: ing.GetNamespace(),
|
||||
Rule: ing.GetName(),
|
||||
Annotations: ing.Annotations,
|
||||
}
|
||||
|
||||
if ing.Spec.Backend != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue