Commit 273b091
committed
[prometheus-fastly-exporter] add backward compatibility for legacy ingress values
Support both legacy format (hosts as strings + top-level path) and
modern format (hosts as objects with host/paths/pathType). Uses kindIs
to detect string hosts and falls back to ingress.path for the path.
Signed-off-by: Denis Arslanbekov <denis@arslanbekov.com>1 parent bdce8df commit 273b091
File tree
2 files changed
+18
-0
lines changed- charts/prometheus-fastly-exporter
- templates
2 files changed
+18
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
30 | 42 | | |
31 | 43 | | |
32 | 44 | | |
| |||
40 | 52 | | |
41 | 53 | | |
42 | 54 | | |
| 55 | + | |
43 | 56 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
55 | 60 | | |
56 | 61 | | |
57 | 62 | | |
| |||
0 commit comments