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.
- 09 Jul, 2021 1 commit
-
-
Shishir authored
- Auth support via driver config - pid_mode - shm_size Signed-off-by:
Shishir Mahajan <smahajan@roblox.com>
-
- 08 Jul, 2021 14 commits
-
-
Tim Gross authored
Adds missing interpolation step to the `meta` blocks when building the task environment. Also fixes incorrect parameter order in the test assertion and adds diagnostics to the test.
-
Seth Hoenig authored
consul/connect: remove sidecar proxy before removing parent service
-
Seth Hoenig authored
This PR will have Nomad de-register a sidecar proxy service before attempting to de-register the parent service. Otherwise, Consul will emit a warning and an error. Fixes #10845
-
Seth Hoenig authored
consul/connect: Avoid assumption of parent service when filtering connect proxies
-
Seth Hoenig authored
-
Seth Hoenig authored
client: fix logline in group shutdown hook
-
Seth Hoenig authored
Fixes #10844
-
Seth Hoenig authored
This PR uses regex-based matching for sidecar proxy services and checks when syncing with Consul. Previously we would check if the parent of the sidecar was still being tracked in Nomad. This is a false invariant - one which we must not depend when we make #10845 work. Fixes #10843
-
Mahmood Ali authored
Enforce idempotency of dispatched jobs using token on dispatch request
-
Tim Gross authored
The default agent configuration values were not set, which meant they were not being set in the client configuration and this results in fingerprints failing unless the values were set explicitly.
-
Tim Gross authored
When a task group with `service` block(s) is validated, we validate that there are no duplicates, but this validation doesn't have access to the task environment because it hasn't been created yet. Services and checks with interpolation can be flagged incorrectly as conflicting. Name conflicts in services are not actually an error in Consul and users have reported wanting to use the same service name for task groups differentiated by tags.
-
Tim Gross authored
The `command/TestJobStatusCommand_Run` test assumes that it gets back running allocations and will panic the test runner rather than failing.
-
Alex Munda authored
-
Alex Munda authored
-
- 07 Jul, 2021 11 commits
-
-
Alex Munda authored
-
Alex Munda authored
Co-authored-by:
Mahmood Ali <mahmood@hashicorp.com>
-
Seth Hoenig authored
consul: avoid extra sync operations when no action required
-
Isabel Suchanek authored
Alloc exec only works when task is passed as a flag and not an arg. Alloc logs currently accepts either, but alloc signal and restart only accept task as an arg. This adds -task as a flag to the other alloc commands to make the cli UX consistent. If task is passed as a flag and an arg, it ignores the arg.
-
Seth Hoenig authored
This PR makes it so the Consul sync logic will ignore operations that do not specify an action to take (i.e. [de-]register [services|checks]). Ideally such noops would be discarded at the callsites (i.e. users of [Create|Update|Remove]Workload], but we can also be defensive at the commit point. Also adds 2 trace logging statements which are helpful for diagnosing sync operations with Consul - when they happen and why. Fixes #10797
-
Seth Hoenig authored
consul: avoid triggering unnecessary sync when removing workload
-
James Rasell authored
api: Added `NewSystemJob` job creation helper function.
-
Mahmood Ali authored
Parse term gws
-
Tim Gross authored
Fix a nil pointer in the API struct to `nomad/structs` conversion when a `volume_mount` block is empty.
-
James Rasell authored
-
James Rasell authored
-
- 06 Jul, 2021 4 commits
-
-
Seth Hoenig authored
There are bits of logic in callers of RemoveWorkload on group/task cleanup hooks which call RemoveWorkload with the "Canary" version of the workload, in case the alloc is marked as a Canary. This logic triggers an extra sync with Consul, and also doesn't do the intended behavior - for which no special casing is necessary anyway. When the workload is marked for removal, all associated services and checks will be removed regardless of the Canary status, because the service and check IDs do not incorporate the canary-ness in the first place. The only place where canary-ness matters is when updating a workload, where we need to compute the hash of the services and checks to determine whether they have been modified, the Canary flag of which is a part of that. Fixes #10842
-
Mahmood Ali authored
Adopts [`go-changelog`](https://github.com/hashicorp/go-changelog) for managing Nomad's changelog. `go-changelog` is becoming the HashiCorp defacto standard tool for managing changelog, e.g. [Consul](https://github.com/hashicorp/consul/pull/8387), [Vault](https://github.com/hashicorp/vault/pull/10363), [Waypoint](https://github.com/hashicorp/waypoint/pull/1179). [Consul](https://github.com/hashicorp/consul/pull/8387) seems to be the first product to adopt it, and its PR has the most context - though I've updated `.changelog/README.md` with the relevant info here. ## Changes to developers workflow When opening PRs, developers should add a changelog entry in `.changelog/<PR#>.txt`. Check [`.changelog/README.md`](https://github.com/hashicorp/nomad/blob/docs-adopt-gochangelog/.changelog/README.md#developer-guide). For the WIP release, entries can be amended even after the PR merged, and new files may be added post-hoc (e.g. during transition period, missed accide...
-
James Rasell authored
constraint on the Docker driver missing 'attr'
-
Shantanu Gadgil authored
Between this page and https://www.nomadproject.io/docs/runtime/interpolation I realized that the syntax on the Docker page was missing the word `attr`.
-
- 02 Jul, 2021 3 commits
-
-
Alex Munda authored
-
Alex Munda authored
-
Grant Griffiths authored
Signed-off-by:
Grant Griffiths <ggriffiths@purestorage.com>
-
- 01 Jul, 2021 1 commit
-
-
Alex Munda authored
-
- 30 Jun, 2021 6 commits
-
-
Alex Munda authored
-
Alex Munda authored
-
Alex Munda authored
Co-authored-by:
Tim Gross <tgross@hashicorp.com>
-
Tim Gross authored
In Nomad 1.1.1 we generate a hosts file based on the Nomad-owned network namespace, rather than using the default hosts file from the pause container. This hosts file should be shared between tasks in the same allocation so that tasks can update the file and have the results propagated between tasks.
-
James Rasell authored
changelog: add entry for #10822
-
James Rasell authored
[docs] Fix missing opening quote
-