This project is mirrored from https://gitee.com/mirrors/nomad.git. Pull mirroring failed .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer.
  1. 20 Nov, 2020 2 commits
  2. 19 Nov, 2020 8 commits
  3. 18 Nov, 2020 9 commits
    • Michael Schurter's avatar
      Merge pull request #9383 from hashicorp/b-template-escape · 292e7a4c
      Michael Schurter authored
      client: fix interpolation in template source
      292e7a4c
    • Michael Schurter's avatar
      e2e: test template path interpolation · 252ac1e1
      Michael Schurter authored
      252ac1e1
    • Michael Schurter's avatar
      5b83ca0b
    • Michael Schurter's avatar
      Merge pull request #9384 from hashicorp/docs-artifact-bug · 5b72385f
      Michael Schurter authored
      docs: document artifact bug #6929
      5b72385f
    • Tim Gross's avatar
      CSI: fix struct copying errors (#9239) · 71a378e6
      Tim Gross authored
      The CSIVolume struct "denormalizes" allocations when it's first queried from
      the state store. The CSIVolumeByID method on the state store copies the volume
      before denormalizing so that we don't end up with unexpected changes. The
      copying has some subtle bugs that meant that Allocations (as well as
      Topologies and MountOptions) were not getting copied when expected.
      
      Also, ensure we never write allocations attached to volumes to the state store
      during claims.
      71a378e6
    • Chris Baker's avatar
      Merge pull request #9387 from hashicorp/docs-9386-alloc-job-api · b5d2a4b0
      Chris Baker authored
      document `api.Allocation.Job` field
      b5d2a4b0
    • Chris Baker's avatar
    • Michael Schurter's avatar
      client: fix interpolation in template source · cd7226d3
      Michael Schurter authored
      While Nomad v0.12.8 fixed `NOMAD_{ALLOC,TASK,SECRETS}_DIR` use in
      `template.destination`, interpolating these variables in
      `template.source` caused a path escape error.
      
      **Why not apply the destination fix to source?**
      
      The destination fix forces destination to always be relative to the task
      directory. This makes sense for the destination as a destination outside
      the task directory would be unreachable by the task. There's no reason
      to ever render a template outside the task directory. (Using `..` does
      allow destinations to escape the task directory if
      `template.disable_file_sandbox = true`. That's just awkward and unsafe
      enough I hope no one uses it.)
      
      There is a reason to source a template outside a task
      directory. At least if there weren't then I can't think of why we
      implemented `template.disable_file_sandbox`. So v0.12.8 left the
      behavior of `template.source` the more straightforward "Interpolate and
      validate."
      
      However, since outside of `raw_exec` every other driver uses absolute
      paths for `NOMAD_*_DIR` interpolation, this means those variables are
      unusable unless `disable_file_sandbox` is set.
      
      **The Fix**
      
      The variables are now interpolated as relative paths *only for the
      purpose of rendering templates.* This is an unfortunate special case,
      but reflects the fact that the templates view of the filesystem is
      completely different (unconstrainted) vs the task's view (chrooted).
      Arguably the values of these variables *should be context-specific.*
      I think it's more reasonable to think of the "hack" as templating
      running uncontainerized than that giving templates different paths is a
      hack.
      
      **TODO**
      
      - [ ] E2E tests
      - [ ] Job validation may still be broken and prevent my fix from
            working?
      
      **raw_exec**
      
      `raw_exec` is actually broken _a different way_ as exercised by tests in
      this commit. I think we should probably remove these tests and fix that
      in a followup PR/release, but I wanted to leave them in for the initial
      review and discussion. Since non-containerized source paths are broken
      anyway, perhaps there's another solution to this entire problem I'm
      overlooking?
      cd7226d3
    • Michael Schurter's avatar
      docs: document artifact bug #6929 · 351adfe4
      Michael Schurter authored
      351adfe4
  4. 17 Nov, 2020 3 commits
  5. 16 Nov, 2020 8 commits
  6. 15 Nov, 2020 4 commits
  7. 14 Nov, 2020 1 commit
  8. 13 Nov, 2020 5 commits