Mahmood Ali
bb80ea741b
hcl2: special case meta and env blocks
...
Allow expressing `meta` and `env` blocks as map attributes as well.
`env` and `meta` should support arbitrary key and values, yet hcl2
restricts the keys to valid identifiers. For example, block attribute
identifiers may not contain dots, `.`, which frequently used in meta
fields, and sometimes in environment variable fields.
This change attempts to parse `env`/`meta` both as an attribute and as a
block.
This additionally allows better expressivity for env/meta blocks, using
functions. For example, one can reuse a set of environment variables for
multiple tasks, using a local common_envs value:
```hcl
env = merge(local.common_envs, {"more_env_key", "..."})
```
2021-02-01 10:45:03 -05:00
Seth Hoenig
aa3f6f97a7
Merge pull request #9926 from hashicorp/f-up-consul-api
...
consul: upgrade consul/api to 1.8.1
2021-02-01 08:27:52 -06:00
Mahmood Ali
45889f9f55
e2e: segment e2e clusters
...
Ensure that the e2e clusters are isolated and never attempt to autojoin
with another e2e cluster.
This ensures that each cluster servers have a unique `ConsulAutoJoin`,
to be used for discovery.
2021-02-01 08:04:21 -05:00
Mahmood Ali
5a1df47e38
update buf compare tag to latest release
2021-01-31 20:23:22 -05:00
Mahmood Ali
ab92d495fc
lint: Upgrade buf to 0.36.0, latest so far
2021-01-31 20:09:15 -05:00
Chris Baker
879a4c24b4
Merge pull request #9929 from hashicorp/changli0617-patch-1
...
Update alert-banner.js
2021-01-29 13:58:15 -06:00
Chris Baker
597e8cf0c6
Merge pull request #9931 from hashicorp/website-update-version
...
update latest release version on website
2021-01-29 13:57:40 -06:00
Chris Baker
02e4016133
update latest version on website
2021-01-29 19:55:13 +00:00
Chris Baker
00d1924cc2
Update website/data/alert-banner.js
2021-01-29 13:53:17 -06:00
Chris Baker
b1d0236db6
Merge pull request #9930 from hashicorp/post-release-1.0.3
...
post-release merge for 1.0.3
2021-01-29 13:50:19 -06:00
changli0617
fe77f988f4
Update alert-banner.js
2021-01-29 11:47:24 -08:00
Chris Baker
94e71bd1c1
remove generated code
2021-01-29 19:46:46 +00:00
Chris Baker
682dd5045e
vesion-specific upgrade guide for 1.0.3 and 0.12.10
2021-01-29 19:41:48 +00:00
Chris Baker
6467003db5
version to 1.0.4-dev
2021-01-29 19:31:13 +00:00
Chris Baker
ce68ee164b
Version 1.0.3
...
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQEcBAABAgAGBQJgEuOKAAoJEFGFLYc0j/xMxF8H/3TTU6Tu+Xm0YvcsDaYDphZ/
X7KQBV0aFiuL5VkTw4PzKEsgryIy9/sqEPyxxyKRowAmos9qhiusjNAIfqdP4TF8
tdZmTedkfWir9uPD+hyv/LXpwbQ2T8kTwS3xHTYvaOmaCxZr710FEn+imnMk1AUn
Xs5itkd/CYGr0nBLm+I5GutWSDPmL7Uw8J5Z30fFyoaxoCPAbCWQQNk793SCRUc5
f/uo18V2tFInmQ+3sAdnM4gPewyStK/a5VvzWavL9fVDtYK83wlqWSchTXY5jpVz
zNEzt/rYhbBzakPQQKb5zieblh2iGI8aHWpD5w4WduqO2Sg6B/5lAeNZIlW0UJg=
=2g3c
-----END PGP SIGNATURE-----
Merge tag 'v1.0.3' into post-release-1.0.3
Version 1.0.3
2021-01-29 19:30:08 +00:00
Seth Hoenig
29801c8e40
consul: upgrade consul/api to 1.8.1
2021-01-29 10:04:45 -06:00
Tim Gross
23cc8b4d77
interpolate maps in dynamic blocks ( #9921 )
...
Update hcl2 for patch to fix map interpolation in dynamic blocks
2021-01-29 10:16:07 -05:00
Michael Lange
5c4803e9b0
Merge pull request #9909 from hashicorp/b-ui/incorrect-error-message
...
UI: Use server-sent error messages when applicable
2021-01-28 14:02:32 -08:00
Michael Lange
0fb853d135
Add an acceptance test exercising errors from an HTTP response to a notification
2021-01-28 13:47:22 -08:00
Michael Lange
d4e32d4128
Test coverage for the messageFromAdapterError util
2021-01-28 12:18:53 -08:00
Michael Lange
52a7a48177
Don't use generic ACL error messages
...
When the error is actually a 403, an ACL error is appropriate, but when
it isn't, fallback on what the API returns.
2021-01-28 12:18:53 -08:00
Michael Lange
320a63dc68
Improve the message-from-adapter-error util
...
Automatically detect ACL errors
Provide a generic error message as a fallback
2021-01-28 12:18:52 -08:00
Michael Lange
94094d4f18
Merge pull request #9886 from hashicorp/b-ui/topo-viz-accounting
...
UI: Topology info panel incorrect accounting bugs
2021-01-28 09:23:01 -08:00
Nomad Release Bot
4f9d2f460f
Release v1.0.3
2021-01-28 16:17:14 +00:00
Buck Doyle
975ea6d5d1
Merge branch 'master' into b-ui/topo-viz-accounting
2021-01-28 09:56:46 -06:00
Chris Baker
0ae273591b
bump version to 1.0.3
2021-01-28 14:51:01 +00:00
Chris Baker
8806294cd9
updated changelog for release
2021-01-28 14:46:57 +00:00
vagrant
bff87e3d0c
attempting to fix flaky tests caused by pid isolation
2021-01-28 12:03:20 +00:00
Chris Baker
2632b81124
lint some nomad HCL job specs
2021-01-28 12:03:19 +00:00
Kris Hicks
f5527aea48
Backfill unit test for NEWIPC
2021-01-28 12:03:19 +00:00
Chris Baker
2adf0f12d6
e2e: java driver isolation tests
2021-01-28 12:03:19 +00:00
Chris Baker
aa55df0413
additional e2e utils for multi-task allocs
2021-01-28 12:03:19 +00:00
Chris Baker
3b580d9474
modify exec driver test TestExecDriver_StartWaitStop in light of the fact that signaling sleep with SIGINT doesn't work if it's PID1
2021-01-28 12:03:19 +00:00
Chris Baker
5e4be990ff
modify exec driver test TestExecDriver_DestroyKills all in light of the fact that PID namespacing means that the kernel does this now
2021-01-28 12:03:19 +00:00
Chris Baker
ac1b9655ce
put exec process in a new IPC namespace
2021-01-28 12:03:19 +00:00
Kris Hicks
d67b77f38e
Add a little comment
2021-01-28 12:03:19 +00:00
Kris Hicks
5cf972d2e7
Add test for alloc exec
2021-01-28 12:03:19 +00:00
Kris Hicks
2db8aa2a52
Add e2e test for raw exec
2021-01-28 12:03:19 +00:00
Kris Hicks
a5298ea4ba
Add unit test for container namespacing
2021-01-28 12:03:19 +00:00
Kris Hicks
c13f75d9e1
Always check that resource constraints were applied
2021-01-28 12:03:19 +00:00
Kris Hicks
87188f04de
Add PID namespacing and e2e test
2021-01-28 12:03:19 +00:00
Mahmood Ali
74dcee0936
ci: only read/modify GO_TAGS
field ( #9815 )
...
Only lookup GO_TAGS variable, and avoid the false positives where GO_TAGS is a variable suffix.
2021-01-28 12:03:19 +00:00
Michael Lange
62e4e8ac76
Merge pull request #9906 from hashicorp/b-ui/topo-lines-not-shown
...
UI: Show allocation associations in the topo viz more often (and fix a bug)
2021-01-27 16:05:43 -08:00
Michael Lange
7a9a208c89
Adjust the no-association-lines logic
...
On very small clusters, the node count heuristic is impractical and
leads to confusion. By additionally requiring 10+ sibling allocs, the
lines will be shown more often.
2021-01-27 10:24:03 -08:00
Michael Lange
82d06f658b
Don't render association lines on resize when lines aren't supposed to be shown at all
2021-01-27 10:20:10 -08:00
Tim Gross
cf052cfee5
docs: add metrics from raft leadership transitions
2021-01-27 11:50:11 -05:00
Mahmood Ali
6b2a7425ee
Merge pull request #9903 from hashicorp/b-e2e-tweaks-20210126_2
...
e2e: Disable node drain deadline tests
2021-01-27 09:36:08 -05:00
Mahmood Ali
c92bb342e1
e2e: skip node drain deadline/force tests
2021-01-27 08:42:16 -05:00
Mahmood Ali
b12e8912a9
e2e: use f.NoError instead of requires
2021-01-27 08:36:23 -05:00
Michael Lange
60caa366b1
Merge pull request #9896 from hashicorp/b-ui-hz-casing
...
UI: Use MHz instead of Mhz throughout
2021-01-26 11:23:48 -08:00