Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-71552

Backslashes (\) in volume's mount path are always replaced with forward slashes (/)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • kubernetes-plugin
    • None
    • kubernets: 3952.v88e3b_0cf300b_

      PodTemplateBuilder.normalizePath() will always overwrite backslashes ({}) with forward slashes (/). This can be an issue when dealing with Windows containers where some paths have to have backslashes in order to work. An example of such would be named pipes, with those it's possible to mount them into containers with the mount path \\.\pipe\<pipe_name>.

      However, this is not possible with the programmatic way of defining your pod using the podTemplate() builder because of the method mentioned above.

       

      So is that backslash replacement really necessary? Or could their be some option to disable it or specify a "literal" mount path?

            Unassigned Unassigned
            krische Brian Krische
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: