Commit 6baf6bf
committed
k8s: add
When this function encounters a matching pod, it attempts to retrieve that pod's
init_container_statuses. The problem seems to be that this metadata is not available (perhaps
because the pod is not read?). This means that the metadata is set to None which is not iterable and
therefore causes a crash.
This fix allows the program to proceed to the next element in the for loop stream if the init_container_statuses metadata
is not ready (aka is None).continue to wait_for_init
1 parent 681031b commit 6baf6bf
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
| 304 | + | |
| 305 | + | |
304 | 306 | | |
305 | 307 | | |
306 | 308 | | |
| |||
0 commit comments