From b34e652b7d154e8f1bcb8af482b35ce6c6770be8 Mon Sep 17 00:00:00 2001 From: James Rasell Date: Mon, 3 Jan 2022 15:41:18 +0000 Subject: [PATCH] docs: add 1.2.0 HCLv2 strict parsing upgrade note. --- website/content/docs/upgrade/upgrade-specific.mdx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/website/content/docs/upgrade/upgrade-specific.mdx b/website/content/docs/upgrade/upgrade-specific.mdx index 55dc28971..0426bfbca 100644 --- a/website/content/docs/upgrade/upgrade-specific.mdx +++ b/website/content/docs/upgrade/upgrade-specific.mdx @@ -48,6 +48,20 @@ order to access a job details page. This was an unintended change and will be fixed in a future release. +#### HCLv2 Job Specification Parsing + +In previous versions of Nomad, when rendering a job specification using override +variables, a warning would be returned if a variable within an override file +was declared that was not found within the job specification. This behaviour +differed from passing variables via the `-var` flag, which would always cause an +error in the same situation. + +Nomad 1.2.0 fixed the behaviour consistency to always return an error by default, +where an override variable was specified which was not a known variable within the +job specification. In order to mitigate this change for users who wish to only +be warned when this situation arises, the `-hcl-strict=false` flag can be +specified. + ## Nomad 1.0.11 and 1.1.5 Enterprise #### Audit log file names