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. 03 Feb, 2021 1 commit
  2. 25 Jan, 2021 1 commit
    • Seth Hoenig's avatar
      consul/connect: Add support for Connect terminating gateways · ceae8ad1
      Seth Hoenig authored
      This PR implements Nomad built-in support for running Consul Connect
      terminating gateways. Such a gateway can be used by services running
      inside the service mesh to access "legacy" services running outside
      the service mesh while still making use of Consul's service identity
      based networking and ACL policies.
      
      https://www.consul.io/docs/connect/gateways/terminating-gateway
      
      These gateways are declared as part of a task group level service
      definition within the connect stanza.
      
      service {
        connect {
          gateway {
            proxy {
              // envoy proxy configuration
            }
            terminating {
              // terminating-gateway configuration entry
            }
          }
        }
      }
      
      Currently Envoy is the only supported gateway implementation in
      Consul. The gateay task can be customized by configuring the
      connect.sidecar_task block.
      
      When the gateway.terminating field is set, Nomad will write/update
      the Configuration Entry into Consul on job submission. Because CEs
      are...
      ceae8ad1
  3. 19 Jan, 2021 1 commit
  4. 08 Jan, 2021 1 commit
  5. 06 Jan, 2021 7 commits
  6. 11 Dec, 2020 1 commit
    • Seth Hoenig's avatar
      command: remove use of flag impls from consul · fdd8d352
      Seth Hoenig authored
      In a few places Nomad was using flag implementations directly
      from Consul, lending to Nomad's need to import consul. Replace
      those uses with helpers already in Nomad, and copy over the bare
      minimum needed to make the autopilot flags behave as they have.
      fdd8d352
  7. 03 Dec, 2020 1 commit
    • Drew Bailey's avatar
      API: Event stream use full name instead of Eval/Alloc (#9509) · 6318a8ac
      Drew Bailey authored
      * use full name for events
      
      use evaluation and allocation instead of short name
      
      * update api event stream package and shortnames
      
      * update docs
      
      * make sync; fix typo
      
      * backwards compat not from 1.0.0-beta event stream api changes
      
      * use api types instead of string
      
      * rm backwards compat note that only changed between prereleases
      
      * remove backwards incompat that only existed in prereleases
      6318a8ac
  8. 30 Nov, 2020 2 commits
    • Drew Bailey's avatar
      Remove Managed Sinks from Nomad (#9470) · bf225f71
      Drew Bailey authored
      * Remove Managed Sinks from Nomad
      
      Managed Sinks were a beta feature in Nomad 1.0-beta2. During the beta
      period it was determined that this was not a scalable approach to
      support community and third party sinks.
      
      * update comment
      
      * changelog
      bf225f71
    • Seth Hoenig's avatar
      consul/connect: enable setting datacenter in connect upstream · ce32e311
      Seth Hoenig authored
      Before, upstreams could only be defined using the default datacenter.
      Now, the `datacenter` field can be set in a connect upstream definition,
      informing consul of the desire for an instance of the upstream service
      in the specified datacenter. The field is optional and continues to
      default to the local datacenter.
      
      Closes #8964
      ce32e311
  9. 25 Nov, 2020 1 commit
    • Tim Gross's avatar
      csi/api: populate ReadAllocs/WriteAllocs fields (#9377) · 8351c3f9
      Tim Gross authored
      The API is missing values for `ReadAllocs` and `WriteAllocs` fields, resulting
      in allocation claims not being populated in the web UI. These fields mirror
      the fields in `nomad/structs.CSIVolume`. Returning a separate list of stubs
      for read and write would be ideal, but this can't be done without either
      bloating the API response with repeated full `Allocation` data, or causing a
      panic in previous versions of the CLI.
      
      The `nomad/structs` fields are persisted with nil values and are populated
      during RPC, so we'll do the same in the HTTP API and populate the `ReadAllocs`
      and `WriteAllocs` fields with a map of allocation IDs, but with null
      values. The web UI will then create its `ReadAllocations` and
      `WriteAllocations` fields by mapping from those IDs to the values in
      `Allocations`, instead of flattening the map into a list.
      8351c3f9
  10. 23 Nov, 2020 3 commits
  11. 21 Nov, 2020 1 commit
  12. 13 Nov, 2020 1 commit
    • Seth Hoenig's avatar
      jobspec: add support for headers in artifact stanza · 6c757863
      Seth Hoenig authored
      This PR adds the ability to set HTTP headers when downloading
      an artifact from an `http` or `https` resource.
      
      The implementation in `go-getter` is such that a new `HTTPGetter`
      must be created for each artifact that sets headers (as opposed
      to conveniently setting headers per-request). This PR maintains
      the memoization of the default Getter objects, creating new ones
      only for artifacts where headers are set.
      
      Closes #9306
      6c757863
  13. 12 Nov, 2020 1 commit
  14. 11 Nov, 2020 1 commit
  15. 06 Nov, 2020 1 commit
  16. 05 Nov, 2020 1 commit
    • Drew Bailey's avatar
      Api/event stream payload values (#9277) · be2024ab
      Drew Bailey authored
      
      * Get concrete types out of dynamic payload
      
      wip
      
      pull out value setting to func
      
      * Add TestEventSTream_SetPayloadValue
      
      Add more assertions
      
      use alias type in unmarshalJSON to handle payload rawmessage
      
      shorten unmarshal and remove anonymous wrap struct
      
      * use map structure and helper functions to return concrete types
      
      * ensure times are properly handled
      
      * update test name
      
      * put all decode logic in a single function
      Co-authored-by: default avatarKris Hicks <khicks@hashicorp.com>
      be2024ab
  17. 02 Nov, 2020 1 commit
  18. 28 Oct, 2020 1 commit
    • Chris Baker's avatar
      added new policy capabilities for recommendations API · 9e2eadc7
      Chris Baker authored
      state store: call-out to generic update of job recommendations from job update method
      recommendations API work, and http endpoint errors for OSS
      support for scaling polices in task block of job spec
      add query filters for ScalingPolicy list endpoint
      command: nomad scaling policy list: added -job and -type
      9e2eadc7
  19. 22 Oct, 2020 2 commits
  20. 21 Oct, 2020 3 commits
  21. 14 Oct, 2020 7 commits
    • Dave May's avatar
      Metrics gotemplate support, debug bundle features (#9067) · 71a022ad
      Dave May authored
      
      * add goroutine text profiles to nomad operator debug
      
      * add server-id=all to nomad operator debug
      
      * fix bug from changing metrics from string to []byte
      
      * Add function to return MetricsSummary struct, metrics gotemplate support
      
      * fix bug resolving 'server-id=all' when no servers are available
      
      * add url to operator_debug tests
      
      * removed test section which is used for future operator_debug.go changes
      
      * separate metrics from operator, use only structs from go-metrics
      
      * ensure parent directories are created as needed
      
      * add suggested comments for text debug pprof
      
      * move check down to where it is used
      
      * add WaitForFiles helper function to wait for multiple files to exist
      
      * compact metrics check
      Co-authored-by: default avatarDrew Bailey <2614075+drewbailey@users.noreply.github.com>
      
      * fix github's silly apply suggestion
      Co-authored-by: default avatarDrew Bailey <2614075+drewbailey@users.noreply.github.com>
      71a022ad
    • Drew Bailey's avatar
      filter on additional filter keys, remove switch statement duplication · 3c15f414
      Drew Bailey authored
      properly wire up durable event count
      
      move newline responsibility
      
      moves newline creation from NDJson to the http handler, json stream only encodes and sends now
      
      ignore snapshot restore if broker is disabled
      
      enable dev mode to access event steam without acl
      
      use mapping instead of switch
      
      use pointers for config sizes, remove unused ttl, simplify closed conn logic
      3c15f414
    • Michael Schurter's avatar
      api: add field filters to /v1/{allocations,nodes} · a55f46e9
      Michael Schurter authored
      Fixes #9017
      
      The ?resources=true query parameter includes resources in the object
      stub listings. Specifically:
      
      - For `/v1/nodes?resources=true` both the `NodeResources` and
        `ReservedResources` field are included.
      - For `/v1/allocations?resources=true` the `AllocatedResources` field is
        included.
      
      The ?task_states=false query parameter removes TaskStates from
      /v1/allocations responses. (By default TaskStates are included.)
      a55f46e9
    • Drew Bailey's avatar
      Add EvictCallbackFn to handle removing entries from go-memdb when they · 39ef3263
      Drew Bailey authored
      are removed from the event buffer.
      
      Wire up event buffer size config, use pointers for structs.Events
      instead of copying.
      39ef3263
    • Drew Bailey's avatar
      rehydrate event publisher on snapshot restore · 1288b18b
      Drew Bailey authored
      address pr feedback
      1288b18b
    • Drew Bailey's avatar
      api comments · 8a57ee85
      Drew Bailey authored
      8a57ee85
    • Drew Bailey's avatar
      Events/eval alloc events (#9012) · 4f97bf8e
      Drew Bailey authored
      * generic eval update event
      
      first pass at alloc client update events
      
      * api/event client
      4f97bf8e
  22. 06 Oct, 2020 1 commit