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.
- 03 Aug, 2022 1 commit
-
-
Phil Renaud authored
-
- 02 Aug, 2022 15 commits
-
-
Seth Hoenig authored
This PR fixes a bug where allocation memory usage is always zero on Linux systems where the kernel is configured to use cgroups v2.
-
Piotr Kazmierczak authored
* Adds Uid/Gid parameters to template. * Updated diff_test * fixed order * update jobspec and api * removed obsolete code * helper functions for jobspec parse test * updated documentation * adjusted API jobs test. * propagate uid/gid setting to job_endpoint * adjusted job_endpoint tests * making uid/gid into pointers * refactor * updated documentation * updated documentation * Update client/allocrunner/taskrunner/template/template_test.go Co-authored-by:
Luiz Aoqui <luiz@hashicorp.com> * Update website/content/api-docs/json-jobs.mdx Co-authored-by:
Luiz Aoqui <luiz@hashicorp.com> * propagating documentation change from Luiz * formatting * changelog entry * changed changelog entry Co-authored-by:
Luiz Aoqui <luiz@hashicorp.com>
-
Jai authored
-
Michele Degges authored
### Description Pattern matching was [recently added](https://github.com/hashicorp/crt-orchestrator/pull/51) so that teams no longer have to explicitly list every branch that should trigger the CRT pipeline. This simplifies release preparation- anytime a new release branch is created, it will produce releasable artifacts and exercise the full pipeline. ### Testing & Reproduction steps This has been tested in multiple projects since being rolled out. There are no nomad-specific tests that need to be done. ### Links PR where this functionality was added: https://github.com/hashicorp/crt-orchestrator/pull/51 ### PR Checklist * [ ] updated test coverage * [ ] external facing docs updated * [X] not a security concern
-
Seth Hoenig authored
checks: better goroutine handling for test tcp server
-
Seth Hoenig authored
This PR hopefully fixes a race condition of our little test tcp server that the check observer is making connections against for test cases. The tcp listener would either startup too slow or exit too soon.
-
James Rasell authored
-
Seth Hoenig authored
build: update aws env cpu info
-
Tim Gross authored
Includes concept docs for secure variables, concept docs for workload identity, and an operations docs for keyring management.
-
Eric Weber authored
* Allow specification of CSI staging and publishing directory path * Add website documentation for stage_publish_dir * Replace erroneous reference to csi_plugin.mount_config with csi_plugin.mount_dir * Avoid requiring CSI plugins to be redeployed after introducing StagePublishDir
-
Tim Gross authored
Move the secure variables quota enforcement calls into the state store to ensure quota checks are atomic with quota updates (in the same transaction). Switch to a machine-size int instead of a uint64 for quota tracking. The ENT-side quota spec is described as int, and negative values have a meaning as "not permitted at all". Using the same type for tracking will make it easier to the math around checks, and uint64 is infeasibly large anyways. Add secure vars to quota HTTP API and CLI outputs and API docs.
-
Seth Hoenig authored
build: update to go1.18.5
-
Seth Hoenig authored
-
Tim Gross authored
-
Seth Hoenig authored
-
- 01 Aug, 2022 7 commits
-
-
Jai authored
* refact: namespace should be bound property * chore: pass bound namespace property in template * chore: update tests to account for bound namespace refactoring * test: add test coverage for factoring namespace in path matching algo
-
Tim Gross authored
This PR continues work we've started on other test suites to use the native golang test runner instead of the custom framework.
-
Seth Hoenig authored
deps: update raft library
-
Seth Hoenig authored
deps: update test package
-
Seth Hoenig authored
Another attempt at resolving the flakey TestNomad_BootstrapExpect_NonVoter
-
James Rasell authored
-
Seth Hoenig authored
Upgrading to v0.3.0 gives us the ability to add more context to test case failures. https://github.com/shoenig/test/pull/23
-
- 28 Jul, 2022 4 commits
-
-
Tim Gross authored
This test is a fairly trivial test of the agent RPC, but the test setup waits for a short fixed window after the node starts to send the RPC. After looking at detailed logs for recent test failures, it looks like the node registration for the first node doesn't get a chance to happen before we make the RPC call. Use `WaitForResultUntil` to give the test more time to run in slower test environments, while allowing it to finish quickly if possible.
-
Tim Gross authored
OOM detection under cgroups v2 is flaky under versions of `containerd` before v1.6.3, but our `containerd` dependency is transitive on `moby/moby`, who have not yet updated. Disable this test for cgroups v2 environments until we can update the dependency chain.
-
Tim Gross authored
The `golang.org/x/net/context` package was merged into the stdlib as of go 1.7. Update the imports to use the identical stdlib version. Clean up import blocks for the impacted files to remove unnecessary package aliasing.
-
Lars Lehtonen authored
-
- 26 Jul, 2022 2 commits
-
-
Seth Hoenig authored
website: enable setting custom tool for launching website dev container
-
Seth Hoenig authored
When working in a podman environment, it's nice to just run the website development container using podman.
-
- 25 Jul, 2022 2 commits
-
-
asymmetric authored
fix alloc working directory path
-
Scott Holodak authored
-
- 22 Jul, 2022 8 commits
-
-
Jai authored
* ui: add namespace filter feature ui: add namespace filtering to variables.index test: namespace filter refact: fix action in template ui: move data fetching and query param logic to ui: controller query parameter logic ui: prevent from forwarding query param ui: create variables controller refact: use dependency injection for controlling parent qp chore: clean-up reset in route chore: clean-up reset in route * ui: add namespace filter to secure var form (#13629) ui: update variable factory to accept namespaces refact: update api to accept disabled ui: add namespace setting logic to form refact: remove debugger refact: get correct selectors for ui: move data loading to namespace-filter component chore: prettify template ui: update factory to handle namespace setting refact: remove inline styling for grid class * ui: fix placement of filter in `SecureVariablesForm` (#13762) * refact: conditionally render css class * chore: remove unused CSS property * refact: edit path-input class to prevent textarea override * refact: inject missing store service (#13763) * chore: patch fixes for when no default namespace is available (#13782) * test: add tests for namespace filtering conditions (#13816) * test: add tests for namespace filtering and namespaces appearing in form * patch namespace related issue to saving and querying (#13825) * refact: use namespace id, not entity * refact: update adapter to edit request to include qp * ui: early exit if no snapshot * refact: test passes wrong interface to method * chore: add missing url update URL builder * refact: model in doesn't have absolutePath * Align error message * chore: update tests (#13905) * chore: patch brittle tests with better selectors * chore: update assertion count Co-authored-by:
Phil Renaud <phil@riotindustries.com>
-
Luiz Aoqui authored
-
Seth Hoenig authored
cleanup: remove unneeded darwin lib
-
Seth Hoenig authored
-
Charlie Voiselle authored
-
Seth Hoenig authored
-
Tim Gross authored
When we delete a namespace, we check to ensure that there are no non-terminal jobs or CSI volume, which also covers evals, allocs, etc. Secure variables are also namespaces, so extend this check to them as well.
-
Seth Hoenig authored
cleanup: use constants for on_update values
-
- 21 Jul, 2022 1 commit
-
-
Tim Gross authored
When we delete a namespace, we check to ensure that there are no non-terminal jobs, which effectively covers evals, allocs, etc. CSI volumes are also namespaced, so extend this check to cover CSI volumes.
-