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 Apr, 2021 2 commits
  2. 28 Apr, 2021 3 commits
    • Buck Doyle's avatar
      ui: Add optional memory max to task details ribbon (#10459) · f16cdea4
      Buck Doyle authored
      This is the first step in #10268. If a maximum is not specified, the
      task group sum uses the memory number instead. The maximum is only
      shown when it’s higher than the memory sum.
      f16cdea4
    • Tim Gross's avatar
      docs: Enterprise licensing updates · 638a0daa
      Tim Gross authored
      638a0daa
    • Buck Doyle's avatar
      ui: Change global search to use fuzzy search API (#10412) · 911b6136
      Buck Doyle authored
      This updates the UI to use the new fuzzy search API. It’s a drop-in
      replacement so the / shortcut to jump to search is preserved, and
      results can be cycled through and chosen via arrow keys and the
      enter key.
      
      It doesn’t use everything returned by the API:
      * deployments and evaluations: these match by id, doesn’t seem like
        people would know those or benefit from quick navigation to them
      * namespaces: doesn’t seem useful as they currently function
      * scaling policies
      * tasks: the response doesn’t include an allocation id, which means they
        can’t be navigated to in the UI without an additional query
      * CSI volumes: aren’t actually returned by the API
      
      Since there’s no API to check the server configuration and know whether
      the feature has been disabled, this adds another query in
      route:application#beforeModel that acts as feature detection: if the
      attempt to query fails (500), the global search field is hidden.
      
      Upo...
      911b6136
  3. 27 Apr, 2021 3 commits
  4. 23 Apr, 2021 1 commit
  5. 20 Apr, 2021 2 commits
    • Charlie Voiselle's avatar
      Add PR 10404 to CHANGELOG (#10415) · 0af47626
      Charlie Voiselle authored
      0af47626
    • Buck Doyle's avatar
      Add job version revert buttons (#10336) · d0f4750f
      Buck Doyle authored
      This adds a Revert two-step button to the JobVersions component for
      not-current versions, which redirects to the overview on success. It
      checks the job version before and after reversion to mitigate the edge
      case where reverting to an otherwise-identical version has no effect, as
      discussed in #10337.
      
      It uses existing facilities for handling other errors and disabling the
      button when permissions are lacking.
      d0f4750f
  6. 16 Apr, 2021 1 commit
    • Seth Hoenig's avatar
      api: implement fuzzy search API · 350d9ebc
      Seth Hoenig authored
      This PR introduces the /v1/search/fuzzy API endpoint, used for fuzzy
      searching objects in Nomad. The fuzzy search endpoint routes requests
      to the Nomad Server leader, which implements the Search.FuzzySearch RPC
      method.
      
      Requests to the fuzzy search API are based on the api.FuzzySearchRequest
      object, e.g.
      
      {
        "Text": "ed",
        "Context": "all"
      }
      
      Responses from the fuzzy search API are based on the api.FuzzySearchResponse
      object, e.g.
      
      {
        "Index": 27,
        "KnownLeader": true,
        "LastContact": 0,
        "Matches": {
          "tasks": [
            {
              "ID": "redis",
              "Scope": [
                "default",
                "example",
                "cache"
              ]
            }
          ],
          "evals": [],
          "deployment": [],
          "volumes": [],
          "scaling_policy": [],
          "images": [
            {
              "ID": "redis:3.2",
              "Scope": [
                "default",
                "example",
                "cache",
                "redis"
              ]
            }
          ]
        },
        "Truncations": {
          "volumes": false,
          "scaling_policy": false,
          "evals": false,
          "deployment": false
        }
      }
      
      The API is tunable using the new server.search stanza, e.g.
      
      server {
        search {
          fuzzy_enabled   = true
          limit_query     = 200
          limit_results   = 1000
          min_term_length = 5
        }
      }
      
      These values can be increased or decreased, so as to provide more
      search results or to reduce load on the Nomad Server. The fuzzy search
      API can be disabled entirely by setting `fuzzy_enabled` to `false`.
      350d9ebc
  7. 15 Apr, 2021 1 commit
  8. 13 Apr, 2021 3 commits
  9. 12 Apr, 2021 2 commits
  10. 08 Apr, 2021 1 commit
  11. 06 Apr, 2021 2 commits
  12. 05 Apr, 2021 4 commits
  13. 30 Mar, 2021 1 commit
  14. 29 Mar, 2021 1 commit
  15. 28 Mar, 2021 1 commit
  16. 23 Mar, 2021 2 commits
  17. 18 Mar, 2021 2 commits
    • Tim Gross's avatar
      CSI: unique volume per allocation · 7c756967
      Tim Gross authored
      Add a `PerAlloc` field to volume requests that directs the scheduler to test
      feasibility for volumes with a source ID that includes the allocation index
      suffix (ex. `[0]`), rather than the exact source ID.
      
      Read the `PerAlloc` field when making the volume claim at the client to
      determine if the allocation index suffix (ex. `[0]`) should be added to the
      volume source ID.
      7c756967
    • Tim Gross's avatar
      CSI: remove prefix matching from CSIVolumeByID and fix CLI prefix matching (#10158) · a1eaad9c
      Tim Gross authored
      Callers of `CSIVolumeByID` are generally assuming they should receive a single
      volume. This potentially results in feasibility checking being performed
      against the wrong volume if a volume's ID is a prefix substring of other
      volume (for example: "test" and "testing").
      
      Removing the incorrect prefix matching from `CSIVolumeByID` breaks prefix
      matching in the command line client. Add the required elements for prefix
      matching to the commands and API.
      a1eaad9c
  18. 15 Mar, 2021 1 commit
  19. 12 Mar, 2021 1 commit
  20. 10 Mar, 2021 1 commit
    • Tim Gross's avatar
      scheduler/csi: fix early return when multiple volumes are requested · b66a3415
      Tim Gross authored
      When multiple CSI volumes are requested, the feasibility check could return
      early for read/write volumes with free claims, even if a later volume in the
      request was not feasible for any other reason (including not existing at
      all). This can result in random failure to fail feasibility checking,
      depending on how the map of volumes was being ordered at runtime.
      
      Remove the early return from the feasibility check. Add a test to verify that
      missing volumes in the map will cause a failure; this test will not catch a
      regression every test run because of the random map ordering, but any failure
      will be caught over the course of several CI runs.
      b66a3415
  21. 09 Mar, 2021 3 commits
  22. 08 Mar, 2021 2 commits