-
Notifications
You must be signed in to change notification settings - Fork 40k
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
vSphere Volume Plugin Implementation #24947
vSphere Volume Plugin Implementation #24947
Conversation
We found a Contributor License Agreement for you (the sender of this pull request) and all commit authors, but as best as we can tell these commits were authored by someone else. If that's the case, please add them to this pull request and have them confirm that they're okay with these commits being contributed to Google. If we're mistaken and you did author these commits, just reply here to confirm. |
Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test". This message may repeat a few times in short succession due to jenkinsci/ghprb-plugin#292. Sorry. Otherwise, if this message is too spammy, please complain to ixdy. |
2 similar comments
Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test". This message may repeat a few times in short succession due to jenkinsci/ghprb-plugin#292. Sorry. Otherwise, if this message is too spammy, please complain to ixdy. |
Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test". This message may repeat a few times in short succession due to jenkinsci/ghprb-plugin#292. Sorry. Otherwise, if this message is too spammy, please complain to ixdy. |
303aef9
to
159e624
Compare
// Unique id of the volume used to identify the vSphere volume | ||
VolumeID string `json:"volumeID"` | ||
// Path that identifies vSphere volume vmdk | ||
Path string `json:"volPath"` |
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.
let's use 'volumePath' for both the variable and json name for this attribute
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
e2a24d9
to
c6b3c58
Compare
c6b3c58
to
59701bc
Compare
uuidWithNoHypens := strings.Replace(b.Uuid, "-", "", -1) | ||
return uuidWithNoHypens | ||
} | ||
return "" |
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.
if disk UUID fails, we should return error with this function and caller (attach disk function) should fail and log error. Without this information, mount will also fail and would be harder to diagnose if we don't log/fail here.
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.
disk-uuid is only used for mounting, but attach disk also returns disk-id for detaching.
Returning an error in this case will disrupt the existing functionality. So I have added a check before mount which will fail if it doesn't get a uuid. I will add a log to make it clear.
59701bc
to
bfedc82
Compare
I have rebased and addressed the comments. @thockin please review this PR when you get a chance. Thanks |
Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test". This message may repeat a few times in short succession due to jenkinsci/ghprb-plugin#292. Sorry. Otherwise, if this message is too spammy, please complain to ixdy. |
@abithap in |
55e39de
to
07ccfb3
Compare
07ccfb3
to
ce17bca
Compare
ce17bca
to
1139765
Compare
GCE e2e build/test passed for commit 1139765. |
@rootfs LGTM? |
@thockin LGTM, but I don't have permission to tag it |
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
@k8s-bot test this issue: #IGNORE Tests have been pending for 24 hours |
GCE e2e build/test passed for commit 1139765. |
GCE e2e build/test passed for commit 1139765. |
@k8s-bot test this: github issue #IGNORE |
GCE e2e build/test passed for commit 1139765. |
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
GCE e2e build/test passed for commit 1139765. |
Automatic merge from submit-queue |
…e-nodes Bug 1731263: Balance preemption e2e nodes Origin-commit: 65834ad3365eeb49f013004248b2d93065861642
This PR implements vSphere Volume plugin support in Kubernetes (ref. issue #23932).