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 Apr, 2021 12 commits
-
-
Michael Schurter authored
The API docs don't make it immediately clear that the alloc signal API signals *all* tasks in an allocation if the `Task` parameter is omitted. You have to dig all the way down into the alloc runner to discover that behavior: https://github.com/hashicorp/nomad/blob/v1.0.4/client/allocrunner/alloc_runner.go#L1189-L1213
-
Drew Bailey authored
* go get on the remote mac instance installs with read-only, allow for rm step * Update scripts/release/mac-remote-build Co-authored-by:
Mahmood Ali <mahmood@hashicorp.com> Co-authored-by:
Mahmood Ali <mahmood@hashicorp.com>
-
Luiz Aoqui authored
-
Tim Gross authored
Plugins could potentially ignore the `max_entries` field and return a list of entries that is greater, so we slice the return value in the server RPC to enforce these value. But page sizes less than the number of entries for the external CSI ListVolumes and ListSnapshots RPCs could cause a panic, so fix the boundary checking.
-
Drew Bailey authored
-
Michael Schurter authored
CNI: add fallback logic if no ip address references sandboxed interface
-
Tim Gross authored
-
Tim Gross authored
A demo for the CSI hostpath plugin, used primarily for development purposes. This reproduction has been used for testing during our CSI implementation work, and this changeset makes that public.
-
Tim Gross authored
The archive does not include the `pkg/windows_amd64` path and unpacking the archive happens in the installation directory.
-
Tim Gross authored
-
Mark Lodato authored
There was a small typo of "namespacecs" instead of "namespaces"
-
Lars Lehtonen authored
-
- 08 Apr, 2021 6 commits
-
-
Tim Gross authored
The E2E provisioning used local-exec to call ssh in a for loop in a hacky workaround https://github.com/hashicorp/terraform/issues/25634, which prevented remote-exec from working on Windows. Move to a newer version of Terraform that fixes the remote-exec bug to make provisioning more reliable and observable. Note that Windows remote-exec needs to include the `powershell` call itself, unlike Unix-alike remote-exec.
-
Tim Gross authored
The AWS EBS CSI plugin was observed to return a EOF when we get to the end of the paging for `ListSnapshots`, counter to specification. Handle this case gracefully, including for `ListVolumes` (which EBS doesn't support but has similar semantics). Also fixes a timestamp formatting bug on `ListSnapshots`
-
Tim Gross authored
-
Tim Gross authored
Split the EBS and EFS tests out into their own test cases: * EBS exercises the Controller RPCs, including the create/snapshot workflow. * EFS exercises only the Node RPCs, and assumes we have an existing volume that gets registered, rather than created.
-
Michael Schurter authored
The goal is to always find an interface with an address, preferring sandbox interfaces, but falling back to the first address found. A test was added against a known CNI plugin output that was not handled correctly before.
-
Mahmood Ali authored
Fix HCL2 panics when parsing undefined variables
-
- 07 Apr, 2021 21 commits
-
-
Mike Wickett authored
* website: add customer testimonial to homepage * website: remove one testimonial, remove product logos
-
Mahmood Ali authored
makefile cleanup
-
Mahmood Ali authored
With the updated undefined variable code, we attempt to pick the text of `${....}` verbatim from the hcl body. Previously, we'd attempt to regenerate the string from the AST and pray it matches input; the generation is lossy, as the same AST can represent multiple variations (e.g. `${v.0}` and `${v[0]}` have the same HCLv2 AST). In this change, we attempt to go back to the hcl2 source and find the string snippet corresponding to the variable reference.
-
Mahmood Ali authored
Update hcl/v2 to point to https://github.com/hashicorp/hcl/commits/nomad-v2.9.1+tweaks1
-
Mahmood Ali authored
-
Brandon Romano authored
Updates stackmenu to latest
-
Luiz Aoqui authored
-
Tim Gross authored
-
Tim Gross authored
-
Tim Gross authored
Our API client `delete` method doesn't include a request body, but accepts an interface for the response. We were accidentally putting the request body into the response, which doesn't get picked up in unit tests because we're not reading the (always empty) response body anyways.
-
Tim Gross authored
-
Tim Gross authored
-
Tim Gross authored
Consumers of the CSI HTTP API are expecting a response object and not a slice of snapshots. Fix the return value.
-
Tim Gross authored
The plugin stub object does not include fine-grained capability checks, which means `nomad volume status -verbose` will return ugly and verbose error "Unimplemented" messages from the plugin if it does not support the CSI `ListVolumes` RPC. Return a nicer error message from our RPC handler instead.
-
Tim Gross authored
The HTTP router did not correctly route `/v1/volumes/external` without being explicitly added to the top-level router. Break this out into its own request handler.
-
Tim Gross authored
If a plugin returns an error, we should continue at the outer scope to query the next plugin, otherwise we just retry the plugin we got an error on (potentially infinitely if it's an invalid request like an unsupported plugin).
-
Tim Gross authored
Add new `access_mode`/`attachment_mode` fields. Make it more clear which set of fields belong to create vs register. Update the example spec that's generated by `volume init`.
-
Tim Gross authored
Registration of Nomad volumes previously allowed for a single volume capability (access mode + attachment mode pair). The recent `volume create` command requires that we pass a list of requested capabilities, but the existing workflow for claiming volumes and attaching them on the client assumed that the volume's single capability was correct and unchanging. Add `AccessMode` and `AttachmentMode` to `CSIVolumeClaim`, use these fields to set the initial claim value, and add backwards compatibility logic to handle the existing volumes that already have claims without these fields.
-
Tim Gross authored
-
Tim Gross authored
-
Chris Baker authored
fix potential race condition in API client
-
- 06 Apr, 2021 1 commit
-
-
Chris Baker authored
-