Skip to content

map has no entry for key #5

Description

@hmoffatt

No matter what I use for a template I always get an error saying that the template variables are undefined;

Example template

ID {{ .ID }}

Test invocation:

env ID=blah go/cmd/bin/docker_entrypoint -template foo.template /bin/true
foo.template
error rendering template foo.template: template: foo.template:2:6: executing "foo.template" at <.ID>: map has no entry for key "ID"

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions