Commit 76b3828
committed
Warn when protocolFilter matches no supported protocols
NewProtocolFilter logged the "nothing will be exported" warning only when the
configured protocolFilter list was literally empty. When the list contained
only invalid/unsupported protocol names (which the static agent config does
not validate, unlike the CRD enum), the effective filter denied all protocols
and dropped every flow, but the warning was not logged.
Check the number of validated protocols instead of the raw input length, so
the warning is emitted whenever the filter matches no supported protocols.
Fixes #8158
Signed-off-by: Anand-240 <srivastavaanandprakash16@gmail.com>1 parent 33e8881 commit 76b3828
2 files changed
Lines changed: 17 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
64 | | - | |
| 63 | + | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
57 | 64 | | |
58 | 65 | | |
59 | 66 | | |
| |||
100 | 107 | | |
101 | 108 | | |
102 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
103 | 118 | | |
104 | 119 | | |
105 | 120 | | |
| |||
0 commit comments