-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Bug 1807714: oc set volume use 'filepath' not 'path' to manipulate filepaths #25385
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
Conversation
|
@sallyom: This pull request references Bugzilla bug 1807714, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker. 3 validation(s) were run on this bug
DetailsIn response to this:
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. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: sallyom The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
/retest |
|
/assign @soltysh |
|
@sallyom: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions 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. |
| for _, c := range containers { | ||
| for _, m := range c.VolumeMounts { | ||
| if path.Clean(m.MountPath) == path.Clean(opts.MountPath) && m.Name != o.Name { | ||
| if filepath.Clean(m.MountPath) == filepath.Clean(opts.MountPath) && m.Name != o.Name { |
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.
Hmm.... that's not quite correct, b/c in containers we always want to use forward slashes, that's why path was being used here. Have you got a chance to verify this on a windows machine?
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.
hm, i see. I'll set up a development Win machine, I started doing that but then this looked straight forward - i was wrong on that, though, I'll set it up and will report back.
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.
@soltysh I was able to test this in Windows :) while the path->path/filepath change results in no undesired prefix, it does end up with backwards rather than forward slash in the mountPath. See here: https://bugzilla.redhat.com/show_bug.cgi?id=1807714#c10
|
surprise - when I tried to reproduce the bug in a 3.11 cluster with oc 3.11, I could not reproduce. I've updated the bug and am closing this PR. |
|
@sallyom: This pull request references Bugzilla bug 1807714. The bug has been updated to no longer refer to the pull request using the external bug tracker. DetailsIn response to this:
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. |
from go docs: