hashicorp / hashicorp/nomad

[feature request] Add an ability to pass variables to Parse Job API endpoint

Open
#10,160 0 comments 5 reactions 0 assignees View on GitHub
stage/accepted type/enhancement
Dominant language
Go
Stars
17k
Forks
2.1k
Avg merge
1d 9h
Merged PRs (30d)
105

Description

Hi!

Nomad has very useful [parse endpoint](https://www.nomadproject.io/api-docs/jobs#parse-job)

What we're missing is the ability to pass variables, like you can do using a nomad CLI, to override variables before parsing and templating.

I see it as adding an optional argument `Variables` as a hash with key\values where each key could represent the name of the variable to override.

Currently, the only option is to use CLI for that.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the Parse Job API documentation and compare it with the Nomad CLI's variable override behavior. Trace the parse and templating entry points, then verify that an optional Variables hash can override values before parsing and templating through API-level tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
api, backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.