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

Open

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

Activity

  1. changed the title [-]"deploy" does not accept template -> wait[/-] [+]"deploy" does not accept task -> template -> wait block[/+] on Nov 19, 2024
  2. jvineet commented on Apr 10, 2025

    @jvineet

    @jrasell any timeline on when a fix for this will be implemented? We need to use wait in some of our jobs and would like to directly have levant take care of the deployments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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