Golang API reports Artifact Headers are an invalid key #14657
Labels
stage/accepted
Confirmed, and intend to work on. No timeline committment though.
theme/hcl
theme/jobspec
type/bug
Nomad version
github.com/hashicorp/nomad v1.3.5
github.com/hashicorp/nomad/api v0.0.0-20220922140200-349501f82584
Operating system and Environment details
Mac OS 12.5.1
Issue
Calling jobspec.Parse (github.com/hashicorp/nomad/jobspec) with a job containing an artifact clause with 'headers' fails and reports that 'headers' is an invalid key.
Looking at the parseArtifacts function in the jobspec.go file, we can see that 'headers' is not in the list of valid keys.
Reproduction steps
Provide the job definition to the jobspec.Parse function.
Expected Result
The job definition should parse successfully and return a *api.Job.
Actual Result
Parse returns an error indicating artifact -> invalid key: headers
Job file
Nomad Server logs (if appropriate)
NA
Nomad Client logs (if appropriate)
NA
The text was updated successfully, but these errors were encountered: