Skip to content

Defaults for top-level arguments don't appear to work using inline environments #522

Open
@craigfurman

Description

@craigfurman

Running tk show foo/bar --name NAME or tk diff foo/bar --name NAME against a main.jsonnet that contains a function with a default argument, e.g.

function(tag='latest') {
   // return a tanka.Environment
}

Returns an error "Error: Found no environments in ...". I haven't validated yet whether or not top-level argument defaults are still working in traditional, non-inline environments with a spec.json. I can look into making a PR, but wanted to raise an issue first in case it was known.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions