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. 10 Apr, 2020 5 commits
    • Seth Hoenig's avatar
      Merge pull request #7684 from hashicorp/b-connect-sidecar-name · 47dfa762
      Seth Hoenig authored
      connect: enable configuring sidecar_task.name
      47dfa762
    • Seth Hoenig's avatar
      Merge pull request #7683 from hashicorp/b-no-sidecar-panic · ce3b57e1
      Seth Hoenig authored
      connect: correctly handle missing sidecar_service task stanza
      ce3b57e1
    • Seth Hoenig's avatar
      connect: extract common task keys · 0eb28449
      Seth Hoenig authored
      0eb28449
    • Seth Hoenig's avatar
      connect: enable configuring sidecar_task.name · 729931ac
      Seth Hoenig authored
      Before, the submitted jobspec for sidecar_task would pass
      through 2 key validation steps - once for the subset specific
      to connect sidecar task definitions, and once again for the set
      of normal task definition where the task would actually get
      unmarshalled.
      
      The valid keys for the normal task definition did not include
      "name", which is supposed to be configurable for the sidecar
      task. To fix this, just eliminate the double validation step,
      and instead pass-in the correct set of keys to validate against
      to the one generic task parser.
      
      Fixes #7680
      729931ac
    • Seth Hoenig's avatar
      connect: correctly deal with nil sidecar_service task stanza · 79a52411
      Seth Hoenig authored
      Before, if the sidecar_service stanza of a connect enabled service
      was missing, the job submission would cause a panic in the nomad
      agent. Since the panic was happening in the API handler the agent
      itself continued running, but this change will the condition more
      gracefully.
      
      By fixing the `Copy` method, the API handler now returns the proper
      error.
      
      $ nomad job run foo.nomad
      Error submitting job: Unexpected response code: 500 (1 error occurred:
      	* Task group api validation failed: 2 errors occurred:
      	* Missing tasks for task group
      	* Task group service validation failed: 1 error occurred:
      	* Service[0] count-api validation failed: 1 error occurred:
      	* Consul Connect must be native or use a sidecar service
      79a52411
  2. 09 Apr, 2020 15 commits
  3. 08 Apr, 2020 8 commits
  4. 07 Apr, 2020 12 commits