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

Switch to pre-0.9 behaviour for handling volumes #5572

Merged
merged 1 commit into from
Apr 18, 2019

Commits on Apr 18, 2019

  1. Switch to pre-0.9 behaviour for handling volumes

    In Nomad 0.9, we made volume driver handling the same for `""`, and
    `"local"` volumes. Prior to Nomad 0.9 however these had slightly different
    behaviour for relative paths and named volumes.
    
    Prior to 0.9 the empty string would expand relative paths within the task
    dir, and `"local"` volumes that are not absolute paths would be treated
    as docker named volumes.
    
    This commit reverts to the previous behaviour as follows:
    
    | Nomad Version | Driver  |   Volume Spec    | Behaviour                 |
    |-------------------------------------------------------------------------
    | all           | ""      | testing:/testing | allocdir/testing          |
    | 0.8.7         | "local" | testing:/testing | "testing" as named volume |
    | 0.9.0         | "local" | testing:/testing | allocdir/testing          |
    | 0.9.1         | "local" | testing:/testing | "testing" as named volume |
    endocrimes committed Apr 18, 2019
    Configuration menu
    Copy the full SHA
    ccce364 View commit details
    Browse the repository at this point in the history