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.
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer.
- 22 Jul, 2021 1 commit
-
-
Seth Hoenig authored
core: remove internalization of affinity strings
-
- 21 Jul, 2021 5 commits
-
-
James Rasell authored
docs: fixup regions API documentation path to include version.
-
Luiz Aoqui authored
-
Luiz Aoqui authored
-
Luiz Aoqui authored
-
James Rasell authored
-
- 20 Jul, 2021 2 commits
-
-
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:
Luiz Aoqui <luiz@hashicorp.com>
-
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.
-
- 19 Jul, 2021 1 commit
-
-
Michael Schurter authored
Don't treat a failed recover + successful destroy as a successful recover
-
- 16 Jul, 2021 5 commits
-
-
Michael Schurter authored
-
Kent 'picat' Gruber authored
Handle successful/canceled/blocked deployments in CLI output
-
Mahmood Ali authored
Fix typo.
-
Kent 'picat' Gruber authored
-
Alan Guo Xiang Tan authored
-
- 15 Jul, 2021 2 commits
-
-
Kent 'picat' Gruber authored
-
Seth Hoenig authored
Basically the same as #10896 but with the Affinity struct. Since we use reflect.DeepEquals for job comparison, there is risk of false positives for changes due to a job struct with memoized vs non-memoized strings. Closes #10897
-
- 14 Jul, 2021 12 commits
-
-
Mahmood Ali authored
cli: `-namespace` should override job namespace
-
Mahmood Ali authored
scheduler: datacenter updates should be destructive
-
Mahmood Ali authored
Job `test-e2e` uses an unprivileged user to compile and run tests. Ensure that the user has ssh and git properly configured to checkout dependencies.
-
Seth Hoenig authored
build: no longer use vendor directory
-
Seth Hoenig authored
core: do not internalize constraint strings
-
Seth Hoenig authored
-
Seth Hoenig authored
This PR removes the vendor directory from the Nomad repository. Contributers will no longer need to deal with our `make sync` step when working on Nomad, which was suprising when making changes to the api. It also causes huge diffs in PRs that nobody looks at.
-
Seth Hoenig authored
-
Seth Hoenig authored
-
Seth Hoenig authored
-
Seth Hoenig authored
This PR causes Nomad to no longer memoize the String value of a Constraint. The private memoized variable may or may not be initialized at any given time, which means a reflect.DeepEqual comparison between two jobs (e.g. during Plan) may return incorrect results. Fixes #10836
-
James Rasell authored
deps: update consul-template to v0.25.2.
-
- 13 Jul, 2021 4 commits
-
-
Luiz Aoqui authored
-
James Rasell authored
-
James Rasell authored
-
Georges-Etienne Legendre authored
* Proposed fix for #10561 Signed-off-by:
Georges-Etienne Legendre <legege@legege.com> * Add acceptance tests for reverse proxy use-case Signed-off-by:
Georges-Etienne Legendre <legege@legege.com> * Use reads instead of computed/get Signed-off-by:
Georges-Etienne Legendre <legege@legege.com> * Move back the line closer to the task Signed-off-by:
Georges-Etienne Legendre <legege@legege.com> * skip a11y-audit-called lint rule on reverse proxy tests Co-authored-by:
Luiz Aoqui <luiz@hashicorp.com>
-
- 12 Jul, 2021 4 commits
-
-
Noel Quiles authored
-
Seth Hoenig authored
consul/connect: fix bug causing high cpu with multiple connect sidecars in group
-
Seth Hoenig authored
-
Seth Hoenig authored
Co-authored-by:
Michael Schurter <mschurter@hashicorp.com>
-
- 11 Jul, 2021 2 commits
-
-
Jai authored
Closes Nomad UI showing 'vUnknown' #10672
-
Jai Bhagat authored
The name property had to be added back to the agent schema in the Agent Factory because the /agent/monitor endpoint in the config finds agents by their names and since member is not a proper entity in our Mirage Config we can't just findBy name of the member. So although we're following the correct schema we're set-up to rely on this.
-
- 09 Jul, 2021 2 commits
-
-
Kent 'picat' Gruber authored
Otherwise the spinner would just end, which felt a bit awkward. I wanted to see a "✓" to know that everything was ok, and a "!" (maybe something else?) if something went wrong.
-
Seth Hoenig authored
This PR fixes a bug where the underlying Envoy process of a Connect gateway would consume a full core of CPU if there is more than one sidecar or gateway in a group. The utilization was being caused by Consul injecting an envoy_ready_listener on 127.0.0.1:8443, of which only one of the Envoys would be able to bind to. The others would spin in a hot loop trying to bind the listener. As a workaround, we now specify -address during the Envoy bootstrap config step, which is how Consul maps this ready listener. Because there is already the envoy_admin_listener, and we need to continue supporting running gateways in host networking mode, and in those case we want to use the same port value coming from the service.port field, we now bind the admin listener to the 127.0.0.2 loop-back interface, and the ready listener takes 127.0.0.1. This shouldn't make a difference in the 99.999% use case where envoy is being run in its official docker container. Advanced users can reference ${NOMAD_ENVOY_ADMIN_ADDR_<service>} (as they 'ought to) if needed, as well as the new variable ${NOMAD_ENVOY_READY_ADDR_<service>} for the envoy_ready_listener.
-