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

Inject mounter into volume plugins #7702

Merged
merged 1 commit into from May 4, 2015

Conversation

pmorie
Copy link
Member

@pmorie pmorie commented May 4, 2015

Split out from #6936; inject mounter into volume plugins

@googlebot
Copy link

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project, in which case you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed, please reply here (e.g. I signed it!) and we'll verify. Thanks.


  • If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address. Check your existing CLA data and verify that your email is set on your git commits.
  • If you signed the CLA as a corporation, please let us know the company's name.

@pmorie
Copy link
Member Author

pmorie commented May 4, 2015

@vmarmol PTAL

@@ -238,6 +230,7 @@ func (ed *emptyDir) TearDownAt(dir string) error {
if err != nil {
return err
}
glog.Infof("TearDownAt: %v medium: %v isMnt: %v", dir, medium, isMnt)
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove?

@vmarmol
Copy link
Contributor

vmarmol commented May 4, 2015

LGTM, just the one nit.

@pmorie
Copy link
Member Author

pmorie commented May 4, 2015

@vmarmol Fixed

@vmarmol
Copy link
Contributor

vmarmol commented May 4, 2015

LGTM

vmarmol added a commit that referenced this pull request May 4, 2015
Inject mounter into volume plugins
@vmarmol vmarmol merged commit b52f865 into kubernetes:master May 4, 2015
@vmarmol vmarmol self-assigned this May 4, 2015
@@ -68,9 +68,9 @@ func (plugin *awsElasticBlockStorePlugin) GetAccessModes() []api.AccessModeType
}
}

func (plugin *awsElasticBlockStorePlugin) NewBuilder(spec *volume.Spec, podRef *api.ObjectReference, _ volume.VolumeOptions) (volume.Builder, error) {
func (plugin *awsElasticBlockStorePlugin) NewBuilder(spec *volume.Spec, podRef *api.ObjectReference, _ volume.VolumeOptions, mounter mount.Interface) (volume.Builder, error) {
Copy link
Member

Choose a reason for hiding this comment

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

At this point there is almost no reason for newBuilderInternal() in most volumes. We should flatten those and tets through NewBuilder.

Copy link
Member Author

Choose a reason for hiding this comment

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

Good point

On Tue, May 5, 2015 at 3:59 PM, Tim Hockin notifications@github.com wrote:

In pkg/volume/aws_ebs/aws_ebs.go
#7702 (comment)
:

@@ -68,9 +68,9 @@ func (plugin *awsElasticBlockStorePlugin) GetAccessModes() []api.AccessModeType
}
}

-func (plugin *awsElasticBlockStorePlugin) NewBuilder(spec *volume.Spec, podRef *api.ObjectReference, _ volume.VolumeOptions) (volume.Builder, error) {
+func (plugin *awsElasticBlockStorePlugin) NewBuilder(spec *volume.Spec, podRef *api.ObjectReference, _ volume.VolumeOptions, mounter mount.Interface) (volume.Builder, error) {

At this point there is almost no reason for newBuilderInternal() in most
volumes. We should flatten those and tets through NewBuilder.


Reply to this email directly or view it on GitHub
https://github.com/GoogleCloudPlatform/kubernetes/pull/7702/files#r29706457
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants