nomad icon indicating copy to clipboard operation
nomad copied to clipboard

☂️ Nomad Job Templates

Open philrenaud opened this issue 2 years ago • 0 comments

Run Job UI

  • [ ] #15546

    • Conditional upon Variables being enabled for the Nomad agent. Otherwise, we won't have templates to read/write from.
    • Choose from Template requires can edit variable ability
  • [ ] #15547

    • If variables are enabled, load variables at nomad/job-templates and list them
    • Selecting a template redirects back to jobs/run with the template pasted into the editor
    • requires can list variable ability
  • [ ] #15548

    • Saves to a variable at nomad/job-templates/${name} with a keys of template and description
    • Upon success, redirects to jobs/run/templates/index with the newly-created template selected
    • requires can edit variable ability
  • [ ] #15549

    • Enabled only when editor has content
    • Redirects to jobs/run/templates/new with the editor content copied over
    • requires can edit variable ability
  • [ ] #15550

    • Accessed by the "Manage" button on jobs/run/templates/index
    • Gives an interface to delete a template (uses the deleteRecord for the variable in question)
    • Gives an interface to modify a template (links to jobs/run/templates/:name
    • requires can edit variable ability
  • [ ] #15551

    • Allows modification of the backing variable for a given template
    • Description can be modified (description variable key)
    • Template can be modified (template variable key)
    • requires can edit variable ability
  • [ ] Modify variable editing form at /nomad/job-templates/* to use a custom textarea layout instead of kv <input>s

Variables

  • [x] #15569
  • [ ] Stand up hardcoded template variables when a new agent starts
  • [ ] Check for existence of a template field and no non-template non-description fields when saving to nomad/job-templates/*

CLI

  • [ ] #15563
  • [ ] Update the job init CLI docs

Product

  • [ ] Write a well-commented Hello World template
  • [ ] Write a well-commented Service Discovery template
  • [ ] Write a well-commented Variables template
  • [ ] Write a well-commented parameterized template

philrenaud avatar Dec 14 '22 15:12 philrenaud