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 Sep, 2022 15 commits
-
-
Charlie Voiselle authored
* Bump CT dependency * go mod tidied
-
Michael Schurter authored
* test: add e2e for non-overlapping placements Followup to #10446 Fails (as expected) against 1.3.x at the wait for blocked eval (because the allocs are allowed to overlap). Passes against 1.4.0-beta.1 (as expected). * Update e2e/overlap/overlap_test.go Co-authored-by:
James Rasell <jrasell@users.noreply.github.com>
-
Seth Hoenig authored
This PR splits up the nomad/mock package into more files. Specific features that have a lot of mocks get their own file (e.g. acl, variables, csi, connect, etc.). Above that, functions that return jobs/allocs/nodes are in the job/alloc/node file. And lastly other mocks/helpers are in mock.go
-
Derek Strickland authored
scheduler: Fix bug where the would treat multiregion jobs as paused for job types that don't use deployments (#14659) * scheduler: Fix bug where the scheduler would treat multiregion jobs as paused for job types that don't use deployments Co-authored-by:
Tim Gross <tgross@hashicorp.com> Co-authored-by:
Tim Gross <tgross@hashicorp.com>
-
Jorge Marey authored
* Add nomad env to envoy bootstrap * Add changelog file
-
Charlie Voiselle authored
Consul-template expects that the Response Metadata is non-zero, but on a 403 we do not pass back QueryMeta headers.
-
Florian Apolloner authored
-
Phil Renaud authored
* button styles * Further styles including global toggle adjustment * sidebar funcs and header * Functioning task logs in high-level sidebars * same-lineify the show tasks toggle * Changelog * Full-height sidebar calc in css, plz drop soon container queries * Active status and query params for allocations page * Reactive shouldShowLogs getter and added to client and task group pages * Higher order func passing, thanks @DingoEatingFuzz * Non-service job types get allocation params passed * Keyframe animation for task log sidebar * Acceptance test * A few more sub-row tests * Lintfix
-
Tim Gross authored
In Nomad 1.2.6 we shipped `eval list`, which accepts a `-json` flag, and deprecated the usage of `eval status` without an evaluation ID with an upgrade note that it would be removed in Nomad 1.4.0. This changeset completes that work.
-
Seth Hoenig authored
minor update, no CL needed
-
Jorge Marey authored
-
Seth Hoenig authored
-
Luiz Aoqui authored
-
Tim Gross authored
The `operator debug` command writes JSON files from API responses as a single line containing an array of JSON objects. But some of these files can be extremely large (GB's) for large production clusters, which makes it difficult to parse them using typical line-oriented Unix command line tools that can stream their inputs without consuming a lot of memory. For collections that are typically large, instead emit newline-delimited JSON. This changeset includes some first-pass refactoring of this command. It breaks up monolithic methods that validate a path, create a file, serialize objects, and write them to disk into smaller functions, some of which can now be standalone to take advantage of generics.
-
James Rasell authored
Operators may have a setup whereby the TLS config comes from a source other than setting Nomad specific env vars. In this case, we should attempt to identify the scheme using the config setting as a fallback.
-
- 21 Sep, 2022 3 commits
-
-
Seth Hoenig authored
* cleanup: refactor MapStringStringSliceValueSet to be cleaner * cleanup: replace SliceStringToSet with actual set * cleanup: replace SliceStringSubset with real set * cleanup: replace SliceStringContains with slices.Contains * cleanup: remove unused function SliceStringHasPrefix * cleanup: fixup StringHasPrefixInSlice doc string * cleanup: refactor SliceSetDisjoint to use real set * cleanup: replace CompareSliceSetString with SliceSetEq * cleanup: replace CompareMapStringString with maps.Equal * cleanup: replace CopyMapStringString with CopyMap * cleanup: replace CopyMapStringInterface with CopyMap * cleanup: fixup more CopyMapStringString and CopyMapStringInt * cleanup: replace CopySliceString with slices.Clone * cleanup: remove unused CopySliceInt * cleanup: refactor CopyMapStringSliceString to be generic as CopyMapOfSlice * cleanup: replace CopyMap with maps.Clone * cleanup: run go mod tidy
-
Luiz Aoqui authored
-
Luiz Aoqui authored
-
- 19 Sep, 2022 2 commits
-
-
Luiz Aoqui authored
-
Luiz Aoqui authored
The concurrent gate access test is flaky since it depends on the order of operations of two concurrent goroutines. Despite the heavy bias towards one of the results, it's still possible to end the execution with a closed gate. I believe this case was created to test an earlier implementation where the gate state was stored and mutated internally, so the access had to be protected by a lock. However, the final implementation changed this approach to be only channel-based, so there is no need for this flaky test anymore.
-
- 16 Sep, 2022 6 commits
-
-
Tim Gross authored
Bug fixes on new features in Nomad 1.4.0 don't need or want changelog entries in the same changelog the feature appeared, so remove this one.
-
Phil Renaud authored
* Added task links to various alloc tables * Lintfix * Border collapse and added to task group page * Logs icon temporarily removed and localStorage added * Mock task added to test * Delog * Two asserts in new test * Remove commented-out code * Changelog * Removing args.allocation deps
-
Seth Hoenig authored
-
Bryce Kalow authored
Co-authored-by:
Geoffrey Grosenbach <26+topfunky@users.noreply.github.com> Co-authored-by:
Anthony <russo555@gmail.com> Co-authored-by:
Ashlee Boyer <ashlee.boyer@hashicorp.com> Co-authored-by:
Ashlee M Boyer <43934258+ashleemboyer@users.noreply.github.com> Co-authored-by:
HashiBot <62622282+hashibot-web@users.noreply.github.com> Co-authored-by:
Kevin Wang <kwangsan@gmail.com>
-
Seth Hoenig authored
-
James Rasell authored
In the event a single test fails to clear up properly after itself, all other tests will fail as they attempt to create ACL policies with the same names. This change ensures they use unique ACL names, so when a single test fails, it is easy to identify it is a problem with the test rather than the suite.
-
- 15 Sep, 2022 7 commits
-
-
Derek Strickland authored
Release/1.4.0 beta.1
-
Michael Schurter authored
* test: don't use loop vars in goroutines fixes a data race in the test * test: copy objects in statestore before mutating fixes data race in test * test: @lgfa29's segmgrep rule for loops/goroutines Found 2 places where we were improperly using loop variables inside goroutines.
-
Derek Strickland authored
-
Michael Schurter authored
The tests have data races and the code is unused in OSS and enterprise codebases. Bit more progress for #14236
-
Tim Gross authored
This test is broken in CircleCI only. It works on GHA in both 20.04 and 22.04 and has been verified to work on real Nomad; temporarily commenting-out so that we don't block unrelated CI runs. WIP to fix in https://github.com/hashicorp/nomad/pull/14600
-
James Rasell authored
The rewrite refactors the suite to use the new style along with other recent testing improvements. In order to ensure the spread tests do not impact each other, there is new cleanup functionality to ensure both the job and allocations are removed from state before the test exits completely.
-
Tim Gross authored
The `TestVarGetCommand` test uses the wrong namespace in the autocomplete test. The namespace only gets validated against if we have quota enforcement (or more typically by ACL checks), so the test only fails in the ENT repo test runs.
-
- 14 Sep, 2022 7 commits
-
-
hc-github-team-nomad-core authored
-
hc-github-team-nomad-core authored
-
Derek Strickland authored
-
hc-github-team-nomad-core authored
-
hc-github-team-nomad-core authored
-
Derek Strickland authored
-
Tim Gross authored
-