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

Add GetDeviceNameFromMount in mount_unsupported.go #30724

Merged
merged 1 commit into from
Aug 17, 2016

Conversation

jingxu97
Copy link
Contributor

@jingxu97 jingxu97 commented Aug 16, 2016

Add GetDeviceNameFromMount in mount_unsupported.go


This change is Reviewable

Add GetDeviceNameFromMount in mount_unsupported.go
@k8s-github-robot k8s-github-robot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. release-note-label-needed labels Aug 16, 2016
@saad-ali
Copy link
Member

LGTM

@saad-ali saad-ali added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 16, 2016
@saad-ali saad-ali added this to the v1.3 milestone Aug 16, 2016
@saad-ali saad-ali added cherrypick-candidate release-note-none Denotes a PR that doesn't merit a release note. and removed release-note-label-needed labels Aug 16, 2016
@saad-ali
Copy link
Member

Can you add a compile-time check (in follow up PR) to prevent this from happening again, something like:

// Compile-time check to ensure Mounter implements the mount interface
var _ Interface = &Mounter{}

@k8s-bot
Copy link

k8s-bot commented Aug 17, 2016

GCE e2e build/test passed for commit 89de4f2.

@saad-ali
Copy link
Member

@k8s-bot Node e2e test this issue: #30719

@k8s-github-robot
Copy link

@k8s-bot test this [submit-queue is verifying that this PR is safe to merge]

@k8s-bot
Copy link

k8s-bot commented Aug 17, 2016

GCE e2e build/test passed for commit 89de4f2.

@k8s-github-robot
Copy link

Automatic merge from submit-queue

@saad-ali
Copy link
Member

xref #30795 and PR #30802

k8s-github-robot pushed a commit that referenced this pull request Aug 18, 2016
#30724-upstream-release-1.3

Automatic merge from submit-queue

Automated cherry pick of #27970 #30724

Cherry pick of #27970 #30724 on release-1.3.
@fabioy fabioy added cherry-pick-approved Indicates a cherry-pick PR into a release branch has been approved by the release branch manager. and removed cherrypick-candidate labels Aug 18, 2016
@ixdy
Copy link
Member

ixdy commented Aug 19, 2016

We have a different but similar compilation issue now:

+++ [0818 17:34:44] windows/amd64: go build started
# k8s.io/kubernetes/pkg/util/mount
pkg/util/mount/mount_unsupported.go:51: (*Mounter).GetDeviceNameFromMount redeclared in this block
        previous declaration at pkg/util/mount/mount_unsupported.go:39

@ixdy
Copy link
Member

ixdy commented Aug 19, 2016

oh, this collided with #30666. I'll send out a fixup PR. @feiskyer

k8s-github-robot pushed a commit that referenced this pull request Aug 23, 2016
Automatic merge from submit-queue

ensure pkg/util/mount compiles & crosses

<!--  Thanks for sending a pull request!  Here are some tips for you:
1. If this is your first time, read our contributor guidelines https://github.com/kubernetes/kubernetes/blob/master/CONTRIBUTING.md and developer guide https://github.com/kubernetes/kubernetes/blob/master/docs/devel/development.md
2. If you want *faster* PR reviews, read how: https://github.com/kubernetes/kubernetes/blob/master/docs/devel/faster_reviews.md
3. Follow the instructions for writing a release note: https://github.com/kubernetes/kubernetes/blob/master/docs/devel/pull-requests.md#release-notes
-->

**What this PR does / why we need it**:
osx doesn't build
**Which issue this PR fixes** *(optional, in `fixes #<issue number>(, #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #30795

**Special notes for your reviewer**:

**Release note**:
```release-note-none
```

 - move compile time check from linux code to generic code
 - remove duplication of #30724 and #30666 to resolve #30795
shyamjvs pushed a commit to shyamjvs/kubernetes that referenced this pull request Dec 1, 2016
…ck-of-#27970-kubernetes#30724-upstream-release-1.3

Automatic merge from submit-queue

Automated cherry pick of kubernetes#27970 kubernetes#30724

Cherry pick of kubernetes#27970 kubernetes#30724 on release-1.3.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-pick-approved Indicates a cherry-pick PR into a release branch has been approved by the release branch manager. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesn't merit a release note. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants