Commit 4776e71
committed
fix: make findOwners handle custom types better
This change stops the controller from bubbling up an error when it
encounters a Kind that is has not registered in its scheme or an object
that it does not have access to. In these situations, the controller
will now stop climbing the ownership tree instead.
The new behaviour is desireable when an unsupported type (such as one
from a company's in-house operator) is marked as the controller of the
resource that controls the pods themselves.1 parent ea796df commit 4776e71
1 file changed
+10
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
311 | 312 | | |
312 | 313 | | |
313 | 314 | | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
314 | 320 | | |
315 | 321 | | |
316 | 322 | | |
317 | 323 | | |
318 | | - | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
319 | 328 | | |
320 | 329 | | |
321 | 330 | | |
| |||
0 commit comments