Commit ca0d9e2
BUG/MINOR: fixes podprefix test in maxconn calculation after names changed with Helm naming adoption.
With previous naming of kubernetes resources, no collision could happen with :
if !strings.HasPrefix(meta.Name, podPrefix) {...}
But after Helm naming adoption, we have default backend pod named "haproxy-kubernetes-ingress-default-backend-xxxxxxxxx-xxxxx" and ingress controller named "haproxy-kubernetes-ingress-xxxxxxxxxx-xxxxx" which results in podprefix = haproxy-kubernetes-ingress and both pods passing the test.1 parent 2e580d0 commit ca0d9e2
1 file changed
+2
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
| |||
749 | 748 | | |
750 | 749 | | |
751 | 750 | | |
752 | | - | |
| 751 | + | |
753 | 752 | | |
754 | 753 | | |
755 | 754 | | |
756 | 755 | | |
757 | 756 | | |
758 | 757 | | |
759 | 758 | | |
760 | | - | |
| 759 | + | |
761 | 760 | | |
762 | 761 | | |
763 | 762 | | |
| |||
0 commit comments