Commit c7787c0
committed
fix: auto-register nodes on ControllerPublishVolume
With attachRequired=true, kubelet calls ControllerPublishVolume before
the node plugin registers via NodeGetInfo. The controller was rejecting
these with NotFound, preventing any volume from mounting.
Instead of rejecting unknown nodes, register them on first publish.
The kubelet guarantees the node exists — it's the one making the call.1 parent d907342 commit c7787c0
2 files changed
Lines changed: 8 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
678 | 678 | | |
679 | 679 | | |
680 | 680 | | |
681 | | - | |
682 | | - | |
683 | | - | |
684 | | - | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
685 | 686 | | |
686 | 687 | | |
687 | 688 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
518 | 518 | | |
519 | 519 | | |
520 | 520 | | |
521 | | - | |
| 521 | + | |
522 | 522 | | |
523 | 523 | | |
524 | 524 | | |
| |||
528 | 528 | | |
529 | 529 | | |
530 | 530 | | |
531 | | - | |
532 | | - | |
533 | | - | |
| 531 | + | |
| 532 | + | |
534 | 533 | | |
535 | 534 | | |
536 | 535 | | |
| |||
0 commit comments