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.
- 27 Sep, 2022 1 commit
-
-
Jai authored
* docs: contributing documentation * docs: update run-on sentence. Co-authored-by:
Tim Gross <tgross@hashicorp.com> * refact: format link properly Co-authored-by:
Tim Gross <tgross@hashicorp.com> * refact: format link properly Co-authored-by:
Tim Gross <tgross@hashicorp.com> * refact: clean up language and format link Co-authored-by:
Tim Gross <tgross@hashicorp.com> * refact: format link properly Co-authored-by:
Tim Gross <tgross@hashicorp.com> Co-authored-by:
Tim Gross <tgross@hashicorp.com>
-
- 23 Sep, 2022 1 commit
-
-
Jai authored
* chore: update error message in client * test: test watchers
-
- 16 Sep, 2022 1 commit
-
-
Jai authored
-
- 14 Sep, 2022 1 commit
-
-
Tim Gross authored
The Nomad UI will be proxied by the proxy job, but the test setup also requires making direct HTTP API requests that bypass the UI. For clusters with mTLS configured (ex. nightly), we need to bind-mount the user's mTLS certs picked up by the API client into the test runner. Includes a new README that explains the topology of the test environments in detail and provides some advice for running locally.
-
- 13 Sep, 2022 2 commits
- 06 Sep, 2022 1 commit
-
-
Jai authored
-
- 01 Sep, 2022 1 commit
-
-
Jai authored
* chore: prettify and update fixtures * refact: update api-client and invocations to match API * chore: prettify files * refact: use Promise.all * chore: prettify files
-
- 26 Aug, 2022 1 commit
-
-
Jai authored
* refact: allow api client to accept method * chore: remove white lien * ui: add global-teardown script * chore: remove anon policy and token
-
- 22 Aug, 2022 1 commit
-
-
Jai authored
* chore: remove execa and add axios * chore: add utilities for request payloads * util: create api-client helper function * refact: remove spawn child process for REST API calls * chore: fix line breaks * refact: edit request schema for POST req
-
- 18 Aug, 2022 3 commits
-
-
Jai Bhagat authored
-
Jai Bhagat authored
-
Jai Bhagat authored
-
- 17 Aug, 2022 4 commits
-
-
Phil Renaud authored
* Initialized keyboard service Neat but funky: dynamic subnav traversal
generalized traverseSubnav method Shift as special modifier key Nice little demo panel Keyboard shortcuts keycard Some animation styles on keyboard shortcuts Handle situations where a link is deeply nested from its parent menu item Keyboard service cleanup helper-based initializer and teardown for new contextual commands Keyboard shortcuts modal component added and demo-ghost removed Removed j and k from subnav traversal Register and unregister methods for subnav plus new subnavs for volumes and volume register main nav method Generalizing the register nav method 12762 table keynav (#12975) * Experimental feature: shortcut visual hints * Long way around to a custom modifier for keyboard shortcuts * dynamic table and list iterative shortcuts * Progress with regular old tether * Delogging * Table Keynav tether fix, server and client navs, and fix to shiftless on modified arrow keys Go to Optimize keyboard link and storage key changed to g r parameterized jobs keyboard nav Dynamic numeric keynav for multiple tables (#13482) * Multiple tables init * URL-bind enumerable keyboard commands and add to more taskRow and allocationRows * Type safety and lint fixes * Consolidated push to keyCommands * Default value when removing keyCommands * Remove the URL-based removal method and perform a recompute on any add Get tests passing in Keynav: remove math helpers and a few other defensive moves (#13761) * Remove ember math helpers * Test fixes for jobparts/body * Kill an unneeded integration helper test * delog * Trying if disabling percy lets this finish * Okay so its not percy; try parallelism in circle * Percyless yet again * Trying a different angle to not have percy * Upgrade percy to 1.6.1 [ui] Keyboard nav: "u" key to go up a level (#13754) * U to go up a level * Mislabelled my conditional * Custom lint ignore rule * Custom lint ignore rule, this time with commas * Since we're getting rid of ember math helpers elsewhere, do the math ourselves here Replace ArrowLeft etc. with an ascii arrow (#13776) * Replace ArrowLeft etc. with an ascii arrow * non-mutative helper cleanup Keyboard Nav: let users rebind their shortcuts (#13781) * click-outside and shortcuts enabled/disabled toggle * Trap focus when modal open * Enabled/disabled saved to localStorage * Autofocus edit button on variable index * Modal overflow styles * Functional rebind * Saving rebinds to localStorage for all majors * Started on defaultCommandBindings * Modal header style and cancel rebind on escape * keyboardable keybindings w buttons instead of spans * recording and defaultvalues * Enter short-circuits rebind * Only some commands are rebindable, and dont show dupes * No unused get import * More visually distinct header on modal * Disallowed keys for rebind, showing buffer as you type, and moving dedupe to modal logic willDestroy hook to prevent tests from doubling/tripling up addEventListener on kb events remove unused tests Keyboard Navigation acceptance tests (#13893) * Acceptance tests for keyboard modal * a11y audit fix and localStorage clear * Bind/rebind/localStorage tests * Keyboard tests for dynamic nav and tables * Rebinder and assert expectation * Second percy snapshot showing hints no longer relevant Weird issue where linktos with query props specifically from the task-groups page would fail to route / hit undefined.shouldSuperCede errors Adds the concept of exclusivity to a keycommand, removing peers that also share its label Lintfix Changelog and PR feedback Changelog and PR feedback Fix to rebinding in firefox by blurring the now-disabled button on rebind (#14053) * Secure Variables shortcuts removed * Variable index route autofocus removed * Updated changelog entry * Updated changelog entry * Keynav docs (#14148) * Section added to the API Docs UI page * Added a note about disabling * Prev and Next order * Remove dev log and unneeded comments -
Piotr Kazmierczak authored
Bumping compile time requirement to go 1.18 allows us to simplify our pointer helper methods.
-
Jai authored
* refact: conditional checks for token secret before fetch * refact: guard all authRawReq calls * refact: safe-guard integration tests
-
James Rasell authored
-
- 16 Aug, 2022 16 commits
-
-
Seth Hoenig authored
api: trim space of error response output
-
Tim Gross authored
ACL Policies aren't required to have any `namespace` blocks, and this is particularly common with the anonymous policy. If a user visits the web UI without a token already in their local storage and the anonymous policy has no `namespace` blocks, the UI will hit unhandled exceptions when rendering the sidebar or jobs page. Filter for the case where there's no `namespace` block.
-
Seth Hoenig authored
cleanup: helper func for comparing slices of .Equals types
-
Seth Hoenig authored
-
Seth Hoenig authored
-
Michael Schurter authored
Similar to the deployment watcher fix in #14121 - the server code loves these mutable structs so we need to guard access to the struct fields with locks. Capturing ch := b.capacityChangeCh is sufficient to satisfy the data race detector, but I noticed it was also possible to leak goroutines: Since the watchCapacity loop is in charge of receiving from capacityChangeCh and exits when stopCh is closed, senders to capacityChangeCh also must exit when stopCh is closed. Otherwise they may block forever if capacityChangeCh is full because it will never be received on again. I did not find evidence of this occurring in my meager smattering of prod goroutine dumps I have laying around, but this isn't surprising as the chan has a buffer of 8096! I would imagine that is sufficient to handle "late" sends and then just get GC'd away when the last reference to the old chan is dropped. This is just additional safety/correctness.
-
Seth Hoenig authored
-
Michael Schurter authored
* nomad: fix race in Bootstrapped access
-
Michael Schurter authored
* deployments: fix data races Both priority and state related fields may be mutated concurrently and need to be accessed with the lock acquired.
-
Michael Schurter authored
-
Seth Hoenig authored
build: update to go1.19
-
Seth Hoenig authored
Go 1.19 will forecefully format all your doc strings. To get this out of the way, here is one big commit with all the changes gofmt wants to make.
-
Seth Hoenig authored
cleanup: consul mesh gateway type need not be pointer
-
Jai authored
* chore: remove query param in topology * chore: remove query param in plugin alloc * chore: remove query param in parameterized child * chore: remove query param in periodic child
-
Seth Hoenig authored
-
Kerim Satirli authored
-
- 15 Aug, 2022 7 commits
-
-
Phil Renaud authored
* Handle conflict swith a cas qp on save and create * Notify error and give them refresh or overwrite options * Merge conflict missed, resolved * Mirage fixture * Integration test * Bracket closed (thx jai) * Adjust tests to account for number of variables with auto-conflicter
-
Tim Gross authored
The HCL parser allows for labels that aren't needed, which makes it easy to accidentally write a `secure_variable` block that has the intended path as the label for that block instead of the innner `path` block. This can result in silent failure to lock down variables if an incorrectly specified block was used to reduce the scope of capabilities (for example, if another correctly-written rule allows access to `*`). We can't detect the extraneous label in the HCL API, but we can detect if we're missing `path` blocks entirely. Use this to block obvious user errors.
-
Tim Gross authored
HTTP API consumers that have network line-of-sight to client nodes can connect directly for a small number of APIs. But in environments where the consumer doesn't have line-of-sight, there's a long pause waiting for the `api.ClientConnTimeout` to expire. Warn about this in the API docs so that authors can avoid the extra timeout.
-
Charlie Voiselle authored
* Nomad dep: add museli/reflow * SV CLI: var init
-
Jai authored
* refact: add parent check to boolean * chore: add changelog entry
-
Phil Renaud authored
* Starting on namespaced id * Traversal for variables uniqued by namespace * Delog * Basic CRUD complete w namespaces included * Correct secvar breadcrumb joining and testfix now that namespaces are included * Testfixes with namespaces in place * Namespace-aware duplicate path warning * Duplicate path warning test additions * Trimpath reimplemented on dupe check * Solves a bug where slash was not being passed to the can write check * PR fixes * variable paths integration test fix now uses store * Seems far less hacky in retrospect * PR feedback addressed * test fixes after inclusion of path as local non-model var * Prevent confusion by dropping namespace from QPs on PUT, since its already in .data * Solves a harsh bug where you have namespace access but no secvars access (#14098) * Solves a harsh bug where you have namespace access but no secvars access * Lint cleanup * Remove unneeded co...
-
Tim Gross authored
The List RPCs only checked the ACL for the Prefix argument of the request. Add an ACL filter to the paginator for the List RPC. Extend test coverage of ACLs in the List RPC and in the `acl` package, and add a "deny" capability so that operators can deny specific paths or prefixes below an allowed path.
-