New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Block volumes Support: iSCSI plugin update #54752
Block volumes Support: iSCSI plugin update #54752
Conversation
/retest |
2 similar comments
/retest |
/retest |
b7f419f
to
5dd3639
Compare
/retest |
2 similar comments
/retest |
/retest |
0787946
to
3676f66
Compare
@mtanino is it ready for review? |
@rootfs yes, ready to review. thanks. |
pkg/volume/iscsi/attacher.go
Outdated
func (detacher *iscsiDetacher) volumeSpecToUnmounter(mounter mount.Interface) *iscsiDiskUnmounter { | ||
exec := detacher.host.GetExec(iscsiPluginName) | ||
func VolumeSpecToUnmounter(mounter mount.Interface, host volume.VolumeHost) *iscsiDiskUnmounter { | ||
exec := host.GetExec(iscsiPluginName) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is already done above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Which line?
76ba461
to
d715960
Compare
@rootfs @jsafrane This PR adds
|
d997124
to
35baf9c
Compare
/retest |
@mtanino: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
/retest |
35baf9c
to
86d27cd
Compare
pkg/volume/iscsi/iscsi.go
Outdated
iface, initiatorNamePtr, err := getISCSIInitiatorInfo(spec) | ||
if err != nil { | ||
return nil, err | ||
func (plugin *iscsiPlugin) NewBlockVolumeMapper(spec *volume.Spec, pod *v1.Pod, _ volume.VolumeOptions) (volume.BlockVolumeMapper, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: GoDoc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
pkg/volume/iscsi/iscsi.go
Outdated
@@ -212,25 +176,87 @@ func (plugin *iscsiPlugin) newUnmounterInternal(volName string, podUID types.UID | |||
}, nil | |||
} | |||
|
|||
func (plugin *iscsiPlugin) NewBlockVolumeUnmapper(volName string, podUID types.UID) (volume.BlockVolumeUnmapper, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GoDoc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
86d27cd
to
3e066d6
Compare
/approve |
This patch adds block volume support to iSCSI volume plugin.
3e066d6
to
96509d4
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mtanino, rootfs Associated issue: #805 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
Automatic merge from submit-queue (batch tested with PRs 54230, 58100, 57861, 54752). If you want to cherry-pick this change to another branch, please follow the instructions here. |
What this PR does / why we need it:
Add interface changes to iSCSI volume plugin to enable block volumes support feature.
Which issue this PR fixes:
Based on this proposal (kubernetes/community#805 & kubernetes/community#1265) and this feature issue: kubernetes/enhancements#351
Special notes for your reviewer:
This PR temporarily includes following changes except iSCSI plugin change for reviewing purpose.
These changes will be removed from the PR once they are merged.
There are another PRs related to this functionality.
(#50457) API Change
(#53385) VolumeMode PV-PVC Binding change
(#51494) Container runtime interface change, volumemanager changes, operationexecutor changes
(#55112) Block volume: Command line printer update
Plugins
(#51493) Block volumes Support: FC plugin update
(#54752) Block volumes Support: iSCSI plugin update
Release note: