mirror of https://github.com/k3s-io/k3s
Show all the annotations in ingress rules
parent
f9bb978ad6
commit
a39ae8ee08
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue