HCL Variable Values mixes key-value and JSON format #23926
Labels
stage/accepted
Confirmed, and intend to work on. No timeline committment though.
theme/hcl
theme/ui
type/bug
Nomad version
1.8.0
Issue
If you deploy a job with variables provided by both
-var-file=foo.json
andNOMAD_VAR_name
environment variables theHCL Variable Values
section in the WebUI will show both the correct key-value format (env variables) and JSON (-var-file
). If one tries to edit the job definition and plan it, it results in the following error:The user then has to replace the JSON with the key-value format to fix this.
Reproduction steps
Deploy a job with both env and
-var-file
:Afterward open the job in the WebUI, edit the definition and try to plan your change.
Expected Result
The
HCL Variable Values
section should only show variables in the key-value format:Actual Result
It adds the JSON from
-var-file=foo.json
:The text was updated successfully, but these errors were encountered: