Skip to content
This repository was archived by the owner on Jun 27, 2025. It is now read-only.
This repository was archived by the owner on Jun 27, 2025. It is now read-only.

"deploy" does not accept task -> template -> wait block #550

@jjdmol

Description

@jjdmol

Description

The levant deploy command does not accept the wait parameter of the template block, see the example below, even though nomad does accept it.

NB: A work around for us is to use levant render, but nomad job run to deploy.

Levant job file:

job "test-job" {
  group "test-group" {
    count = 1

    task "test" {
      driver = "exec"

      config {
          command = "sleep"
          args = ["3600"]
      }

      template {
        wait {
          min     = "30s"
          max     = "300s"
        }
        data        = <<EOH
foo=bar
EOH

        destination = "local/env.txt"
        env         = true
      }
    }
  }
}

Running levant deploy test.levant.nomad yields:

[ERROR] levant/command: error parsing 'job': group: 'test-group', task: 'test', template -> 1 error(s) decoding:

* 'wait' expected a map, got 'slice'

Output of levant version:

Levant v0.3.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions