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. 29 Jul, 2021 2 commits
  2. 28 Jul, 2021 3 commits
    • Mahmood Ali's avatar
      update changelog (#10963) · 445b1153
      Mahmood Ali authored
      445b1153
    • Bryce Kalow's avatar
      adds back tab styles (#10961) · 28389fc7
      Bryce Kalow authored
      28389fc7
    • Mahmood Ali's avatar
      api: revert to defaulting to http/1 (#10958) · d3835a16
      Mahmood Ali authored
      * api: revert to defaulting to http/1
      
      PR #10778 incidentally changed the api http client to connect with
      HTTP/2 first. However, the websocket libraries used in `alloc exec`
      features don't handle http/2 well, and don't downgrade to http/1
      gracefully.
      
      Given that the switch is incidental, and not requested by users.
      Furthermore, api consumers can opt-in to forcing http/2 by setting
      custom http clients.
      
      Fixes #10922
      d3835a16
  3. 27 Jul, 2021 7 commits
  4. 26 Jul, 2021 2 commits
  5. 23 Jul, 2021 1 commit
  6. 22 Jul, 2021 14 commits
  7. 21 Jul, 2021 6 commits
  8. 20 Jul, 2021 5 commits
    • Nicholas Cioli's avatar
      ui: add parameterized dispatch interface (#10675) · 801a7324
      Nicholas Cioli authored
      
      * ui: add parameterized dispatch interface
      
      This commit adds a new interface for dispatching parameteried jobs, if
      the user has the right permissions. The UI can be accessed by viewing a
      parameterized job and clicking on the "Dispatch Job" button located in
      the "Job Launches" section.
      
      * fix failing lint test
      
      * clean up dispatch and remove meta
      
      This commit cleans up a few things that had typos and
      inconsistent naming. In line with this, the custom
      `meta` view was removed in favor of using the
      included `AttributesTable`.
      
      * ui: encode dispatch job payload and start adding tests
      
      * ui: remove unused test imports
      
      * ui: redesign job dispatch form
      
      * ui: initial acceptance tests for dispatch job
      
      * ui: generate parameterized job children with correct id format
      
      * ui: fix job dispatch breadcrumb link
      
      * ui: refactor job dispatch component into glimmer component and add form validation
      
      * ui: remove unused CSS class
      
      * ui: align job dispatch button
      
      * ui: handle namespace-specific requests on job dispatch
      
      * ui: rename payloadMissing to payloadHasError
      
      * ui: don't re-fetch job spec on dispatch job
      
      * ui: keep overview tab selected on job dispatch page
      
      * ui: fix task and task-group linting
      
      * ui: URL encode job id on dispatch job tests
      
      * ui: fix error when job meta is null
      
      * ui: handle job dispatch from adapter
      
      * ui: add more tests for dispatch job page
      
      * ui: add "job dispatch" capability check
      
      * ui: update job dispatch from code review
      Co-authored-by: default avatarLuiz Aoqui <luiz@hashicorp.com>
      801a7324
    • Jai Bhagat's avatar
      refactoring for same regression in job versions · b09559eb
      Jai Bhagat authored
      In job versions, if you have an ACL token with a write policy
      you should be able to revert a job, however, that was not the
      case here. This is because we're using ember-can to check if
      the user can run a job. That permission relies on policiesSupportRunning
      which uses a function called namespaceIncludesCapability. We're going to
      need to refactor any cases that use this function.
      b09559eb
    • Mahmood Ali's avatar
      client: avoid acting on stale data after launch (#10907) · 3165ae81
      Mahmood Ali authored
      When the client launches, use a consistent read to fetch its own allocs,
      but allow stale read afterwards as long as reads don't revert into older
      state.
      
      This change addresses an edge case affecting restarting client. When a
      client restarts, it may fetch a stale data concerning its allocs: allocs
      that have completed prior to the client shutdown may still have "run/running"
      desired/client status, and have the client attempt to re-run again.
      
      An alternative approach is to track the indices such that the client
      set MinQueryIndex on the maximum index the client ever saw, or compare
      received allocs against locally restored client state. Garbage
      collection complicates this approach (local knowledge is not complete),
      and the approach still risks starting "dead" allocations (e.g. the
      allocation may have been placed when client just restarted and have
      already been reschuled by the time the client started. This approach
      here is effective against all kinds of stalness problems with small
      overhead.
      3165ae81
    • Michael Schurter's avatar
      deps: sync oss versions with enterprise · afeebb42
      Michael Schurter authored
      see hashicorp/nomad-enterprise#586 for audit logger related dependency
      updates
      afeebb42
    • Michael Schurter's avatar
      audit: add file mode configuration parameter · 1fc130a7
      Michael Schurter authored
      Rest of implementation is in nomad-enterprise
      1fc130a7