Commit 03c4233
pod-pool: skip if pod has no multus network (#554)
At some environments with a lot of pods the initial pod looping takes a
lot of time and 99% of pods has no multus network, this change move the
pod without multus networks check at the beginning of the loop since
that check is cheapr than checking opt out or opt in, so it renders the
loop faster.
Signed-off-by: Enrique Llorente <ellorent@redhat.com>
Co-authored-by: Enrique Llorente <ellorent@redhat.com>1 parent 47931a1 commit 03c4233
1 file changed
+7
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
231 | | - | |
232 | | - | |
| 231 | + | |
233 | 232 | | |
234 | 233 | | |
235 | | - | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
236 | 237 | | |
237 | 238 | | |
238 | 239 | | |
239 | | - | |
| 240 | + | |
| 241 | + | |
240 | 242 | | |
241 | 243 | | |
242 | 244 | | |
243 | | - | |
244 | | - | |
| 245 | + | |
245 | 246 | | |
246 | 247 | | |
247 | 248 | | |
| |||
0 commit comments