Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Levant 0.3.2 broke deploying configs with int values passed from envs #467

Open
sokil opened this issue Oct 26, 2022 · 1 comment
Open

Comments

@sokil
Copy link

sokil commented Oct 26, 2022

Description

Levant 0.3.2 broke deploying configs with int values passed from envs

Relevant Nomad job specification file

job "[[.name]]" {
    group "application" {
        count = [[ env "NOMAD_GROUP_APP_COUNT" ]]

        network {
            mode = "bridge"
            port "http" {}
        }
    }
}

Output

[ERROR] levant/command: error parsing: At 21:9: Unknown token: 21:9 IDENT network

if i fix config like this everything is fine

job "[[.name]]" {
    group "application" {
        count = "[[ env "NOMAD_GROUP_APP_COUNT" ]]"

        network {
            mode = "bridge"
            port "http" {}
        }
    }
}

Maybe this fix affects #465 ?

@jrasell
Copy link
Member

jrasell commented Oct 26, 2022

Hi @sokil and thanks for raising this issue. I will take a look when I can, but glad you have a workaround which others can also use if they come across this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants