Commit Graph

18252 Commits

Author SHA1 Message Date
Mahmood Ali
fcddfa4971 Update hcl2 vendoring
The hcl2 library has moved from http://github.com/hashicorp/hcl2 to https://github.com/hashicorp/hcl/tree/hcl2.

This updates Nomad's vendoring to start using hcl2 library.  Also
updates some related libraries (e.g. `github.com/zclconf/go-cty/cty` and
`github.com/apparentlymart/go-textseg`).
2020-05-19 15:00:03 -04:00
Michael Lange
99f117a288 Merge pull request #7986 from hashicorp/missing-changelog-entry
Add missing bug fix from the changelog for 0.11.2
2020-05-19 09:20:23 -07:00
Michael Lange
a07e64bca2 Merge pull request #8006 from hashicorp/f-ui/csi-node-only-support
UI: CSI node only support
2020-05-19 09:08:30 -07:00
Seth Hoenig
36684bd808 Merge pull request #8003 from hashicorp/c-use-taskkind
consul/connect: use task kind to get service name
2020-05-19 08:51:21 -06:00
Michael Lange
7d71b5e3a8 Merge pull request #7983 from spuder/patch-3
Fix typo in changelog
2020-05-18 17:27:35 -07:00
Michael Lange
cb5cea646c Work around a mirage bug 2020-05-18 17:23:55 -07:00
Michael Lange
f760027ccf Test coverage for node only view of the plugin detail page 2020-05-18 17:23:54 -07:00
Michael Lange
3da88c6925 Test coverage for the node-only change to the list view 2020-05-18 15:30:00 -07:00
Michael Lange
ebc402ac5f Add availability gauges to the plugin page object 2020-05-18 15:30:00 -07:00
Michael Lange
3cf81d2741 Handle node-only views 2020-05-18 15:30:00 -07:00
Mahmood Ali
61d1f0eb4e Merge pull request #8005 from hashicorp/je.fix-shell-snippets
Fix shell-session snippet error
2020-05-18 18:15:09 -04:00
Jeff Escalante
e69fc1f459 fix shell-session snippet error 2020-05-18 16:53:06 -04:00
Seth Hoenig
0dd159635e consul/connect: use task kind to get service name
Fixes #8000

When requesting a Service Identity token from Consul, use the TaskKind
of the Task to get at the service name associated with the task. In
the past using the TaskName worked because it was generated as a sidecar
task with a name that included the service. In the Native context, we
need to get at the service name in a more correct way, i.e. using the
TaskKind which is defined to include the service name.
2020-05-18 13:46:00 -06:00
Chris Baker
9400ac674e Merge pull request #7992 from hashicorp/docs-website-fix
docs: server configuration metadata was missing a dash
2020-05-18 08:47:40 -05:00
James Rasell
2058f40e12 Merge pull request #7995 from hashicorp/tidy-go-mod-api
api: tidy Go module to remove unused modules.
2020-05-18 14:53:19 +02:00
Tim Gross
64c6a8db22 csi: improve plugin error messages and volume validation (#7984)
Some CSI plugins don't return much for errors over the gRPC socket
above and beyond the bare minimum error codes. This changeset improves
the operator experience by unpacking the error codes when available
and wrapping the error with some user-friendly direction.

Improving these errors also revealed a bad comparison with
`require.Error` when `require.EqualError` should be used in the test
code for plugin errors. This defect in turn was hiding a bug in volume
validation where we're being overly permissive in allowing mount
flags, which is now fixed.
2020-05-18 08:23:17 -04:00
James Rasell
97a6fee193 api: tidy Go module to remove unused modules. 2020-05-18 09:56:23 +02:00
Chris Baker
a835d11e68 docs: server configuration metadata was missing a dash, causing problems
rendering that page
2020-05-17 15:07:46 +00:00
Mahmood Ali
69fae72ad7 Merge pull request #7988 from tcassaert/vault_int_docs
Docs: Vault integration token creation docs missing command
2020-05-16 11:38:32 -04:00
Mahmood Ali
1e7f149ec5 Merge pull request #7970 from hashicorp/go1.14.3
Go1.14.3
2020-05-16 11:33:15 -04:00
Michael Schurter
7c0ab3ad53 build: update from Go 1.14.1 to Go 1.14.3 2020-05-16 10:41:20 -04:00
Michael Schurter
3dfe57247f scripts: add usage to update_golang_version.sh 2020-05-16 10:40:11 -04:00
tcassaert
23518436eb Command was missing due to missing end of line 2020-05-16 12:49:18 +02:00
Michael Lange
afdc599e58 Add missing bug fix from the changelog for 0.11.2 2020-05-15 16:58:07 -07:00
Mahmood Ali
262c5933c6 fix grammar in DST upgrade snippet (#7985) 2020-05-15 15:59:56 -04:00
Spencer Owen
add51fb1c5 Fix typo in changelog
Removes duplicate entry in the change log
2020-05-15 13:02:39 -06:00
Buck Doyle
e884b5f923 Remove Ember server from Storybook startup (#7980)
The presence of Storybook’s preview-head.html file in the repository
is a constant annoyance: it’s only needed for Storybook and it changes
all the time, producing a lot of Git noise. By making it a separate
step to have the Ember CLI server running before starting Storybook,
we no longer need to have preview-head in the repository. It needed to
be present because there was a race condition where it was sometimes
not generated in time for the Storybook parallel startup.
2020-05-15 13:53:31 -05:00
Mahmood Ali
2673c85908 Merge pull request #7982 from hashicorp/mdeggies-remove-appveyor
Windows CircleCI Follow
2020-05-15 13:57:41 -04:00
Mahmood Ali
70e9831e7f revert vendored file accidental changes
[ci skip]
2020-05-15 13:37:03 -04:00
Mahmood Ali
8982f749db quiet unzip 2020-05-15 13:19:21 -04:00
Mahmood Ali
7ebc3f90c7 Predownload image before tests start 2020-05-15 12:55:53 -04:00
Mahmood Ali
a6e59eb748 Use an image managed by nomad account
This is a retag of stefanscherer/busybox-windows@sha256:af396324c4c62e369a388ebb38d4efd44211dc7c95a438e6feb62b4ae4194c5b
2020-05-15 12:55:22 -04:00
Mahmood Ali
a3e30f2d7f remove unused gotestsum installation script 2020-05-15 12:45:39 -04:00
Mahmood Ali
5da83c5085 colocate test-windows by darwin target
Mostly to ease conflict resolution with Enterprise fork, as Enterprise
CI doesn't support windows.
2020-05-15 12:33:31 -04:00
Mahmood Ali
f8294f5e2a Few Windows CI changes:
Always install go and vault: the check may accidentally use the CircleCI
pre-installed go version instead of the cached version.

Also, always install from sources without caching.  Go/vault
installation is basically a tarball download.  That's equivalent to
CirleCI caching without the complexity.  These steps don't add much time
either.

Lastly, infer the OS when downloading tarball to avoid managing them in
the job spec.
2020-05-15 12:22:15 -04:00
Mahmood Ali
4c679d4c64 Use a pinned tag of stefanscherer/busybox-windows 2020-05-15 12:20:37 -04:00
Mahmood Ali
0dbd22e260 makefile to support windows 2020-05-15 12:19:59 -04:00
Michael Lange
7fc380d35d Merge pull request #7971 from hashicorp/b-ui/plugin-extend-watchable
UI: Make the Plugin adapter extend Watchable
2020-05-15 09:15:59 -07:00
Michele
f1281d86b3 Caching test 2020-05-15 10:15:37 -04:00
Michele
d83ee3ba1a Update cache 2020-05-15 10:15:37 -04:00
Michele
0d436669a6 Adding a fix 2020-05-15 10:15:37 -04:00
Michele
d09937e41a Move appveyor tests to circle 2020-05-15 10:15:37 -04:00
Tim Gross
09a27f9e18 csi: use a blocking initial connection with timeout (#7965)
The plugin supervisor lazily connects to plugins, but this means we
only get "Unavailable" back from the gRPC call in cases where the
plugin can never be reached (for example, if the Nomad client has the
wrong permissions for the socket).

This changeset improves the operator experience by switching to a
blocking `DialWithContext`. It eagerly connects so that we can
validate the connection is real and get a "failed to open" error in
case where Nomad can't establish the initial connection.
2020-05-15 08:17:11 -04:00
Tim Gross
103d873ebe csi: support for VolumeContext and VolumeParameters (#7957)
The MVP for CSI in the 0.11.0 release of Nomad did not include support
for opaque volume parameters or volume context. This changeset adds
support for both.

This also moves args for ControllerValidateCapabilities into a struct.
The CSI plugin `ControllerValidateCapabilities` struct that we turn
into a CSI RPC is accumulating arguments, so moving it into a request
struct will reduce the churn of this internal API, make the plugin
code more readable, and make this method consistent with the other
plugin methods in that package.
2020-05-15 08:16:01 -04:00
Chris Baker
f2210cedd9 Merge pull request #7972 from hashicorp/0-11-3-return-to-dev
post-release merge
2020-05-14 17:31:45 -05:00
Chris Baker
ba44430d83 Merge pull request #7973 from hashicorp/update-webiste-version
update website current version to 0.11.2
2020-05-14 17:31:36 -05:00
Chris Baker
0fbbb395a7 update website current version to 0.11.2 2020-05-14 22:03:43 +00:00
Chris Baker
96e77d3c0a release: prep for 0.11.3 dev cycle 2020-05-14 21:52:46 +00:00
Michael Lange
3fcd5edd41 Make the Plugin adapter extend Watchable 2020-05-14 14:37:07 -07:00
Michael Lange
278b8499c6 Protect against making watch requests using adapters that don't extend Watchable 2020-05-14 14:36:38 -07:00