• mtanino's avatar
    WaitForAttach refactoring for iSCSI attacher/detacher · 5ff9dc0b
    mtanino authored
    This change is prerequisite for implementing iSCSI attacher
    and detacher.
    
    In order to use chap authentication at iSCSI plugin after
    implementing attacher and detacher, secret is needed at
    AttachDisk() which is called from WaitForAttach().
    To obtain secret, pod information is required, but
    WaitForAttach() doesn't pass pod information inside.
    
    This patch adds 'pod' as an argument of WaitForAttach()
    and adds changes to drivers who implements WaitForAttach().
    
    Fixes #48953
    5ff9dc0b
attacher_test.go 1.93 KB