Skip to content
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

Fixed CanSupport func across all volumes (for PV) #8732

Merged
merged 1 commit into from
May 27, 2015

Conversation

markturansky
Copy link
Contributor

CanSupport for PV was spotty across volumes.

NFS is covered in #8688.
ISCSI is covered #8133.

Added a test for ISCSI in this PR, though, because #8133 is already flagged ready to go.

@thockin

@@ -40,6 +40,9 @@ func TestCanSupport(t *testing.T) {
if !plug.CanSupport(&volume.Spec{Name: "foo", VolumeSource: api.VolumeSource{AWSElasticBlockStore: &api.AWSElasticBlockStoreVolumeSource{}}}) {
t.Errorf("Expected true")
}
if !plug.CanSupport(&volume.Spec{Name: "foo", PersistentVolumeSource: api.PersistentVolumeSource{AWSElasticBlockStore: &api.AWSElasticBlockStoreVolumeSource{}}}) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is kind of a mouthful... maybe consider defining & checking on separate lines, for readability?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

eh... it looks like this file is already this way. I guess it's better to stay consistent.

@thockin thockin added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 24, 2015
@thockin
Copy link
Member

thockin commented May 24, 2015

LGTM

thockin added a commit that referenced this pull request May 27, 2015
Fixed CanSupport func across all volumes (for PV)
@thockin thockin merged commit 0bbba1c into kubernetes:master May 27, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm "Looks good to me", indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants