Show all the annotations in ingress rules

pull/6/head
Manuel de Brito Fontes 2018-01-19 14:13:17 -03:00
parent f9bb978ad6
commit a39ae8ee08
1 changed files with 1 additions and 6 deletions

View File

@ -2074,12 +2074,7 @@ func describeIngressTLS(w PrefixWriter, ingTLS []extensions.IngressTLS) {
func describeIngressAnnotations(w PrefixWriter, annotations map[string]string) { func describeIngressAnnotations(w PrefixWriter, annotations map[string]string) {
w.Write(LEVEL_0, "Annotations:\n") w.Write(LEVEL_0, "Annotations:\n")
for k, v := range annotations { for k, v := range annotations {
if !strings.HasPrefix(k, "ingress") { w.Write(LEVEL_1, "%v:\t%s\n", k, v)
continue
}
parts := strings.Split(k, "/")
name := parts[len(parts)-1]
w.Write(LEVEL_1, "%v:\t%s\n", name, v)
} }
return return
} }