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. 18 Apr, 2022 1 commit
    • Seth Hoenig's avatar
      ci: purge consul/sdk in favor of nomad/sdk · 0ad63293
      Seth Hoenig authored
      This PR substitutes consul/sdk for nomad/sdk.
      
      Major difference in the implementation of freeport, where the
      new version is based on ephemoral ports instead of pre-allocated
      port blocks.
      0ad63293
  2. 06 Apr, 2022 1 commit
  3. 05 Apr, 2022 1 commit
    • Luiz Aoqui's avatar
      Support Vault entity aliases (#12449) · d412f7b4
      Luiz Aoqui authored
      Move some common Vault API data struct decoding out of the Vault client
      so it can be reused in other situations.
      
      Make Vault job validation its own function so it's easier to expand it.
      
      Rename the `Job.VaultPolicies` method to just `Job.Vault` since it
      returns the full Vault block, not just their policies.
      
      Set `ChangeMode` on `Vault.Canonicalize`.
      
      Add some missing tests.
      
      Allows specifying an entity alias that will be used by Nomad when
      deriving the task Vault token.
      
      An entity alias assigns an indentity to a token, allowing better control
      and management of Vault clients since all tokens with the same indentity
      alias will now be considered the same client. This helps track Nomad
      activity in Vault's audit logs and better control over Vault billing.
      
      Add support for a new Nomad server configuration to define a default
      entity alias to be used when deriving Vault tokens. This default value
      will be used if the task doesn't have an entity alias defined.
      d412f7b4
  4. 04 Apr, 2022 1 commit
  5. 02 Apr, 2022 1 commit
  6. 29 Mar, 2022 2 commits
  7. 23 Mar, 2022 3 commits
    • dependabot[bot]'s avatar
    • Seth Hoenig's avatar
      client: enable support for cgroups v2 · 5da1a31e
      Seth Hoenig authored
      This PR introduces support for using Nomad on systems with cgroups v2 [1]
      enabled as the cgroups controller mounted on /sys/fs/cgroups. Newer Linux
      distros like Ubuntu 21.10 are shipping with cgroups v2 only, causing problems
      for Nomad users.
      
      Nomad mostly "just works" with cgroups v2 due to the indirection via libcontainer,
      but not so for managing cpuset cgroups. Before, Nomad has been making use of
      a feature in v1 where a PID could be a member of more than one cgroup. In v2
      this is no longer possible, and so the logic around computing cpuset values
      must be modified. When Nomad detects v2, it manages cpuset values in-process,
      rather than making use of cgroup heirarchy inheritence via shared/reserved
      parents.
      
      Nomad will only activate the v2 logic when it detects cgroups2 is mounted at
      /sys/fs/cgroups. This means on systems running in hybrid mode with cgroups2
      mounted at /sys/fs/cgroups/unified (as is typical) Nomad will continue to
      use the v1 logic, and should operat...
      5da1a31e
    • Tim Gross's avatar
      CSI: fix timestamp from volume snapshot responses (#12352) · fe65d805
      Tim Gross authored
      Listing snapshots was incorrectly returning nanoseconds instead of
      seconds, and formatting of timestamps both list and create snapshot
      was treating the timestamp as though it were nanoseconds instead of
      seconds. This resulted in create timestamps always being displayed as
      zero values.
      
      Fix the unit conversion error in the command line and the incorrect
      extraction in the CSI plugin client code. Beef up the unit tests to
      make sure this code is actually exercised.
      fe65d805
  8. 24 Feb, 2022 2 commits
  9. 23 Feb, 2022 3 commits
  10. 17 Feb, 2022 1 commit
  11. 16 Feb, 2022 1 commit
  12. 03 Feb, 2022 2 commits
  13. 31 Jan, 2022 1 commit
    • Seth Hoenig's avatar
      deps: import libtime the normal way · 97176a56
      Seth Hoenig authored
      Previously we copied this library by hand to avoid vendor-ing a bunch of
      files related to minimock. Now that we no longer vendor, just import the
      library normally.
      
      Also we might use more of the library for handling `time.After` uses,
      for which this library provides a Context-based solution.
      97176a56
  14. 27 Jan, 2022 1 commit
  15. 25 Jan, 2022 1 commit
  16. 24 Jan, 2022 3 commits
  17. 19 Jan, 2022 3 commits
  18. 18 Jan, 2022 1 commit
  19. 13 Jan, 2022 2 commits
  20. 12 Jan, 2022 2 commits
  21. 23 Dec, 2021 1 commit
    • Tim Gross's avatar
      deps: upgrade go-getter to 1.5.10 (#11740) · 000354a7
      Tim Gross authored
      The `go-getter` library was updated to 1.5.9 in #11481 to pick up a
      bug fix for automatically unpacking uncompressed tar archives. But
      this version had a regression in git `ref` param behavior and was
      patched in 1.5.10.
      000354a7
  22. 17 Nov, 2021 6 commits